polyfile-weave 0.5.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of polyfile-weave might be problematic. Click here for more details.

Files changed (585) hide show
  1. polyfile/__init__.py +15 -0
  2. polyfile/__main__.py +394 -0
  3. polyfile/arithmetic.py +27 -0
  4. polyfile/ast.py +114 -0
  5. polyfile/debugger.py +1039 -0
  6. polyfile/expressions.py +346 -0
  7. polyfile/fileutils.py +343 -0
  8. polyfile/html.py +135 -0
  9. polyfile/http/__init__.py +1 -0
  10. polyfile/http/defacto.py +37 -0
  11. polyfile/http/deprecated.py +51 -0
  12. polyfile/http/experimental.py +67 -0
  13. polyfile/http/http_11.py +548 -0
  14. polyfile/http/matcher.py +37 -0
  15. polyfile/http/structured_headers.py +48 -0
  16. polyfile/iterators.py +72 -0
  17. polyfile/jpeg.py +24 -0
  18. polyfile/kaitai/__init__.py +0 -0
  19. polyfile/kaitai/compiler.py +156 -0
  20. polyfile/kaitai/parser.py +312 -0
  21. polyfile/kaitai/parsers/__init__.py +0 -0
  22. polyfile/kaitai/parsers/aix_utmp.py +116 -0
  23. polyfile/kaitai/parsers/allegro_dat.py +367 -0
  24. polyfile/kaitai/parsers/andes_firmware.py +64 -0
  25. polyfile/kaitai/parsers/android_bootldr_asus.py +105 -0
  26. polyfile/kaitai/parsers/android_bootldr_huawei.py +181 -0
  27. polyfile/kaitai/parsers/android_bootldr_qcom.py +217 -0
  28. polyfile/kaitai/parsers/android_dto.py +138 -0
  29. polyfile/kaitai/parsers/android_img.py +319 -0
  30. polyfile/kaitai/parsers/android_nanoapp_header.py +83 -0
  31. polyfile/kaitai/parsers/android_opengl_shaders_cache.py +151 -0
  32. polyfile/kaitai/parsers/android_sparse.py +237 -0
  33. polyfile/kaitai/parsers/android_super.py +401 -0
  34. polyfile/kaitai/parsers/apm_partition_table.py +196 -0
  35. polyfile/kaitai/parsers/apple_single_double.py +180 -0
  36. polyfile/kaitai/parsers/asn1_der.py +235 -0
  37. polyfile/kaitai/parsers/au.py +138 -0
  38. polyfile/kaitai/parsers/avantes_roh60.py +112 -0
  39. polyfile/kaitai/parsers/avi.py +296 -0
  40. polyfile/kaitai/parsers/bcd.py +111 -0
  41. polyfile/kaitai/parsers/bitcoin_transaction.py +210 -0
  42. polyfile/kaitai/parsers/blender_blend.py +334 -0
  43. polyfile/kaitai/parsers/bmp.py +780 -0
  44. polyfile/kaitai/parsers/bson.py +411 -0
  45. polyfile/kaitai/parsers/btrfs_stream.py +318 -0
  46. polyfile/kaitai/parsers/bytes_with_io.py +27 -0
  47. polyfile/kaitai/parsers/chrome_pak.py +194 -0
  48. polyfile/kaitai/parsers/code_6502.py +456 -0
  49. polyfile/kaitai/parsers/compressed_resource.py +217 -0
  50. polyfile/kaitai/parsers/cpio_old_le.py +154 -0
  51. polyfile/kaitai/parsers/cramfs.py +344 -0
  52. polyfile/kaitai/parsers/creative_voice_file.py +342 -0
  53. polyfile/kaitai/parsers/dbf.py +274 -0
  54. polyfile/kaitai/parsers/dcmp_0.py +664 -0
  55. polyfile/kaitai/parsers/dcmp_1.py +422 -0
  56. polyfile/kaitai/parsers/dcmp_2.py +312 -0
  57. polyfile/kaitai/parsers/dcmp_variable_length_integer.py +66 -0
  58. polyfile/kaitai/parsers/dex.py +1086 -0
  59. polyfile/kaitai/parsers/dicom.py +4370 -0
  60. polyfile/kaitai/parsers/dime_message.py +201 -0
  61. polyfile/kaitai/parsers/dns_packet.py +569 -0
  62. polyfile/kaitai/parsers/doom_wad.py +654 -0
  63. polyfile/kaitai/parsers/dos_datetime.py +191 -0
  64. polyfile/kaitai/parsers/dos_mz.py +172 -0
  65. polyfile/kaitai/parsers/ds_store.py +513 -0
  66. polyfile/kaitai/parsers/dtb.py +310 -0
  67. polyfile/kaitai/parsers/dune_2_pak.py +126 -0
  68. polyfile/kaitai/parsers/edid.py +472 -0
  69. polyfile/kaitai/parsers/efivar_signature_list.py +331 -0
  70. polyfile/kaitai/parsers/elf.py +2482 -0
  71. polyfile/kaitai/parsers/ethernet_frame.py +114 -0
  72. polyfile/kaitai/parsers/exif.py +723 -0
  73. polyfile/kaitai/parsers/ext2.py +537 -0
  74. polyfile/kaitai/parsers/fallout2_dat.py +187 -0
  75. polyfile/kaitai/parsers/fallout_dat.py +156 -0
  76. polyfile/kaitai/parsers/fasttracker_xm_module.py +558 -0
  77. polyfile/kaitai/parsers/ftl_dat.py +90 -0
  78. polyfile/kaitai/parsers/genmidi_op2.py +161 -0
  79. polyfile/kaitai/parsers/gettext_mo.py +541 -0
  80. polyfile/kaitai/parsers/gif.py +492 -0
  81. polyfile/kaitai/parsers/gimp_brush.py +244 -0
  82. polyfile/kaitai/parsers/glibc_utmp.py +114 -0
  83. polyfile/kaitai/parsers/gltf_binary.py +132 -0
  84. polyfile/kaitai/parsers/google_protobuf.py +151 -0
  85. polyfile/kaitai/parsers/gpt_partition_table.py +175 -0
  86. polyfile/kaitai/parsers/gran_turismo_vol.py +140 -0
  87. polyfile/kaitai/parsers/grub2_font.py +337 -0
  88. polyfile/kaitai/parsers/gzip.py +232 -0
  89. polyfile/kaitai/parsers/hashcat_restore.py +60 -0
  90. polyfile/kaitai/parsers/hccap.py +111 -0
  91. polyfile/kaitai/parsers/hccapx.py +103 -0
  92. polyfile/kaitai/parsers/heaps_pak.py +177 -0
  93. polyfile/kaitai/parsers/heroes_of_might_and_magic_agg.py +116 -0
  94. polyfile/kaitai/parsers/heroes_of_might_and_magic_bmp.py +34 -0
  95. polyfile/kaitai/parsers/icmp_packet.py +136 -0
  96. polyfile/kaitai/parsers/ico.py +129 -0
  97. polyfile/kaitai/parsers/id3v1_1.py +220 -0
  98. polyfile/kaitai/parsers/id3v2_3.py +324 -0
  99. polyfile/kaitai/parsers/id3v2_4.py +423 -0
  100. polyfile/kaitai/parsers/ines.py +282 -0
  101. polyfile/kaitai/parsers/ipv4_packet.py +158 -0
  102. polyfile/kaitai/parsers/ipv6_packet.py +55 -0
  103. polyfile/kaitai/parsers/iso9660.py +544 -0
  104. polyfile/kaitai/parsers/java_class.py +1113 -0
  105. polyfile/kaitai/parsers/jpeg.py +361 -0
  106. polyfile/kaitai/parsers/luks.py +149 -0
  107. polyfile/kaitai/parsers/lzh.py +165 -0
  108. polyfile/kaitai/parsers/mac_os_resource_snd.py +493 -0
  109. polyfile/kaitai/parsers/mach_o.py +3033 -0
  110. polyfile/kaitai/parsers/mach_o_fat.py +92 -0
  111. polyfile/kaitai/parsers/magicavoxel_vox.py +391 -0
  112. polyfile/kaitai/parsers/manifest.json +1 -0
  113. polyfile/kaitai/parsers/mbr_partition_table.py +119 -0
  114. polyfile/kaitai/parsers/mcap.py +1015 -0
  115. polyfile/kaitai/parsers/microsoft_cfb.py +293 -0
  116. polyfile/kaitai/parsers/microsoft_network_monitor_v2.py +309 -0
  117. polyfile/kaitai/parsers/microsoft_pe.py +765 -0
  118. polyfile/kaitai/parsers/mifare_classic.py +706 -0
  119. polyfile/kaitai/parsers/minecraft_nbt.py +449 -0
  120. polyfile/kaitai/parsers/monomakh_sapr_chg.py +69 -0
  121. polyfile/kaitai/parsers/mozilla_mar.py +239 -0
  122. polyfile/kaitai/parsers/mp4.py +333 -0
  123. polyfile/kaitai/parsers/msgpack.py +467 -0
  124. polyfile/kaitai/parsers/nitf.py +1189 -0
  125. polyfile/kaitai/parsers/nt_mdt_pal.py +155 -0
  126. polyfile/kaitai/parsers/ogg.py +118 -0
  127. polyfile/kaitai/parsers/openpgp_message.py +993 -0
  128. polyfile/kaitai/parsers/packet_ppi.py +515 -0
  129. polyfile/kaitai/parsers/pcap.py +344 -0
  130. polyfile/kaitai/parsers/pcf_font.py +506 -0
  131. polyfile/kaitai/parsers/pcx.py +195 -0
  132. polyfile/kaitai/parsers/pcx_dcx.py +79 -0
  133. polyfile/kaitai/parsers/phar_without_stub.py +399 -0
  134. polyfile/kaitai/parsers/php_serialized_value.py +505 -0
  135. polyfile/kaitai/parsers/png.py +721 -0
  136. polyfile/kaitai/parsers/protocol_body.py +260 -0
  137. polyfile/kaitai/parsers/psx_tim.py +104 -0
  138. polyfile/kaitai/parsers/python_pickle.py +718 -0
  139. polyfile/kaitai/parsers/python_pyc_27.py +510 -0
  140. polyfile/kaitai/parsers/quake_mdl.py +441 -0
  141. polyfile/kaitai/parsers/quake_pak.py +112 -0
  142. polyfile/kaitai/parsers/quicktime_mov.py +634 -0
  143. polyfile/kaitai/parsers/rar.py +265 -0
  144. polyfile/kaitai/parsers/regf.py +569 -0
  145. polyfile/kaitai/parsers/renderware_binary_stream.py +877 -0
  146. polyfile/kaitai/parsers/resource_fork.py +611 -0
  147. polyfile/kaitai/parsers/respack.py +57 -0
  148. polyfile/kaitai/parsers/riff.py +409 -0
  149. polyfile/kaitai/parsers/rpm.py +964 -0
  150. polyfile/kaitai/parsers/rtcp_payload.py +579 -0
  151. polyfile/kaitai/parsers/rtp_packet.py +150 -0
  152. polyfile/kaitai/parsers/rtpdump.py +115 -0
  153. polyfile/kaitai/parsers/ruby_marshal.py +423 -0
  154. polyfile/kaitai/parsers/s3m.py +493 -0
  155. polyfile/kaitai/parsers/saints_row_2_vpp_pc.py +254 -0
  156. polyfile/kaitai/parsers/shapefile_index.py +174 -0
  157. polyfile/kaitai/parsers/shapefile_main.py +893 -0
  158. polyfile/kaitai/parsers/some_ip.py +209 -0
  159. polyfile/kaitai/parsers/some_ip_container.py +37 -0
  160. polyfile/kaitai/parsers/some_ip_sd.py +86 -0
  161. polyfile/kaitai/parsers/some_ip_sd_entries.py +160 -0
  162. polyfile/kaitai/parsers/some_ip_sd_options.py +374 -0
  163. polyfile/kaitai/parsers/specpr.py +404 -0
  164. polyfile/kaitai/parsers/sqlite3.py +472 -0
  165. polyfile/kaitai/parsers/ssh_public_key.py +252 -0
  166. polyfile/kaitai/parsers/standard_midi_file.py +390 -0
  167. polyfile/kaitai/parsers/stl.py +111 -0
  168. polyfile/kaitai/parsers/sudoers_ts.py +201 -0
  169. polyfile/kaitai/parsers/swf.py +406 -0
  170. polyfile/kaitai/parsers/systemd_journal.py +361 -0
  171. polyfile/kaitai/parsers/tcp_segment.py +57 -0
  172. polyfile/kaitai/parsers/tga.py +213 -0
  173. polyfile/kaitai/parsers/tls_client_hello.py +293 -0
  174. polyfile/kaitai/parsers/tr_dos_image.py +322 -0
  175. polyfile/kaitai/parsers/tsm.py +198 -0
  176. polyfile/kaitai/parsers/ttf.py +1847 -0
  177. polyfile/kaitai/parsers/udp_datagram.py +42 -0
  178. polyfile/kaitai/parsers/uefi_te.py +236 -0
  179. polyfile/kaitai/parsers/uimage.py +198 -0
  180. polyfile/kaitai/parsers/utf8_string.py +137 -0
  181. polyfile/kaitai/parsers/vfat.py +410 -0
  182. polyfile/kaitai/parsers/vlq_base128_be.py +104 -0
  183. polyfile/kaitai/parsers/vlq_base128_le.py +129 -0
  184. polyfile/kaitai/parsers/vmware_vmdk.py +167 -0
  185. polyfile/kaitai/parsers/vp8_ivf.py +112 -0
  186. polyfile/kaitai/parsers/warcraft_2_pud.py +423 -0
  187. polyfile/kaitai/parsers/wav.py +1014 -0
  188. polyfile/kaitai/parsers/websocket.py +167 -0
  189. polyfile/kaitai/parsers/windows_evt_log.py +304 -0
  190. polyfile/kaitai/parsers/windows_lnk_file.py +467 -0
  191. polyfile/kaitai/parsers/windows_minidump.py +575 -0
  192. polyfile/kaitai/parsers/windows_resource_file.py +243 -0
  193. polyfile/kaitai/parsers/windows_shell_items.py +190 -0
  194. polyfile/kaitai/parsers/windows_systemtime.py +52 -0
  195. polyfile/kaitai/parsers/wmf.py +502 -0
  196. polyfile/kaitai/parsers/xar.py +181 -0
  197. polyfile/kaitai/parsers/xwd.py +189 -0
  198. polyfile/kaitai/parsers/zip.py +685 -0
  199. polyfile/kaitai/parsers/zisofs.py +158 -0
  200. polyfile/kaitai/parsers/zx_spectrum_tap.py +184 -0
  201. polyfile/kaitaimatcher.py +113 -0
  202. polyfile/languagematcher.py +217 -0
  203. polyfile/logger.py +135 -0
  204. polyfile/magic.py +2983 -0
  205. polyfile/magic_defs/COPYING +29 -0
  206. polyfile/magic_defs/__init__.py +0 -0
  207. polyfile/magic_defs/acorn +102 -0
  208. polyfile/magic_defs/adi +13 -0
  209. polyfile/magic_defs/adventure +122 -0
  210. polyfile/magic_defs/aes +29 -0
  211. polyfile/magic_defs/algol68 +35 -0
  212. polyfile/magic_defs/allegro +9 -0
  213. polyfile/magic_defs/alliant +18 -0
  214. polyfile/magic_defs/alpha +32 -0
  215. polyfile/magic_defs/amanda +12 -0
  216. polyfile/magic_defs/amigaos +218 -0
  217. polyfile/magic_defs/android +259 -0
  218. polyfile/magic_defs/animation +1197 -0
  219. polyfile/magic_defs/aout +46 -0
  220. polyfile/magic_defs/apache +28 -0
  221. polyfile/magic_defs/apl +7 -0
  222. polyfile/magic_defs/apple +773 -0
  223. polyfile/magic_defs/application +7 -0
  224. polyfile/magic_defs/applix +13 -0
  225. polyfile/magic_defs/apt +52 -0
  226. polyfile/magic_defs/archive +2586 -0
  227. polyfile/magic_defs/aria +38 -0
  228. polyfile/magic_defs/arm +50 -0
  229. polyfile/magic_defs/asf +132 -0
  230. polyfile/magic_defs/assembler +18 -0
  231. polyfile/magic_defs/asterix +18 -0
  232. polyfile/magic_defs/att3b +41 -0
  233. polyfile/magic_defs/audio +1291 -0
  234. polyfile/magic_defs/avm +33 -0
  235. polyfile/magic_defs/basis +18 -0
  236. polyfile/magic_defs/beetle +7 -0
  237. polyfile/magic_defs/ber +65 -0
  238. polyfile/magic_defs/bflt +14 -0
  239. polyfile/magic_defs/bhl +10 -0
  240. polyfile/magic_defs/bioinformatics +178 -0
  241. polyfile/magic_defs/biosig +154 -0
  242. polyfile/magic_defs/blackberry +8 -0
  243. polyfile/magic_defs/blcr +25 -0
  244. polyfile/magic_defs/blender +50 -0
  245. polyfile/magic_defs/blit +24 -0
  246. polyfile/magic_defs/bm +10 -0
  247. polyfile/magic_defs/bout +11 -0
  248. polyfile/magic_defs/bsdi +33 -0
  249. polyfile/magic_defs/bsi +10 -0
  250. polyfile/magic_defs/btsnoop +13 -0
  251. polyfile/magic_defs/burp +7 -0
  252. polyfile/magic_defs/bytecode +41 -0
  253. polyfile/magic_defs/c-lang +110 -0
  254. polyfile/magic_defs/c64 +531 -0
  255. polyfile/magic_defs/cad +437 -0
  256. polyfile/magic_defs/cafebabe +107 -0
  257. polyfile/magic_defs/cbor +21 -0
  258. polyfile/magic_defs/ccf +14 -0
  259. polyfile/magic_defs/cddb +12 -0
  260. polyfile/magic_defs/chord +15 -0
  261. polyfile/magic_defs/cisco +12 -0
  262. polyfile/magic_defs/citrus +12 -0
  263. polyfile/magic_defs/clarion +27 -0
  264. polyfile/magic_defs/claris +48 -0
  265. polyfile/magic_defs/clipper +65 -0
  266. polyfile/magic_defs/clojure +30 -0
  267. polyfile/magic_defs/coff +98 -0
  268. polyfile/magic_defs/commands +201 -0
  269. polyfile/magic_defs/communications +22 -0
  270. polyfile/magic_defs/compress +461 -0
  271. polyfile/magic_defs/console +1213 -0
  272. polyfile/magic_defs/convex +69 -0
  273. polyfile/magic_defs/coverage +91 -0
  274. polyfile/magic_defs/cracklib +14 -0
  275. polyfile/magic_defs/crypto +31 -0
  276. polyfile/magic_defs/csv +8 -0
  277. polyfile/magic_defs/ctags +6 -0
  278. polyfile/magic_defs/ctf +23 -0
  279. polyfile/magic_defs/cubemap +8 -0
  280. polyfile/magic_defs/cups +56 -0
  281. polyfile/magic_defs/dact +11 -0
  282. polyfile/magic_defs/database +886 -0
  283. polyfile/magic_defs/dataone +47 -0
  284. polyfile/magic_defs/dbpf +15 -0
  285. polyfile/magic_defs/der +146 -0
  286. polyfile/magic_defs/diamond +12 -0
  287. polyfile/magic_defs/dif +33 -0
  288. polyfile/magic_defs/diff +41 -0
  289. polyfile/magic_defs/digital +59 -0
  290. polyfile/magic_defs/dolby +69 -0
  291. polyfile/magic_defs/dsf +25 -0
  292. polyfile/magic_defs/dump +96 -0
  293. polyfile/magic_defs/dwarfs +45 -0
  294. polyfile/magic_defs/dyadic +61 -0
  295. polyfile/magic_defs/ebml +8 -0
  296. polyfile/magic_defs/edid +11 -0
  297. polyfile/magic_defs/editors +43 -0
  298. polyfile/magic_defs/efi +15 -0
  299. polyfile/magic_defs/elf +379 -0
  300. polyfile/magic_defs/encore +22 -0
  301. polyfile/magic_defs/epoc +62 -0
  302. polyfile/magic_defs/erlang +21 -0
  303. polyfile/magic_defs/espressif +57 -0
  304. polyfile/magic_defs/esri +28 -0
  305. polyfile/magic_defs/etf +33 -0
  306. polyfile/magic_defs/fcs +9 -0
  307. polyfile/magic_defs/filesystems +2694 -0
  308. polyfile/magic_defs/finger +16 -0
  309. polyfile/magic_defs/firmware +133 -0
  310. polyfile/magic_defs/flash +62 -0
  311. polyfile/magic_defs/flif +36 -0
  312. polyfile/magic_defs/fonts +449 -0
  313. polyfile/magic_defs/forth +82 -0
  314. polyfile/magic_defs/fortran +9 -0
  315. polyfile/magic_defs/frame +62 -0
  316. polyfile/magic_defs/freebsd +164 -0
  317. polyfile/magic_defs/fsav +128 -0
  318. polyfile/magic_defs/fusecompress +12 -0
  319. polyfile/magic_defs/games +696 -0
  320. polyfile/magic_defs/gcc +17 -0
  321. polyfile/magic_defs/gconv +10 -0
  322. polyfile/magic_defs/gentoo +85 -0
  323. polyfile/magic_defs/geo +166 -0
  324. polyfile/magic_defs/geos +20 -0
  325. polyfile/magic_defs/gimp +77 -0
  326. polyfile/magic_defs/git +13 -0
  327. polyfile/magic_defs/glibc +21 -0
  328. polyfile/magic_defs/gnome +59 -0
  329. polyfile/magic_defs/gnu +173 -0
  330. polyfile/magic_defs/gnumeric +8 -0
  331. polyfile/magic_defs/gpt +240 -0
  332. polyfile/magic_defs/gpu +28 -0
  333. polyfile/magic_defs/grace +21 -0
  334. polyfile/magic_defs/graphviz +12 -0
  335. polyfile/magic_defs/gringotts +48 -0
  336. polyfile/magic_defs/guile +13 -0
  337. polyfile/magic_defs/hardware +12 -0
  338. polyfile/magic_defs/hitachi-sh +30 -0
  339. polyfile/magic_defs/hp +433 -0
  340. polyfile/magic_defs/human68k +26 -0
  341. polyfile/magic_defs/ibm370 +52 -0
  342. polyfile/magic_defs/ibm6000 +35 -0
  343. polyfile/magic_defs/icc +214 -0
  344. polyfile/magic_defs/iff +80 -0
  345. polyfile/magic_defs/images +4210 -0
  346. polyfile/magic_defs/inform +9 -0
  347. polyfile/magic_defs/intel +310 -0
  348. polyfile/magic_defs/interleaf +9 -0
  349. polyfile/magic_defs/island +10 -0
  350. polyfile/magic_defs/ispell +63 -0
  351. polyfile/magic_defs/isz +15 -0
  352. polyfile/magic_defs/java +52 -0
  353. polyfile/magic_defs/javascript +171 -0
  354. polyfile/magic_defs/jpeg +252 -0
  355. polyfile/magic_defs/json +8 -0
  356. polyfile/magic_defs/karma +9 -0
  357. polyfile/magic_defs/kde +11 -0
  358. polyfile/magic_defs/keepass +20 -0
  359. polyfile/magic_defs/kerberos +45 -0
  360. polyfile/magic_defs/kicad +85 -0
  361. polyfile/magic_defs/kml +34 -0
  362. polyfile/magic_defs/lammps +64 -0
  363. polyfile/magic_defs/lecter +6 -0
  364. polyfile/magic_defs/lex +12 -0
  365. polyfile/magic_defs/lif +50 -0
  366. polyfile/magic_defs/linux +557 -0
  367. polyfile/magic_defs/lisp +78 -0
  368. polyfile/magic_defs/llvm +22 -0
  369. polyfile/magic_defs/locoscript +12 -0
  370. polyfile/magic_defs/lua +31 -0
  371. polyfile/magic_defs/luks +126 -0
  372. polyfile/magic_defs/m4 +11 -0
  373. polyfile/magic_defs/mach +303 -0
  374. polyfile/magic_defs/macintosh +505 -0
  375. polyfile/magic_defs/macos +7 -0
  376. polyfile/magic_defs/magic +10 -0
  377. polyfile/magic_defs/magic.mgc +0 -0
  378. polyfile/magic_defs/mail.news +132 -0
  379. polyfile/magic_defs/make +21 -0
  380. polyfile/magic_defs/map +413 -0
  381. polyfile/magic_defs/maple +109 -0
  382. polyfile/magic_defs/marc21 +30 -0
  383. polyfile/magic_defs/mathcad +8 -0
  384. polyfile/magic_defs/mathematica +188 -0
  385. polyfile/magic_defs/matroska +17 -0
  386. polyfile/magic_defs/mcrypt +52 -0
  387. polyfile/magic_defs/measure +44 -0
  388. polyfile/magic_defs/mercurial +13 -0
  389. polyfile/magic_defs/metastore +8 -0
  390. polyfile/magic_defs/meteorological +53 -0
  391. polyfile/magic_defs/microfocus +21 -0
  392. polyfile/magic_defs/mime +9 -0
  393. polyfile/magic_defs/mips +120 -0
  394. polyfile/magic_defs/mirage +8 -0
  395. polyfile/magic_defs/misctools +140 -0
  396. polyfile/magic_defs/mkid +11 -0
  397. polyfile/magic_defs/mlssa +8 -0
  398. polyfile/magic_defs/mmdf +6 -0
  399. polyfile/magic_defs/modem +92 -0
  400. polyfile/magic_defs/modulefile +9 -0
  401. polyfile/magic_defs/motorola +71 -0
  402. polyfile/magic_defs/mozilla +37 -0
  403. polyfile/magic_defs/msdos +2304 -0
  404. polyfile/magic_defs/msooxml +68 -0
  405. polyfile/magic_defs/msvc +222 -0
  406. polyfile/magic_defs/msx +309 -0
  407. polyfile/magic_defs/mup +24 -0
  408. polyfile/magic_defs/music +17 -0
  409. polyfile/magic_defs/nasa +7 -0
  410. polyfile/magic_defs/natinst +24 -0
  411. polyfile/magic_defs/ncr +49 -0
  412. polyfile/magic_defs/neko +12 -0
  413. polyfile/magic_defs/netbsd +251 -0
  414. polyfile/magic_defs/netscape +26 -0
  415. polyfile/magic_defs/netware +11 -0
  416. polyfile/magic_defs/news +13 -0
  417. polyfile/magic_defs/nifty +202 -0
  418. polyfile/magic_defs/nim-lang +29 -0
  419. polyfile/magic_defs/nitpicker +14 -0
  420. polyfile/magic_defs/numpy +9 -0
  421. polyfile/magic_defs/oasis +12 -0
  422. polyfile/magic_defs/ocaml +14 -0
  423. polyfile/magic_defs/octave +6 -0
  424. polyfile/magic_defs/ole2compounddocs +760 -0
  425. polyfile/magic_defs/olf +98 -0
  426. polyfile/magic_defs/openfst +17 -0
  427. polyfile/magic_defs/opentimestamps +16 -0
  428. polyfile/magic_defs/oric +16 -0
  429. polyfile/magic_defs/os2 +186 -0
  430. polyfile/magic_defs/os400 +39 -0
  431. polyfile/magic_defs/os9 +80 -0
  432. polyfile/magic_defs/osf1 +10 -0
  433. polyfile/magic_defs/palm +156 -0
  434. polyfile/magic_defs/parix +13 -0
  435. polyfile/magic_defs/parrot +22 -0
  436. polyfile/magic_defs/pascal +39 -0
  437. polyfile/magic_defs/pbf +11 -0
  438. polyfile/magic_defs/pbm +8 -0
  439. polyfile/magic_defs/pc88 +24 -0
  440. polyfile/magic_defs/pc98 +77 -0
  441. polyfile/magic_defs/pci_ids +116 -0
  442. polyfile/magic_defs/pcjr +8 -0
  443. polyfile/magic_defs/pdf +51 -0
  444. polyfile/magic_defs/pdp +42 -0
  445. polyfile/magic_defs/perl +100 -0
  446. polyfile/magic_defs/pgf +52 -0
  447. polyfile/magic_defs/pgp +581 -0
  448. polyfile/magic_defs/pgp-binary-keys +388 -0
  449. polyfile/magic_defs/pkgadd +7 -0
  450. polyfile/magic_defs/plan9 +25 -0
  451. polyfile/magic_defs/playdate +57 -0
  452. polyfile/magic_defs/plus5 +18 -0
  453. polyfile/magic_defs/pmem +46 -0
  454. polyfile/magic_defs/polyfile_zip +5 -0
  455. polyfile/magic_defs/polyml +23 -0
  456. polyfile/magic_defs/printer +269 -0
  457. polyfile/magic_defs/project +10 -0
  458. polyfile/magic_defs/psdbms +14 -0
  459. polyfile/magic_defs/psl +14 -0
  460. polyfile/magic_defs/pulsar +13 -0
  461. polyfile/magic_defs/puzzle +17 -0
  462. polyfile/magic_defs/pwsafe +14 -0
  463. polyfile/magic_defs/pyramid +12 -0
  464. polyfile/magic_defs/python +305 -0
  465. polyfile/magic_defs/qt +30 -0
  466. polyfile/magic_defs/revision +66 -0
  467. polyfile/magic_defs/riff +840 -0
  468. polyfile/magic_defs/rinex +44 -0
  469. polyfile/magic_defs/ringdove +45 -0
  470. polyfile/magic_defs/rpi +52 -0
  471. polyfile/magic_defs/rpm +45 -0
  472. polyfile/magic_defs/rpmsg +7 -0
  473. polyfile/magic_defs/rst +11 -0
  474. polyfile/magic_defs/rtf +94 -0
  475. polyfile/magic_defs/ruby +55 -0
  476. polyfile/magic_defs/rust +21 -0
  477. polyfile/magic_defs/sc +7 -0
  478. polyfile/magic_defs/sccs +24 -0
  479. polyfile/magic_defs/scientific +144 -0
  480. polyfile/magic_defs/securitycerts +6 -0
  481. polyfile/magic_defs/selinux +24 -0
  482. polyfile/magic_defs/sendmail +37 -0
  483. polyfile/magic_defs/sequent +42 -0
  484. polyfile/magic_defs/sereal +35 -0
  485. polyfile/magic_defs/sgi +144 -0
  486. polyfile/magic_defs/sgml +161 -0
  487. polyfile/magic_defs/sharc +23 -0
  488. polyfile/magic_defs/sinclair +40 -0
  489. polyfile/magic_defs/sisu +18 -0
  490. polyfile/magic_defs/sketch +6 -0
  491. polyfile/magic_defs/smalltalk +25 -0
  492. polyfile/magic_defs/smile +34 -0
  493. polyfile/magic_defs/sniffer +482 -0
  494. polyfile/magic_defs/softquad +40 -0
  495. polyfile/magic_defs/sosi +40 -0
  496. polyfile/magic_defs/spec +21 -0
  497. polyfile/magic_defs/spectrum +184 -0
  498. polyfile/magic_defs/sql +288 -0
  499. polyfile/magic_defs/ssh +39 -0
  500. polyfile/magic_defs/ssl +20 -0
  501. polyfile/magic_defs/statistics +45 -0
  502. polyfile/magic_defs/subtitle +38 -0
  503. polyfile/magic_defs/sun +141 -0
  504. polyfile/magic_defs/svf +5 -0
  505. polyfile/magic_defs/sylk +36 -0
  506. polyfile/magic_defs/symbos +42 -0
  507. polyfile/magic_defs/sysex +429 -0
  508. polyfile/magic_defs/tcl +29 -0
  509. polyfile/magic_defs/teapot +6 -0
  510. polyfile/magic_defs/terminfo +63 -0
  511. polyfile/magic_defs/tex +141 -0
  512. polyfile/magic_defs/tgif +7 -0
  513. polyfile/magic_defs/ti-8x +239 -0
  514. polyfile/magic_defs/timezone +42 -0
  515. polyfile/magic_defs/tplink +95 -0
  516. polyfile/magic_defs/troff +38 -0
  517. polyfile/magic_defs/tuxedo +8 -0
  518. polyfile/magic_defs/typeset +8 -0
  519. polyfile/magic_defs/uf2 +72 -0
  520. polyfile/magic_defs/unicode +15 -0
  521. polyfile/magic_defs/unisig +12 -0
  522. polyfile/magic_defs/unknown +34 -0
  523. polyfile/magic_defs/usd +21 -0
  524. polyfile/magic_defs/uterus +16 -0
  525. polyfile/magic_defs/uuencode +28 -0
  526. polyfile/magic_defs/vacuum-cleaner +54 -0
  527. polyfile/magic_defs/varied.out +46 -0
  528. polyfile/magic_defs/varied.script +21 -0
  529. polyfile/magic_defs/vax +32 -0
  530. polyfile/magic_defs/vicar +17 -0
  531. polyfile/magic_defs/virtual +307 -0
  532. polyfile/magic_defs/virtutech +12 -0
  533. polyfile/magic_defs/visx +32 -0
  534. polyfile/magic_defs/vms +30 -0
  535. polyfile/magic_defs/vmware +6 -0
  536. polyfile/magic_defs/vorbis +155 -0
  537. polyfile/magic_defs/vxl +14 -0
  538. polyfile/magic_defs/warc +16 -0
  539. polyfile/magic_defs/weak +16 -0
  540. polyfile/magic_defs/web +18 -0
  541. polyfile/magic_defs/webassembly +17 -0
  542. polyfile/magic_defs/windows +1811 -0
  543. polyfile/magic_defs/wireless +7 -0
  544. polyfile/magic_defs/wordprocessors +630 -0
  545. polyfile/magic_defs/wsdl +23 -0
  546. polyfile/magic_defs/x68000 +25 -0
  547. polyfile/magic_defs/xdelta +13 -0
  548. polyfile/magic_defs/xenix +106 -0
  549. polyfile/magic_defs/xilinx +58 -0
  550. polyfile/magic_defs/xo65 +37 -0
  551. polyfile/magic_defs/xwindows +43 -0
  552. polyfile/magic_defs/yara +17 -0
  553. polyfile/magic_defs/zfs +96 -0
  554. polyfile/magic_defs/zilog +12 -0
  555. polyfile/magic_defs/zip +126 -0
  556. polyfile/magic_defs/zyxel +17 -0
  557. polyfile/nes.py +144 -0
  558. polyfile/nitf.py +15 -0
  559. polyfile/pdf.py +1264 -0
  560. polyfile/pickles.py +45 -0
  561. polyfile/polyfile.py +409 -0
  562. polyfile/profiling.py +115 -0
  563. polyfile/repl.py +624 -0
  564. polyfile/search.py +310 -0
  565. polyfile/serialization.py +323 -0
  566. polyfile/structmatcher.py +46 -0
  567. polyfile/structs.py +281 -0
  568. polyfile/templates/download.js +162 -0
  569. polyfile/templates/hexdump.css +268 -0
  570. polyfile/templates/hexdump.js +756 -0
  571. polyfile/templates/jquery-3.4.1.min.js +2 -0
  572. polyfile/templates/template.html +119 -0
  573. polyfile/wildcards.py +62 -0
  574. polyfile/zipmatcher.py +183 -0
  575. polyfile_weave-0.5.5.dist-info/METADATA +173 -0
  576. polyfile_weave-0.5.5.dist-info/RECORD +585 -0
  577. polyfile_weave-0.5.5.dist-info/WHEEL +5 -0
  578. polyfile_weave-0.5.5.dist-info/entry_points.txt +2 -0
  579. polyfile_weave-0.5.5.dist-info/licenses/LICENSE +202 -0
  580. polyfile_weave-0.5.5.dist-info/top_level.txt +2 -0
  581. polymerge/__init__.py +1 -0
  582. polymerge/__main__.py +296 -0
  583. polymerge/cfg.py +127 -0
  584. polymerge/polymerge.py +227 -0
  585. polymerge/polytracker.py +190 -0
@@ -0,0 +1,33 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: avm,v 1.1 2020/08/28 20:37:58 christos Exp $
4
+ # avm: file(1) magic for avm files; this is not use
5
+
6
+ # Summary: FRITZ!Box router configuration backup
7
+ # From: Joerg Jenderek
8
+ # URL: https://en.wikipedia.org/wiki/Fritz!Box
9
+ # Reference: http://www.mengelke.de/Projekte/FritzBoxTools2
10
+ # Note: only tested with models 4040 and 6490 Cable (lgi)
11
+ 0 string ****\ FRITZ!Box\ FRITZ!Box configuration backup
12
+ #!:mime text/plain
13
+ !:mime application/x-avm-export
14
+ !:ext export
15
+ # router model name like "4040" , "6490 Cable (lgi)" followed by " CONFIGURATION EXPORT"
16
+ >15 string x of %-.4s
17
+ # on 2nd line hashed password
18
+ #>41 search/54 Password= \b, password
19
+ # on 3rd line firmware version like: 141.06.24 141.06.50 141.07.10 ... 155.06.83
20
+ >41 search/172 FirmwareVersion= \b, firmware version
21
+ >>&0 string x %s
22
+ # on 5th line oem like: avme lgi
23
+ >41 search/285 OEM= \b, oem
24
+ >>&0 string x %s
25
+ # on 7th line language like: de en
26
+ >41 search/305 Language= \b, language
27
+ >>&0 string x %s
28
+ # on 10th line cfg file name like: /var/tmp.cfg
29
+ >41 search/349 tmp.cfg
30
+ # on 11th line date inside c-comment like: Thu Jun 4 22:25:19 2015
31
+ >>&4 string x \b, %s
32
+ #
33
+
@@ -0,0 +1,18 @@
1
+
2
+ #----------------------------------------------------------------
3
+ # $File: basis,v 1.5 2019/04/19 00:42:27 christos Exp $
4
+ # basis: file(1) magic for BBx/Pro5-files
5
+ # Oliver Dammer <dammer@olida.de> 2005/11/07
6
+ # https://www.basis.com business-basic-files.
7
+ #
8
+ 0 string \074\074bbx\076\076 BBx
9
+ >7 string \000 indexed file
10
+ >7 string \001 serial file
11
+ >7 string \002 keyed file
12
+ >>13 short 0 (sort)
13
+ >7 string \004 program
14
+ >>18 byte x (LEVEL %d)
15
+ >>>23 string >\000 psaved
16
+ >7 string \006 mkeyed file
17
+ >>13 short 0 (sort)
18
+ >>8 string \000 (mkey)
@@ -0,0 +1,7 @@
1
+ #------------------------------------------------------------------------------
2
+ # $File: beetle,v 1.2 2018/02/05 23:42:17 rrt Exp $
3
+ # beetle: file(1) magic for Beetle VM object files
4
+ # https://github.com/rrthomas/beetle/
5
+
6
+ # Beetle object module
7
+ 0 string BEETLE\000 Beetle VM object file
@@ -0,0 +1,65 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: ber,v 1.2 2019/04/19 00:42:27 christos Exp $
4
+ # ber: file(1) magic for several BER formats used in the mobile
5
+ # telecommunications industry (Georg Sauthoff)
6
+
7
+ # The file formats are standardized by the GSMA (GSM association).
8
+ # They are specified via ASN.1 schemas and some prose. Basic encoding
9
+ # rules (BER) is the used encoding. The formats are used for exchanging
10
+ # call data records (CDRs) between mobile operators and associated
11
+ # parties for roaming clearing purposes and fraud detection.
12
+
13
+ # The magic file covers:
14
+
15
+ # - TAP files (TD.57) - CDR batches and notifications
16
+ # - RAP files (TD.32) - return batches and acknowledgements
17
+ # - NRT files (TD.35) - CDR batches for 'near real time' processing
18
+
19
+ #
20
+ # TAP 3 Files
21
+ # TAP -> Transferred Account Procedure
22
+ # cf. https://www.gsma.com/newsroom/wp-content/uploads/TD.57-v32.31.pdf
23
+ # TransferBatch short tag
24
+ 0 byte 0x61
25
+ # BatchControlInfo short tag
26
+ >&1 search/b5 \x64
27
+ # Sender long tag #TAP 3.x (BER encoded)
28
+ >>&1 search/b8 \x5f\x81\x44
29
+ # <SpecificationVersionNumber>3</><ReleaseVersionNumber> block
30
+ >>>&64 search/b64 \x5f\x81\x49\x01\x03\x5f\x81\x3d\x01
31
+ >>>>&0 byte x TAP 3.%d Batch (TD.57, Transferred Account)
32
+
33
+ # Notification short tag
34
+ 0 byte 0x62
35
+ # Sender long tag
36
+ >2 search/b8 \x5f\x81\x44
37
+ # <SpecificationVersionNumber>3</><ReleaseVersionNumber> block
38
+ >>&64 search/b64 \x5f\x81\x49\x01\x03\x5f\x81\x3d\x01
39
+ >>>&0 byte x TAP 3.%d Notification (TD.57, Transferred Account)
40
+
41
+
42
+ # NRT Files
43
+ # NRT a.k.a. NRTRDE
44
+ 0 byte 0x61
45
+ # <SpecificationVersionNumber>2</><ReleaseVersionNumber> block
46
+ >&1 search/b8 \x5f\x29\x01\x02\x5f\x25\x01
47
+ >>&0 byte x NRT 2.%d (TD.35, Near Real Time Roaming Data Exchange)
48
+
49
+ # RAP Files
50
+ # cf. https://www.gsma.com/newsroom/wp-content/uploads/TD.32-v6.11.pdf
51
+ # Long ReturnBatch tag
52
+ 0 string \x7f\x84\x16
53
+ # Long RapBatchControlInfo tag
54
+ >&1 search/b8 \x7f\x84\x19
55
+ # <SpecificationVersionNumber>3</><ReleaseVersionNumber> block
56
+ >>&64 search/b64 \x5f\x81\x49\x01\x03\x5f\x81\x3d\x01
57
+ # <RapSpecificationVersionNumber>1</><RapReleaseVersionNumber> block
58
+ >>>&1 string/b \x5f\x84\x20\x01\x01\x5f\x84\x1f\x01
59
+ >>>>&0 byte x RAP 1.%d Batch (TD.32, Returned Account Procedure),
60
+ >>>&0 byte x TAP 3.%d
61
+
62
+ # Long Acknowledgement tag
63
+ 0 string \x7f\x84\x17
64
+ # Long Sender tag
65
+ >&1 search/b5 \x5f\x81\x44 RAP Acknowledgement (TD.32, Returned Account Procedure)
@@ -0,0 +1,14 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: bflt,v 1.5 2014/04/30 21:41:02 christos Exp $
4
+ # bFLT: file(1) magic for BFLT uclinux binary files
5
+ #
6
+ # From Philippe De Muyter <phdm@macqel.be>
7
+ #
8
+ 0 string bFLT BFLT executable
9
+ >4 belong x - version %d
10
+ >4 belong 4
11
+ >>36 belong&0x1 0x1 ram
12
+ >>36 belong&0x2 0x2 gotpic
13
+ >>36 belong&0x4 0x4 gzip
14
+ >>36 belong&0x8 0x8 gzdata
@@ -0,0 +1,10 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: bhl,v 1.1 2017/06/11 22:20:02 christos Exp $
4
+ # BlockHashLoc
5
+ # ext: bhl
6
+ # Marco Pontello marcopon@gmail.com
7
+ # reference: https://github.com/MarcoPon/BlockHashLoc
8
+ 0 string BlockHashLoc\x1a BlockHashLoc recovery info,
9
+ >13 byte x version %d
10
+ !:ext bhl
@@ -0,0 +1,178 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: bioinformatics,v 1.5 2019/04/19 00:42:27 christos Exp $
4
+ # bioinfomatics: file(1) magic for Bioinfomatics file formats
5
+
6
+ ###############################################################################
7
+ # BGZF (Blocked GNU Zip Format) - gzip compatible, but also indexable
8
+ # used by SAMtools bgzip/tabix (http://samtools.sourceforge.net/tabix.shtml)
9
+ ###############################################################################
10
+ 0 string \037\213
11
+ >3 byte &0x04
12
+ >>12 string BC
13
+ >>>14 leshort &0x02 Blocked GNU Zip Format (BGZF; gzip compatible)
14
+ >>>>16 leshort x \b, block length %d
15
+ !:mime application/x-gzip
16
+
17
+
18
+ ###############################################################################
19
+ # Tabix index file
20
+ # used by SAMtools bgzip/tabix (http://samtools.sourceforge.net/tabix.shtml)
21
+ ###############################################################################
22
+ 0 string TBI\1 SAMtools TBI (Tabix index format)
23
+ >0x04 lelong =1 \b, with %d reference sequence
24
+ >0x04 lelong >1 \b, with %d reference sequences
25
+ >0x08 lelong &0x10000 \b, using half-closed-half-open coordinates (BED style)
26
+ >0x08 lelong ^0x10000
27
+ >>0x08 lelong =0 \b, using closed and one based coordinates (GFF style)
28
+ >>0x08 lelong =1 \b, using SAM format
29
+ >>0x08 lelong =2 \b, using VCF format
30
+ >0x0c lelong x \b, sequence name column: %d
31
+ >0x10 lelong x \b, region start column: %d
32
+ >0x08 lelong =0
33
+ >>0x14 lelong x \b, region end column: %d
34
+ >0x18 byte x \b, comment character: %c
35
+ >0x1c lelong x \b, skip line count: %d
36
+
37
+
38
+ ###############################################################################
39
+ # BAM (Binary Sequence Alignment/Map format)
40
+ # used by SAMtools (http://samtools.sourceforge.net/SAM1.pdf)
41
+ # data is normally present only within compressed BGZF blocks (CDATA), so use file -z to examine it
42
+ ###############################################################################
43
+ 0 string BAM\1 SAMtools BAM (Binary Sequence Alignment/Map)
44
+ >0x04 lelong >0
45
+ >>&0x00 regex =^[@]HD\t.*VN: \b, with SAM header
46
+ >>>&0 regex =[0-9.]+ \b version %s
47
+ >>&(0x04) lelong >0 \b, with %d reference sequences
48
+
49
+
50
+ ###############################################################################
51
+ # BAI (BAM indexing format)
52
+ # used by SAMtools (http://samtools.sourceforge.net/SAM1.pdf)
53
+ ###############################################################################
54
+ 0 string BAI\1 SAMtools BAI (BAM indexing format)
55
+ >0x04 lelong >0 \b, with %d reference sequences
56
+
57
+
58
+ ###############################################################################
59
+ # CRAM (Binary Sequence Alignment/Map format)
60
+ ###############################################################################
61
+ 0 string CRAM CRAM
62
+ >0x04 byte >-1 version %d.
63
+ >0x05 byte >-1 \b%d
64
+ >0x06 string >\0 (identified as %s)
65
+
66
+
67
+ ###############################################################################
68
+ # BCF (Binary Call Format), version 1
69
+ # used by SAMtools & VCFtools (http://vcftools.sourceforge.net/bcf.pdf)
70
+ # data is normally present only within compressed BGZF blocks (CDATA), so use file -z to examine it
71
+ ###############################################################################
72
+ 0 string BCF\4
73
+ # length of seqnm data in bytes is positive
74
+ >&0x00 lelong >0
75
+ # length of smpl data in bytes is positive
76
+ >>&(&-0x04) lelong >0 SAMtools BCF (Binary Call Format)
77
+ # length of meta in bytes
78
+ >>>&(&-0x04) lelong >0
79
+ # have meta text string
80
+ >>>>&0x00 search ##samtoolsVersion=
81
+ >>>>>&0x00 string x \b, generated by SAMtools version %s
82
+
83
+
84
+ ###############################################################################
85
+ # BCF (Binary Call Format), version 2.1
86
+ # used by SAMtools (https://samtools.github.io/hts-specs/BCFv2_qref.pdf)
87
+ # data is normally present only within compressed BGZF blocks (CDATA), so use file -z to examine it
88
+ ###############################################################################
89
+ 0 string BCF\2\1 Binary Call Format (BCF) version 2.1
90
+ # length of header text
91
+ >&0x00 lelong >0
92
+ # have header string
93
+ >>&0x00 search ##samtoolsVersion=
94
+ >>>&0x00 string x \b, generated by SAMtools version %s
95
+
96
+
97
+ ###############################################################################
98
+ # BCF (Binary Call Format), version 2.2
99
+ # used by SAMtools (https://samtools.github.io/hts-specs/BCFv2_qref.pdf)
100
+ # data is normally present only within compressed BGZF blocks (CDATA), so use file -z to examine it
101
+ ###############################################################################
102
+ 0 string BCF\2\2 Binary Call Format (BCF) version 2.2
103
+ # length of header text
104
+ >&0x00 lelong >0
105
+ # have header string
106
+ >>&0x00 search ##samtoolsVersion=
107
+ >>>&0x00 string x \b, generated by SAMtools version %s
108
+
109
+ ###############################################################################
110
+ # VCF (Variant Call Format)
111
+ # used by VCFtools (http://vcftools.sourceforge.net/)
112
+ ###############################################################################
113
+ 0 search ##fileformat=VCFv Variant Call Format (VCF)
114
+ >&0 string x \b version %s
115
+
116
+ ###############################################################################
117
+ # FASTQ
118
+ # used by MAQ (http://maq.sourceforge.net/fastq.shtml)
119
+ ###############################################################################
120
+ # XXX Broken?
121
+ # @<seqname>
122
+ #0 regex =^@[A-Za-z0-9_.:-]+\?\n
123
+ # <seq>
124
+ #>&1 regex =^[A-Za-z\n.~]++
125
+ # +[<seqname>]
126
+ #>>&1 regex =^[A-Za-z0-9_.:-]*\?\n
127
+ # <qual>
128
+ #>>>&1 regex =^[!-~\n]+\n FASTQ
129
+
130
+ ###############################################################################
131
+ # FASTA
132
+ # used by FASTA (https://fasta.bioch.virginia.edu/fasta_www2/fasta_guide.pdf)
133
+ ###############################################################################
134
+ #0 byte 0x3e
135
+ # q>0 regex =^[>][!-~\t\ ]+$
136
+ # Amino Acid codes: [A-IK-Z*-]+
137
+ #>>1 regex !=[!-'Jj;:=?@^`|~\\] FASTA
138
+ # IUPAC codes/gaps: [ACGTURYKMSWBDHVNX-]+
139
+ # not in IUPAC codes/gaps: [EFIJLOPQZ]
140
+ #>>>1 regex !=[EFIJLOPQZefijlopqz] \b, with IUPAC nucleotide codes
141
+ #>>>1 regex =^[EFIJLOPQZefijlopqz]+$ \b, with Amino Acid codes
142
+
143
+ ###############################################################################
144
+ # SAM (Sequence Alignment/Map format)
145
+ # used by SAMtools (http://samtools.sourceforge.net/SAM1.pdf)
146
+ ###############################################################################
147
+ # Short-cut version to recognise SAM files with (optional) header at beginning
148
+ ###############################################################################
149
+ 0 string @HD\t
150
+ >4 search VN: Sequence Alignment/Map (SAM), with header
151
+ >>&0 regex [0-9.]+ \b version %s
152
+ ###############################################################################
153
+ # Longer version to recognise SAM alignment lines using (many) regexes
154
+ ###############################################################################
155
+ # SAM Alignment QNAME
156
+ 0 regex =^[!-?A-~]{1,255}(\t[^\t]+){11}
157
+ # SAM Alignment FLAG
158
+ >0 regex =^([^\t]+\t){1}[0-9]{1,5}\t
159
+ # SAM Alignment RNAME
160
+ >>0 regex =^([^\t]+\t){2}\\*|[^*=]*\t
161
+ # SAM Alignment POS
162
+ >>>0 regex =^([^\t]+\t){3}[0-9]{1,9}\t
163
+ # SAM Alignment MAPQ
164
+ >>>>0 regex =^([^\t]+\t){4}[0-9]{1,3}\t
165
+ # SAM Alignment CIGAR
166
+ >>>>>0 regex =\t(\\*|([0-9]+[MIDNSHPX=])+)\t
167
+ # SAM Alignment RNEXT
168
+ >>>>>>0 regex =\t(\\*|=|[!-()+->?-~][!-~]*)\t
169
+ # SAM Alignment PNEXT
170
+ >>>>>>>0 regex =^([^\t]+\t){7}[0-9]{1,9}\t
171
+ # SAM Alignment TLEN
172
+ >>>>>>>>0 regex =\t[+-]{0,1}[0-9]{1,9}\t.*\t
173
+ # SAM Alignment SEQ
174
+ >>>>>>>>>0 regex =^([^\t]+\t){9}(\\*|[A-Za-z=.]+)\t
175
+ # SAM Alignment QUAL
176
+ >>>>>>>>>>0 regex =^([^\t]+\t){10}[!-~]+ Sequence Alignment/Map (SAM)
177
+ >>>>>>>>>>>0 regex =^[@]HD\t.*VN: \b, with header
178
+ >>>>>>>>>>>>&0 regex =[0-9.]+ \b version %s
@@ -0,0 +1,154 @@
1
+
2
+ ##############################################################################
3
+ #
4
+ # Magic ids for biomedical signal file formats
5
+ # Copyright (C) 2018 Alois Schloegl <alois.schloegl@gmail.com>
6
+ #
7
+ # The list has been derived from biosig projects
8
+ # http://biosig.sourceforge.net
9
+ # https://pub.ist.ac.at/~schloegl/matlab/eeg/
10
+ # https://pub.ist.ac.at/~schloegl/biosig/TESTED
11
+ #
12
+ ##############################################################################
13
+ #
14
+ 0 string ABF\x20 Biosig/Axon Binary format
15
+ !:mime biosig/abf2
16
+ 0 string ABF2\0\0 Biosig/Axon Binary format
17
+ !:mime biosig/abf2
18
+ #
19
+ 0 string ATES\x20MEDICA\x20SOFT.\x20EEG\x20for\x20Windows Biosig/ATES MEDICA SOFT. EEG for Windows
20
+ !:mime biosig/ates
21
+ #
22
+ 0 string ATF\x09 Biosig/Axon Text format
23
+ !:mime biosig/atf
24
+ #
25
+ 0 string ADU1 Biosig/Axona file format
26
+ !:mime biosig/axona
27
+ 0 string ADU2 Biosig/Axona file format
28
+ !:mime biosig/axona
29
+ #
30
+ 0 string ALPHA-TRACE-MEDICAL Biosig/alpha trace
31
+ !:mime biosig/alpha
32
+ #
33
+ 0 string AxGr Biosig/AXG
34
+ 0 string axgx Biosig/AXG
35
+ !:mime biosig/axg
36
+ #
37
+ 0 string HeaderLen= Biosig/BCI2000
38
+ 0 string BCI2000V Biosig/BCI2000
39
+ !:mime biosig/bci2000
40
+ #
41
+ ### Specification: https://www.biosemi.com/faq/file_format.htm
42
+ 0 string \xffBIOSEMI Biosig/Biosemi data format
43
+ !:mime biosig/bdf
44
+ #
45
+ 0 string Brain\x20Vision\x20Data\x20Exchange\x20Header\x20File Biosig/Brainvision data file
46
+ 0 string Brain\x20Vision\x20V-Amp\x20Data\x20Header\x20File\x20Version Biosig/Brainvision V-Amp file
47
+ 0 string Brain\x20Vision\x20Data\x20Exchange\x20Marker\x20File,\x20Version Biosig/Brainvision Marker file
48
+ !:mime biosig/brainvision
49
+ #
50
+ 0 string CEDFILE Biosig/CFS: Cambridge Electronic devices File format
51
+ !:mime biosig/ced
52
+ #
53
+ ### Specification: https://www.edfplus.info/specs/index.html
54
+ 0 string 0\x20\x20\x20\x20\x20\x20\x20 Biosig/EDF: European Data format
55
+ !:mime biosig/edf
56
+ #
57
+ ### Specifications: https://arxiv.org/abs/cs/0608052
58
+ 0 string GDF Biosig/GDF: General data format for biosignals
59
+ !:mime biosig/gdf
60
+ #
61
+ 0 string DATA\0\0\0\0 Biosig/Heka Patchmaster
62
+ 0 string DAT1\0\0\0\0 Biosig/Heka Patchmaster
63
+ 0 string DAT2\0\0\0\0 Biosig/Heka Patchmaster
64
+ !:mime biosig/heka
65
+ #
66
+ 0 string (C)\x20CED\x2087 Biosig/CED SMR
67
+ !:mime biosig/ced-smr
68
+ #
69
+ 0 string CFWB\1\0\0\0 Biosig/CFWB
70
+ !:mime biosig/cfwb
71
+ #
72
+ 0 string DEMG Biosig/DEMG
73
+ !:mime biosig/demg
74
+ #
75
+ 0 string EBS\x94\x0a\x13\x1a\x0d Biosig/EBS
76
+ !:mime biosig/ebs
77
+ #
78
+ 0 string Embla\x20data\x20file Biosig/Embla
79
+ !:mime biosig/embla
80
+ #
81
+ 0 string Header\r\nFile Version Biosig/ETG4000
82
+ !:mime biosig/etg4000
83
+ #
84
+ 0 string GALILEO\x20EEG\x20TRACE\x20FILE Biosig/Galileo
85
+ !:mime biosig/galileo
86
+ #
87
+ 0 string IGOR Biosig/IgorPro ITX file
88
+ !:mime biosig/igorpro
89
+ #
90
+ # Specification: http://www.ampsmedical.com/uploads/2017-12-7/The_ISHNE_Format.pdf
91
+ 0 string ISHNE1.0 Biosig/ISHNE
92
+ !:mime biosig/ishne
93
+ #
94
+ # CEN/ISO 11073/22077 series, http://www.mfer.org/en/document.htm
95
+ 0 string @\x20\x20MFER\x20 Biosig/MFER
96
+ 0 string @\x20MFR\x20 Biosig/MFER
97
+ !:mime biosig/mfer
98
+ #
99
+ 0 string NEURALEV Biosig/NEV
100
+ 0 string N.EV.\0 Biosig/NEV
101
+ !:mime biosig/nev
102
+ #
103
+ 0 string NEX1 Biosig/NEX
104
+ !:mime biosig/nex1
105
+ #
106
+ 0 string PLEX Biosig/Plexon v1.0
107
+ 10 string PLEXON Biosig/Plexon v2.0
108
+ !:mime biosig/plexon
109
+ #
110
+ 0 string \x02\x27\x91\xC6 Biosig/RHD2000: Intan RHD2000 format
111
+ #
112
+ # Specification: CEN 1064:2005/ISO 11073:91064
113
+ 16 string SCPECG\0\0 Biosig/SCP-ECG format CEN 1064:2005/ISO 11073:91064
114
+ !:mime biosig/scpecg
115
+ #
116
+ 0 string IAvSFo Biosig/SIGIF
117
+ !:mime biosig/sigif
118
+ #
119
+ 0 string POLY\x20SAMPLE\x20FILEversion\x20 Biosig/TMS32
120
+ !:mime biosig/tms32
121
+ #
122
+ 0 string FileId=TMSi\x20PortiLab\x20sample\x20log\x20file\x0a\x0dVersion= Biosig/TMSiLOG
123
+ !:mime biosig/tmsilog
124
+ #
125
+ 4 string Synergy\0\48\49\50\46\48\48\51\46\48\48\48\46\48\48\48\0\28\0\0\0\2\0\0\0
126
+ >63 string CRawDataElement
127
+ >>85 string CRawDataBuffer Biosig/SYNERGY
128
+ !:mime biosig/synergy
129
+ #
130
+ 4 string \40\0\4\1\44\1\102\2\146\3\44\0\190\3 Biosig/UNIPRO
131
+ !:mime biosig/unipro
132
+ #
133
+ 0 string VER=9\r\nCTIME= Biosig/WCP
134
+ !:mime biosig/wcp
135
+ #
136
+ 0 string \xAF\xFE\xDA\xDA Biosig/Walter Graphtek
137
+ 0 string \xDA\xDA\xFE\xAF Biosig/Walter Graphtek
138
+ 0 string \x55\x55\xFE\xAF Biosig/Walter Graphtek
139
+ !:mime biosig/walter-graphtek
140
+ #
141
+ 0 string V3.0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
142
+ >32 string [PatInfo] Biosig/Sigma
143
+ !:mime biosig/sigma
144
+ #
145
+ 0 string \067\069\078\013\010\0x1a\04\0x84 Biosig/File exchange format (FEF)
146
+ !:mime biosig/fef
147
+ 0 string \67\69\78\0x13\0x10\0x1a\4\0x84 Biosig/File exchange format (FEF)
148
+ !:mime biosig/fef
149
+ #
150
+ 0 string \0\0\0\x64\0\0\0\x1f\0\0\0\x14\0\0\0\0\0\1
151
+ >36 string \0\0\0\x65\0\0\0\3\0\0\0\4\0\0
152
+ >>56 string \0\0\0\x6a\0\0\0\3\0\0\0\4\0\0\0\0\xff\xff\xff\xff\0\0 Biosig/FIFF
153
+ !:mime biosig/fiff
154
+ #
@@ -0,0 +1,8 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: blackberry,v 1.2 2017/03/17 21:35:28 christos Exp $
4
+ # blackberry: file(1) magic for BlackBerry file formats
5
+ #
6
+ 5 belong 0
7
+ >8 belong 010010010 BlackBerry RIM ETP file
8
+ >>22 string x \b for %s
@@ -0,0 +1,25 @@
1
+ # Berkeley Lab Checkpoint Restart (BLCR) checkpoint context files
2
+ # https://ftg.lbl.gov/checkpoint
3
+ 0 string C\0\0\0R\0\0\0 BLCR
4
+ >16 lelong 1 x86
5
+ >16 lelong 3 alpha
6
+ >16 lelong 5 x86-64
7
+ >16 lelong 7 ARM
8
+ >8 lelong x context data (little endian, version %d)
9
+ # Uncomment the following only of your "file" program supports "search"
10
+ #>0 search/1024 VMA\06 for kernel
11
+ #>>&1 byte x %d.
12
+ #>>&2 byte x %d.
13
+ #>>&3 byte x %d
14
+ 0 string \0\0\0C\0\0\0R BLCR
15
+ >16 belong 2 SPARC
16
+ >16 belong 4 ppc
17
+ >16 belong 6 ppc64
18
+ >16 belong 7 ARMEB
19
+ >16 belong 8 SPARC64
20
+ >8 belong x context data (big endian, version %d)
21
+ # Uncomment the following only of your "file" program supports "search"
22
+ #>0 search/1024 VMA\06 for kernel
23
+ #>>&1 byte x %d.
24
+ #>>&2 byte x \b%d.
25
+ #>>&3 byte x \b%d
@@ -0,0 +1,50 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: blender,v 1.9 2022/12/21 15:53:27 christos Exp $
4
+ # blender: file(1) magic for Blender 3D related files
5
+ #
6
+ # Native format rule v1.2. For questions use the developers list
7
+ # https://lists.blender.org/mailman/listinfo/bf-committers
8
+ # GLOB chunk was moved near start and provides subversion info since 2.42
9
+ # Update: Joerg Jenderek
10
+ # URL: http://fileformats.archiveteam.org/wiki/BLEND
11
+ # http://www.blender.org/
12
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/b/blend.trid.xml
13
+ # http://formats.kaitai.io/blender_blend/index.html
14
+ # Note: called "Blender 3D data" by TrID
15
+ # and gzip compressed variant handled by ./compress
16
+ 0 string =BLENDER Blender3D,
17
+ #!:mime application/octet-stream
18
+ !:mime application/x-blender
19
+ !:ext blend
20
+ # no sample found with extension blender
21
+ #!:ext blend/blender
22
+ >7 string =_ saved as 32-bits
23
+ >>8 string =v little endian
24
+ >>>9 byte x with version %c.
25
+ >>>10 byte x \b%c
26
+ >>>11 byte x \b%c
27
+ >>>0x40 string =GLOB \b.
28
+ >>>>0x58 leshort x \b%.4d
29
+ >>8 string =V big endian
30
+ >>>9 byte x with version %c.
31
+ >>>10 byte x \b%c
32
+ >>>11 byte x \b%c
33
+ >>>0x40 string =GLOB \b.
34
+ >>>>0x58 beshort x \b%.4d
35
+ >7 string =- saved as 64-bits
36
+ >>8 string =v little endian
37
+ >>9 byte x with version %c.
38
+ >>10 byte x \b%c
39
+ >>11 byte x \b%c
40
+ >>0x44 string =GLOB \b.
41
+ >>>0x60 leshort x \b%.4d
42
+ >>8 string =V big endian
43
+ >>>9 byte x with version %c.
44
+ >>>10 byte x \b%c
45
+ >>>11 byte x \b%c
46
+ >>>0x44 string =GLOB \b.
47
+ >>>>0x60 beshort x \b%.4d
48
+
49
+ # Scripts that run in the embedded Python interpreter
50
+ 0 string #!BPY Blender3D BPython script
@@ -0,0 +1,24 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: blit,v 1.9 2021/07/03 14:01:46 christos Exp $
4
+ # blit: file(1) magic for 68K Blit stuff as seen from 680x0 machine
5
+ #
6
+ # Note that this 0407 conflicts with several other a.out formats...
7
+ #
8
+ # XXX - should this be redone with "be" and "le", so that it works on
9
+ # little-endian machines as well? If so, what's the deal with
10
+ # "VAX-order" and "VAX-order2"?
11
+ #
12
+ #0 long 0407 68K Blit (standalone) executable
13
+ #0 short 0407 VAX-order2 68K Blit (standalone) executable
14
+ 0 short 03401 VAX-order 68K Blit (standalone) executable
15
+ 0 long 0406 68k Blit mpx/mux executable
16
+ 0 short 0406 VAX-order2 68k Blit mpx/mux executable
17
+ # GRR: line below is too general as it matches also TTComp archive, ASCII, 4K handled by ./archive
18
+ 0 short 03001 VAX-order 68k Blit mpx/mux executable
19
+ # TODO:
20
+ # skip TTComp archive, ASCII, 4K by looking for executable keyword like main
21
+ #>0 search/5536 main\0 VAX-order 68k Blit mpx/mux executable
22
+ # Need more values for WE32 DMD executables.
23
+ # Note that 0520 is the same as COFF
24
+ #0 short 0520 tty630 layers executable
polyfile/magic_defs/bm ADDED
@@ -0,0 +1,10 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: bm,v 1.2 2021/03/14 16:56:51 christos Exp $
4
+ # bm: file(1) magic for "Birtual Machine", cf. https://github.com/tsoding/bm
5
+
6
+ 0 string bm\001\244 Birtual Machine
7
+ >4 leshort x \b, version %d
8
+ >6 lelong x \b, program size %u
9
+ >14 lelong x \b, memory size %u
10
+ >22 lelong x \b, memory capacity %u
@@ -0,0 +1,11 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: bout,v 1.5 2009/09/19 16:28:08 christos Exp $
4
+ # i80960 b.out objects and archives
5
+ #
6
+ 0 long 0x10d i960 b.out relocatable object
7
+ >16 long >0 not stripped
8
+ #
9
+ # b.out archive (hp-rt on i960)
10
+ 0 string =!<bout> b.out archive
11
+ >8 string __.SYMDEF random library
@@ -0,0 +1,33 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: bsdi,v 1.7 2014/03/29 15:40:34 christos Exp $
4
+ # bsdi: file(1) magic for BSD/OS (from BSDI) objects
5
+ # Some object/executable formats use the same magic numbers as are used
6
+ # in other OSes; those are handled by entries in aout.
7
+ #
8
+
9
+ 0 lelong 0314 386 compact demand paged pure executable
10
+ >16 lelong >0 not stripped
11
+ >32 byte 0x6a (uses shared libs)
12
+
13
+ # same as in SunOS 4.x, except for static shared libraries
14
+ 0 belong&077777777 0600413 SPARC demand paged
15
+ >0 byte &0x80
16
+ >>20 belong <4096 shared library
17
+ >>20 belong =4096 dynamically linked executable
18
+ >>20 belong >4096 dynamically linked executable
19
+ >0 byte ^0x80 executable
20
+ >16 belong >0 not stripped
21
+ >36 belong 0xb4100001 (uses shared libs)
22
+
23
+ 0 belong&077777777 0600410 SPARC pure
24
+ >0 byte &0x80 dynamically linked executable
25
+ >0 byte ^0x80 executable
26
+ >16 belong >0 not stripped
27
+ >36 belong 0xb4100001 (uses shared libs)
28
+
29
+ 0 belong&077777777 0600407 SPARC
30
+ >0 byte &0x80 dynamically linked executable
31
+ >0 byte ^0x80 executable
32
+ >16 belong >0 not stripped
33
+ >36 belong 0xb4100001 (uses shared libs)
@@ -0,0 +1,10 @@
1
+ # Chiasmus is an encryption standard developed by the German Federal
2
+ # Office for Information Security (Bundesamt fuer Sicherheit in der
3
+ # Informationstechnik).
4
+
5
+ # https://www.bsi.bund.de/EN/Topics/OtherTopics/Chiasmus/Chiasmus_node.html
6
+ 0 string XIA1\r Chiasmus Encrypted data
7
+ !:ext xia
8
+
9
+ 0 string XIS Chiasmus key
10
+ !:ext xis