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,29 @@
1
+ $File: COPYING,v 1.2 2018/09/09 20:33:28 christos Exp $
2
+ Copyright (c) Ian F. Darwin 1986, 1987, 1989, 1990, 1991, 1992, 1994, 1995.
3
+ Software written by Ian F. Darwin and others;
4
+ maintained 1994- Christos Zoulas.
5
+
6
+ This software is not subject to any export provision of the United States
7
+ Department of Commerce, and may be exported to any country or planet.
8
+
9
+ Redistribution and use in source and binary forms, with or without
10
+ modification, are permitted provided that the following conditions
11
+ are met:
12
+ 1. Redistributions of source code must retain the above copyright
13
+ notice immediately at the beginning of the file, without modification,
14
+ this list of conditions, and the following disclaimer.
15
+ 2. Redistributions in binary form must reproduce the above copyright
16
+ notice, this list of conditions and the following disclaimer in the
17
+ documentation and/or other materials provided with the distribution.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
23
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29
+ SUCH DAMAGE.
File without changes
@@ -0,0 +1,102 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: acorn,v 1.8 2021/04/26 15:56:00 christos Exp $
4
+ # acorn: file(1) magic for files found on Acorn systems
5
+ #
6
+
7
+ # RISC OS Chunk File Format
8
+ # From RISC OS Programmer's Reference Manual, Appendix D
9
+ # We guess the file type from the type of the first chunk.
10
+ 0 lelong 0xc3cbc6c5 RISC OS Chunk data
11
+ >12 string OBJ_ \b, AOF object
12
+ >12 string LIB_ \b, ALF library
13
+
14
+ # RISC OS AIF, contains "SWI OS_Exit" at offset 16.
15
+ 16 lelong 0xef000011 RISC OS AIF executable
16
+
17
+ # RISC OS Draw files
18
+ # From RISC OS Programmer's Reference Manual, Appendix E
19
+ 0 string Draw RISC OS Draw file data
20
+
21
+ # RISC OS new format font files
22
+ # From RISC OS Programmer's Reference Manual, Appendix E
23
+ 0 string FONT\0 RISC OS outline font data,
24
+ >5 byte x version %d
25
+ 0 string FONT\1 RISC OS 1bpp font data,
26
+ >5 byte x version %d
27
+ 0 string FONT\4 RISC OS 4bpp font data
28
+ >5 byte x version %d
29
+
30
+ # RISC OS Music files
31
+ # From RISC OS Programmer's Reference Manual, Appendix E
32
+ 0 string Maestro\r RISC OS music file
33
+ >8 byte x version %d
34
+
35
+ >8 byte x type %d
36
+
37
+ # Digital Symphony data files
38
+ # From: Bernard Jungen (bern8817@euphonynet.be)
39
+ 0 string \x02\x01\x13\x13\x13\x01\x0d\x10 Digital Symphony sound sample (RISC OS),
40
+ >8 byte x version %d,
41
+ >9 pstring x named "%s",
42
+ >(9.b+19) byte =0 8-bit logarithmic
43
+ >(9.b+19) byte =1 LZW-compressed linear
44
+ >(9.b+19) byte =2 8-bit linear signed
45
+ >(9.b+19) byte =3 16-bit linear signed
46
+ >(9.b+19) byte =4 SigmaDelta-compressed linear
47
+ >(9.b+19) byte =5 SigmaDelta-compressed logarithmic
48
+ >(9.b+19) byte >5 unknown format
49
+
50
+ 0 string \x02\x01\x13\x13\x14\x12\x01\x0b Digital Symphony song (RISC OS),
51
+ >8 byte x version %d,
52
+ >9 byte =1 1 voice,
53
+ >9 byte !1 %d voices,
54
+ >10 leshort =1 1 track,
55
+ >10 leshort !1 %d tracks,
56
+ >12 leshort =1 1 pattern
57
+ >12 leshort !1 %d patterns
58
+
59
+ 0 string \x02\x01\x13\x13\x10\x14\x12\x0e
60
+ >9 byte =0 Digital Symphony sequence (RISC OS),
61
+ >>8 byte x version %d,
62
+ >>10 byte =1 1 line,
63
+ >>10 byte !1 %d lines,
64
+ >>11 leshort =1 1 position
65
+ >>11 leshort !1 %d positions
66
+ >9 byte =1 Digital Symphony pattern data (RISC OS),
67
+ >>8 byte x version %d,
68
+ >>10 leshort =1 1 pattern
69
+ >>10 leshort !1 %d patterns
70
+
71
+ # From: Joerg Jenderek
72
+ # URL: https://www.kyzer.me.uk/pack/xad/#PackDir
73
+ # reference: https://www.kyzer.me.uk/pack/xad/xad_PackDir.lha/PackDir.c
74
+ # GRR: line below is too general as it matches also "Git pack" in ./revision
75
+ 0 string PACK\0
76
+ # check for valid compression method 0-4
77
+ >5 ulelong <5
78
+ # https://www.riscosopen.org/wiki/documentation/show/Introduction%20To%20Filing%20Systems
79
+ # To skip "Git pack" version 0 test for root directory object like
80
+ # ADFS::RPC.$.websitezip.FONTFIX
81
+ >>9 string >ADFS\ PackDir archive (RISC OS)
82
+ # TrID labels above as "Acorn PackDir compressed Archive"
83
+ # compression mode y (0 - 4) for GIF LZW with a maximum n bits
84
+ # (y~n,0~12,1~13,2~14,3~15,4~16)
85
+ >>>5 ulelong+12 x \b, LZW %u-bits compression
86
+ # https://www.filebase.org.uk/filetypes
87
+ # !Packdir compressed archive has three hexadecimal digits code 68E
88
+ !:mime application/x-acorn-68E
89
+ !:ext pkd/bin
90
+ # null terminated root directory object like IDEFS::IDE-4.$.Apps.GRAPHICS.!XFMPdemo
91
+ >>>9 string x \b, root "%s"
92
+ # load address 0xFFFtttdd, ttt is the object filetype and dddddddddd is time
93
+ >>>>&1 ulelong x \b, load address %#x
94
+ # execution address 0xdddddddd dddddddddd is 40 bit unsigned centiseconds since 1.1.1900 UTC
95
+ >>>>&5 ulelong x \b, exec address %#x
96
+ # attributes (bits: 0~owner read,1~owner write,3~no delete,4~public read,5~public write)
97
+ >>>>&9 ulelong x \b, attributes %#x
98
+ # number of entries in this directory. for root dir 0
99
+ #>>>&13 ulelong x \b, entries %#x
100
+ # the entries start here with object name
101
+ >>>>&17 string x \b, 1st object "%s"
102
+
@@ -0,0 +1,13 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: adi,v 1.4 2009/09/19 16:28:07 christos Exp $
4
+ # adi: file(1) magic for ADi's objects
5
+ # From Gregory McGarry <g.mcgarry@ieee.org>
6
+ #
7
+ 0 leshort 0x521c COFF DSP21k
8
+ >18 lelong &02 executable,
9
+ >18 lelong ^02
10
+ >>18 lelong &01 static object,
11
+ >>18 lelong ^01 relocatable object,
12
+ >18 lelong &010 stripped
13
+ >18 lelong ^010 not stripped
@@ -0,0 +1,122 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: adventure,v 1.18 2019/04/19 00:42:27 christos Exp $
4
+ # adventure: file(1) magic for Adventure game files
5
+ #
6
+ # from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
7
+ # Edited by Dave Chapeskie <dchapes@ddm.on.ca> Jun 28, 1998
8
+ # Edited by Chris Chittleborough <cchittleborough@yahoo.com.au>, March 2002
9
+ #
10
+ # ALAN
11
+ # I assume there are other, lower versions, but these are the only ones I
12
+ # saw in the archive.
13
+ 0 beshort 0x0206 ALAN game data
14
+ >2 byte <10 version 2.6%d
15
+
16
+
17
+ # Infocom (see z-machine)
18
+ #------------------------------------------------------------------------------
19
+ # Z-machine: file(1) magic for Z-machine binaries.
20
+ # Sanity checks by David Griffith <dave@661.org>
21
+ # Updated by Adam Buchbinder <adam.buchbinder@gmail.com>
22
+ #
23
+ #http://www.gnelson.demon.co.uk/zspec/sect11.html
24
+ #https://www.jczorkmid.net/~jpenney/ZSpec11-latest.txt
25
+ #https://en.wikipedia.org/wiki/Z-machine
26
+ # The first byte is the Z-machine revision; it is always between 1 and 8. We
27
+ # had false matches (for instance, inbig5.ocp from the Omega TeX extension as
28
+ # well as an occasional MP3 file), so we sanity-check the version number.
29
+ #
30
+ # It might be possible to sanity-check the release number as well, as it seems
31
+ # (at least in classic Infocom games) to always be a relatively small number,
32
+ # always under 150 or so, but as this isn't rigorous, we'll wait on that until
33
+ # it becomes clear that it's needed.
34
+ #
35
+ 0 ubyte >0
36
+ >0 ubyte <9
37
+ >>16 belong&0xfe00f0f0 0x3030
38
+ >>>0 ubyte < 10
39
+ >>>>2 ubeshort x
40
+ >>>>>18 regex [0-9][0-9][0-9][0-9][0-9][0-9]
41
+ >>>>>>0 ubyte < 10 Infocom (Z-machine %d
42
+ >>>>>>>2 ubeshort x \b, Release %d
43
+ >>>>>>>>18 string >\0 \b, Serial %.6s
44
+ >>>>>>>>18 string x \b)
45
+ !:strength + 40
46
+ !:mime application/x-zmachine
47
+
48
+ #------------------------------------------------------------------------------
49
+ # Glulx: file(1) magic for Glulx binaries.
50
+ #
51
+ # David Griffith <dave@661.org>
52
+ # I haven't checked for false matches yet.
53
+ #
54
+ 0 string Glul Glulx game data
55
+ >4 beshort x (Version %d
56
+ >>6 byte x \b.%d
57
+ >>8 byte x \b.%d)
58
+ >36 string Info Compiled by Inform
59
+ !:mime application/x-glulx
60
+
61
+
62
+ # For Quetzal and blorb magic see iff
63
+
64
+
65
+ # TADS (Text Adventure Development System) version 2
66
+ # All files are machine-independent (games compile to byte-code) and are tagged
67
+ # with a version string of the form "V2.<digit>.<digit>\0".
68
+ # Game files start with "TADS2 bin\n\r\032\0" then the compiler version.
69
+ 0 string TADS2\ bin TADS
70
+ >9 belong !0x0A0D1A00 game data, CORRUPTED
71
+ >9 belong 0x0A0D1A00
72
+ >>13 string >\0 %s game data
73
+ !:mime application/x-tads
74
+ # Resource files start with "TADS2 rsc\n\r\032\0" then the compiler version.
75
+ 0 string TADS2\ rsc TADS
76
+ >9 belong !0x0A0D1A00 resource data, CORRUPTED
77
+ >9 belong 0x0A0D1A00
78
+ >>13 string >\0 %s resource data
79
+ !:mime application/x-tads
80
+ # Some saved game files start with "TADS2 save/g\n\r\032\0", a little-endian
81
+ # 2-byte length N, the N-char name of the game file *without* a NUL (darn!),
82
+ # "TADS2 save\n\r\032\0" and the interpreter version.
83
+ 0 string TADS2\ save/g TADS
84
+ >12 belong !0x0A0D1A00 saved game data, CORRUPTED
85
+ >12 belong 0x0A0D1A00
86
+ >>(16.s+32) string >\0 %s saved game data
87
+ !:mime application/x-tads
88
+ # Other saved game files start with "TADS2 save\n\r\032\0" and the interpreter
89
+ # version.
90
+ 0 string TADS2\ save TADS
91
+ >10 belong !0x0A0D1A00 saved game data, CORRUPTED
92
+ >10 belong 0x0A0D1A00
93
+ >>14 string >\0 %s saved game data
94
+ !:mime application/x-tads
95
+
96
+ # TADS (Text Adventure Development System) version 3
97
+ # Game files start with "T3-image\015\012\032"
98
+ 0 string T3-image\015\012\032
99
+ >11 leshort x TADS 3 game data (format version %d)
100
+ # Saved game files start with "T3-state-v####\015\012\032"
101
+ # where #### is a format version number
102
+ 0 string T3-state-v
103
+ >14 string \015\012\032 TADS 3 saved game data (format version
104
+ >>10 byte x %c
105
+ >>11 byte x \b%c
106
+ >>12 byte x \b%c
107
+ >>13 byte x \b%c)
108
+ !:mime application/x-t3vm-image
109
+
110
+ # edited by David Griffith <dave@661.org>
111
+ # Danny Milosavljevic <danny.milo@gmx.net>
112
+ # These are ADRIFT (adventure game standard) game files, extension .taf
113
+ # Checked from source at (http://www.adrift.co/) and various taf files
114
+ # found at the Interactive Fiction Archive (https://ifarchive.org/)
115
+ 0 belong 0x3C423FC9
116
+ >4 belong 0x6A87C2CF Adrift game file version
117
+ >>8 belong 0x94453661 3.80
118
+ >>8 belong 0x94453761 3.90
119
+ >>8 belong 0x93453E61 4.0
120
+ >>8 belong 0x92453E61 5.0
121
+ >>8 default x unknown
122
+ !:mime application/x-adrift
@@ -0,0 +1,29 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: aes,v 1.1 2020/08/18 21:20:22 christos Exp $
4
+ #
5
+ # aes: magic file for AES encrypted files
6
+
7
+ # Summary: AES Crypt Encrypted Data File
8
+ # From: Joerg Jenderek
9
+ # URL: https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
10
+ # Reference: https://www.aescrypt.com/aes_file_format.html
11
+ 0 string AES
12
+ >3 ubyte <3 AES encrypted data, version %u
13
+ #!:mime application/aes
14
+ !:mime application/x-aes-encrypted
15
+ !:ext aes
16
+ # For Version 2 the encrypted file can have text tags
17
+ >>3 ubyte =2
18
+ # length of an extension identifier and contents like: 0 24 33 38
19
+ #>>5 ubeshort x \b, tag length %u
20
+ #>>5 pstring/H x '%s'
21
+ # standard extension tags like CREATED_BY
22
+ >>>7 string CREATED_BY \b, created by
23
+ # software product, manufacturer like "SharpAESCrypt v1.3.3.0" "aescrypt (Windows GUI) 3.10" ...
24
+ >>>>&1 string x "%s"
25
+ # TODO: more other tags
26
+ # tag CREATED_DATE like YYYY-MM-DD
27
+ # tag CREATED_TIME like HH:MM:SS
28
+ #
29
+
@@ -0,0 +1,35 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: algol68,v 1.6 2022/11/06 18:36:55 christos Exp $
4
+ # algol68: file(1) magic for Algol 68 source
5
+ #
6
+ # URL: https://en.wikipedia.org/wiki/ALGOL_68
7
+ # Reference: http://www.softwarepreservation.org/projects/ALGOL/report/Algol68_revised_report-AB.pdf
8
+ # Update: Joerg Jenderek
9
+ 0 search/8192 (input,
10
+ >0 use algol_68
11
+ # graph_2d.a68
12
+ 0 regex/4006 \^PROC[[:space:]][a-zA-Z0-9_[:space:]]*[[:space:]]=
13
+ >0 use algol_68
14
+ 0 regex/1024 \bMODE[\t\ ]
15
+ >0 use algol_68
16
+ 0 regex/1024 \bMODE[\t\ ]
17
+ >0 use algol_68
18
+ 0 regex/1024 \bREF[\t\ ]
19
+ >0 use algol_68
20
+ 0 regex/1024 \bFLEX[\t\ ]\*\\[
21
+ >0 use algol_68
22
+
23
+ # display information like mime type and file name extension of Algol 68 source text
24
+ 0 name algol_68 Algol 68 source text
25
+ !:mime text/x-Algol68
26
+ # https://file-extension.net/seeker/file_extension_a68
27
+ !:ext a68
28
+ #!:ext a68/alg
29
+
30
+ #0 regex [\t\ ]OD Algol 68 source text
31
+ #>0 use algol_68
32
+ #!:mime text/x-Algol68
33
+ #0 regex [\t\ ]FI Algol 68 source text
34
+ #>0 use algol_68
35
+ #!:mime text/x-Algol68
@@ -0,0 +1,9 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: allegro,v 1.4 2009/09/19 16:28:07 christos Exp $
4
+ # allegro: file(1) magic for Allegro datafiles
5
+ # Toby Deshane <hac@shoelace.digivill.net>
6
+ #
7
+ 0 belong 0x736C6821 Allegro datafile (packed)
8
+ 0 belong 0x736C682E Allegro datafile (not packed/autodetect)
9
+ 0 belong 0x736C682B Allegro datafile (appended exe data)
@@ -0,0 +1,18 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: alliant,v 1.7 2009/09/19 16:28:07 christos Exp $
4
+ # alliant: file(1) magic for Alliant FX series a.out files
5
+ #
6
+ # If the FX series is the one that had a processor with a 68K-derived
7
+ # instruction set, the "short" should probably become "beshort" and the
8
+ # "long" should probably become "belong".
9
+ # If it's the i860-based one, they should probably become either the
10
+ # big-endian or little-endian versions, depending on the mode they ran
11
+ # the 860 in....
12
+ #
13
+ 0 short 0420 0420 Alliant virtual executable
14
+ >2 short &0x0020 common library
15
+ >16 long >0 not stripped
16
+ 0 short 0421 0421 Alliant compact executable
17
+ >2 short &0x0020 common library
18
+ >16 long >0 not stripped
@@ -0,0 +1,32 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File$
4
+ # alpha architecture description
5
+ #
6
+
7
+ 0 leshort 0603 COFF format alpha
8
+ >22 leshort&030000 !020000 executable
9
+ >24 leshort 0410 pure
10
+ >24 leshort 0413 paged
11
+ >22 leshort&020000 !0 dynamically linked
12
+ >16 lelong !0 not stripped
13
+ >16 lelong 0 stripped
14
+ >22 leshort&030000 020000 shared library
15
+ >24 leshort 0407 object
16
+ >27 byte x - version %d
17
+ >26 byte x .%d
18
+ >28 byte x -%d
19
+
20
+ # Basic recognition of Digital UNIX core dumps - Mike Bremford <mike@opac.bl.uk>
21
+ #
22
+ # The actual magic number is just "Core", followed by a 2-byte version
23
+ # number; however, treating any file that begins with "Core" as a Digital
24
+ # UNIX core dump file may produce too many false hits, so we include one
25
+ # byte of the version number as well; DU 5.0 appears only to be up to
26
+ # version 2.
27
+ #
28
+ 0 string Core\001 Alpha COFF format core dump (Digital UNIX)
29
+ >24 string >\0 \b, from '%s'
30
+ 0 string Core\002 Alpha COFF format core dump (Digital UNIX)
31
+ >24 string >\0 \b, from '%s'
32
+
@@ -0,0 +1,12 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: amanda,v 1.6 2017/03/17 21:35:28 christos Exp $
4
+ # amanda: file(1) magic for amanda file format
5
+ #
6
+ 0 string AMANDA:\ AMANDA
7
+ >8 string TAPESTART\ DATE tape header file,
8
+ >>23 string X
9
+ >>>25 string >\ Unused %s
10
+ >>23 string >\ DATE %s
11
+ >8 string FILE\ dump file,
12
+ >>13 string >\ DATE %s
@@ -0,0 +1,218 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: amigaos,v 1.20 2021/09/20 00:42:19 christos Exp $
4
+ # amigaos: file(1) magic for AmigaOS binary formats:
5
+
6
+ #
7
+ # From ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
8
+ #
9
+ 0 belong 0x000003fa AmigaOS shared library
10
+ 0 belong 0x000003f3 AmigaOS loadseg()ble executable/binary
11
+ 0 belong 0x000003e7 AmigaOS object/library data
12
+ #
13
+ 0 beshort 0xe310 Amiga Workbench
14
+ >2 beshort 1
15
+ >>48 byte 1 disk icon
16
+ >>48 byte 2 drawer icon
17
+ >>48 byte 3 tool icon
18
+ >>48 byte 4 project icon
19
+ >>48 byte 5 garbage icon
20
+ >>48 byte 6 device icon
21
+ >>48 byte 7 kickstart icon
22
+ >>48 byte 8 workbench application icon
23
+ >2 beshort >1 icon, vers. %d
24
+ #
25
+ # various sound formats from the Amiga
26
+ # G=F6tz Waschk <waschk@informatik.uni-rostock.de>
27
+ #
28
+ 0 string FC14 Future Composer 1.4 Module sound file
29
+ 0 string SMOD Future Composer 1.3 Module sound file
30
+ 0 string AON4artofnoise Art Of Noise Module sound file
31
+ 1 string MUGICIAN/SOFTEYES Mugician Module sound file
32
+ 58 string SIDMON\ II\ -\ THE Sidmon 2.0 Module sound file
33
+ 0 string Synth4.0 Synthesis Module sound file
34
+ 0 string ARP. The Holy Noise Module sound file
35
+ 0 string BeEp\0 JamCracker Module sound file
36
+ 0 string COSO\0 Hippel-COSO Module sound file
37
+ # Too simple (short, pure ASCII, deep), MPi
38
+ #26 string V.3 Brian Postma's Soundmon Module sound file v3
39
+ #26 string BPSM Brian Postma's Soundmon Module sound file v3
40
+ #26 string V.2 Brian Postma's Soundmon Module sound file v2
41
+
42
+ # The following are from: "Stefan A. Haubenthal" <polluks@web.de>
43
+ # Update: Joerg Jenderek
44
+ # URL: http://fileformats.archiveteam.org/wiki/Amiga_bitmap_font
45
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/f/font-amiga.trid.xml
46
+ # https://wiki.amigaos.net/wiki/Graphics_Library_and_Text
47
+ # fch_FileID=FCH_ID=0x0f00
48
+ 0 beshort 0x0f00
49
+ # skip some AVM powerline firmware images by check for positive number of font elements
50
+ # https://download.avm.de/fritzpowerline/fritzpowerline-1000e-t/other/fritz.os/fritz.powerline_1000ET_01_05.image
51
+ >2 ubeshort >0 AmigaOS bitmap font
52
+ #!:mime application/octet-stream
53
+ !:mime font/x-amiga-font
54
+ !:ext font
55
+ # struct FontContents fch_FC; 1st fc_FileName [MAXFONTPATH=256]; ~ filename "/" fc_YSize
56
+ # like: topazb/6 suits/8 Excel/9e emerald/17 Franklin/23 DIAMONDS/60.8C
57
+ >>4 string x "%.256s"
58
+ # fc_YSize ~number after slash in fc_FileName; like: 6 7 8 9 11 12 16 17 21 23 45 60
59
+ >>260 beshort x \b, fc_YSize %u
60
+ # fch_NumEntries; number of FontContents elements like:
61
+ # 1 (often) 2 3 (IconCondensed.font tempfont.font) 4 (Franklin.font) 6 (mcoop.font)
62
+ >>2 ubeshort >1 \b, %u elements
63
+ #>>2 beshort x \b, %u element
64
+ # plural s
65
+ #>>2 beshort !1 \bs
66
+ # like: 6 7 8 9 11 12 16 17 21 23 45 60
67
+ #>>262 beshort x \b, FLAGS_STYLE
68
+ >>2 beshort >1 \b, 2nd
69
+ # 2nd fc_FileName like: Franklin/36
70
+ >>>264 string x "%.256s"
71
+ >>2 beshort >2 \b, 3rd
72
+ # 3rd fc_FileName like: Franklin/18
73
+ >>>524 string x "%.256s"
74
+ # URL: http://fileformats.archiveteam.org/wiki/Amiga_bitmap_font
75
+ # Reference: https://wiki.amigaos.net/wiki/Graphics_Library_and_Text
76
+ # http://mark0.net/download/triddefs_xml.7z/defs/f/font-amiga-var2.trid.xml
77
+ # Note: called by TrID "Amiga bitmap Font (var.2)"
78
+ # fch_FileID=TFCH_ID=0x0f02
79
+ 0 beshort 0x0f02
80
+ # skip possible misidentified foo by check for positive number of font elements
81
+ >2 ubeshort >0 AmigaOS bitmap font (TFCH)
82
+ #!:mime application/octet-stream
83
+ !:mime font/x-amiga-font
84
+ !:ext font
85
+ # struct TFontContents fch_TFC[]; 1st tfc_FileName [254]; ~ filename "/" fc_YSize
86
+ # like: Abbey/45 XScript/75 XTriumvirate/45
87
+ >>4 string x "%.254s"
88
+ # tfc_TagCount; including the TAG_END tag like: 4
89
+ >>258 ubeshort x \b, tfc_TagCount %u
90
+ # tfc_YSize ~number after slash in tfc_FileName; like: 45 75
91
+ >>260 beshort x \b, tfc_YSize %u
92
+ # tfc_Style; tfc_Flags like: 8022h 8222h
93
+ #>>262 ubeshort x \b, FLAGS_STYLE %#x
94
+ # fch_NumEntries; number of FontContents elements like: 1 (abbey.font) 2 (xscript.font xtriumvirate.font)
95
+ >>2 ubeshort >1 \b, %u elements
96
+ >>2 beshort >1 \b, 2nd
97
+ # 2nd tfc_FileName like: XScript/45 XTriumvirate/30
98
+ >>>264 string x "%.254s"
99
+ 0 beshort 0x0f03 AmigaOS outline font
100
+ 0 belong 0x80001001 AmigaOS outline tag
101
+ 0 string ##\ version catalog translation
102
+ 0 string EMOD\0 Amiga E module
103
+ 8 string ECXM\0 ECX module
104
+ 0 string/c @database AmigaGuide file
105
+
106
+ # Amiga disk types
107
+ # display information like volume name of root block on Amiga (floppy) disk
108
+ 0 name adf-rootblock
109
+ # block primary type = T_HEADER (value 2)
110
+ >0x000 ubelong !2 \b, type %u
111
+ # header_key; unused in rootblock (value 0)
112
+ >0x004 ubelong !0 \b, header_key %u
113
+ # high_seq; unused (value 0)
114
+ >0x008 ubelong !0 \b, high_seq %u
115
+ # ht_size; hash table size; 0x48 for flopies
116
+ >0x00c ubelong !0x48 \b, hash table size %#x
117
+ # bm_flag; bitmap flag, -1 means VALID
118
+ >0x138 belong !-1 \b, bitmap flag %#x
119
+ # bm_ext; first bitmap extension block (Hard disks only)
120
+ >0x1A0 ubelong !0 \b, bitmap extension block %#x
121
+ # name_len; volume name length; diskname[30]; volume name
122
+ >0x1B0 pstring >\0 \b, "%s"
123
+ # first directory cache block for FFS; otherwise 0
124
+ >0x1F8 ubelong !0 \b, directory cache block %#x
125
+ # block secondary type = ST_ROOT (value 1)
126
+ >0x1FC ubelong !1 \b, sec_type %#x
127
+ #
128
+ 0 string RDSK Rigid Disk Block
129
+ >160 string x on %.24s
130
+ # URL: http://fileformats.archiveteam.org/wiki/ADF_(Amiga)
131
+ # https://en.wikipedia.org/wiki/Amiga_Fast_File_System
132
+ # Reference: http://lclevy.free.fr/adflib/adf_info.html
133
+ # Update: Joerg Jenderek
134
+ # Note: created by ADFOpus.exe
135
+ # and verified by `unadf -l TURBO_SILVER_SV.ADF`
136
+ 0 string DOS
137
+ # skip DOS Client Message Files like IPXODI.MSG DOSRQSTR.MSG
138
+ >3 ubyte <8 Amiga
139
+ # https://reposcope.com/mimetype/application/x-amiga-disk-format
140
+ !:mime application/x-amiga-disk-format
141
+ !:ext adf
142
+ >>3 ubyte 0 DOS disk
143
+ >>3 ubyte 1 FFS disk
144
+ >>3 ubyte 2 Inter DOS disk
145
+ >>3 ubyte 3 Inter FFS disk
146
+ # For Fastdir mode the international mode is also enabled,
147
+ >>3 ubyte 4 Fastdir DOS disk
148
+ >>3 ubyte 5 Fastdir FFS dis
149
+ # called by TrID "Amiga Disk image File (OFS+INTL+DIRC)"
150
+ >>3 ubyte 6 Inter Fastdir DOS disk
151
+ # called by TrID "Amiga Disk image File (FFS+INTL+DIRC)"
152
+ >>3 ubyte 7 Inter Fastdir FFS disk
153
+ # but according to Wikipedia variants with long name support
154
+ #>>3 ubyte 6 long name DOS disk
155
+ #>>3 ubyte 7 long name FFS disk
156
+ # DOES NOT only work! Partly for file size ~< FILE_BYTES_MAX=1 MiB defined in ../../src/file.h
157
+ #>>-0 offset x \b, %lld bytes
158
+ # Correct file size, but next lines are NOT executed
159
+ #>>-0 offset 901120 (DD 880 KiB floppy)
160
+ # 880 KiB Double Density floppy disk by characteristic hash table size 0x48 and T_HEADER=2
161
+ >>0x6E00C ubelong 0x48
162
+ >>>0x6E000 ubelong 2 (DD 880 KiB)
163
+ # 1760 KiB High Density floppy disk (1802240 bytes) by characteristic hash table size 0x48
164
+ >>0xDC00C ubelong 0x48
165
+ >>>0xDC000 ubelong 2 (HD 1760 KiB)
166
+ # Chksum; special block checksum like: 0 0x44ccf4c0 0x51f32cac 0xe33d0e7d ...
167
+ #>>4 ubelong x \b, CRC %#x
168
+ # Rootblock: 0 880 (often for DD and HD) 1146049280 (IMAGINE_1_0_DISK_01.ADF TURBO_SILVER_SV.ADF)
169
+ >>8 ubelong >0 \b, probably root block %d
170
+ # bootblock code
171
+ >>12 quad !0 \b, bootable
172
+ # assembler instructions: lea exp(pc),a1; moveq 25h,d0; jsr -552(a6)
173
+ >>>12 ubequad =0x43fa003e70254eae AmigaDOS 3.0
174
+ >>>12 default x
175
+ >>>>12 ubequad !0x43fa003e70254eae %#llx..
176
+ # 880 KiB Double Density floppy disk (901120 bytes)
177
+ >>0x6E00C ubelong 0x48
178
+ >>>0x6E000 ubelong 2
179
+ >>>>0x6E000 use adf-rootblock
180
+ # 1760 KiB High Density floppy disk (1802240 bytes)
181
+ >>0xDC00C ubelong 0x48
182
+ >>>0xDC000 ubelong 2
183
+ >>>>0xDC000 use adf-rootblock
184
+ # 1 MiB hard disc by test for T_HEADER=2 and header_key=0=high_seq
185
+ >>0x80000 ubelong 2
186
+ >>>0x80004 quad 0
187
+ >>>>0x80000 use adf-rootblock
188
+ # 2 MiB hard disc; only works if in ../../src/file.h FILE_BYTES_MAX is raised to 2 MiB
189
+ #>>0x100000 ubelong x 2 MiB TEST
190
+ #>>0x100000 ubelong 2 \b, 2 MiB hard disc rootblock
191
+ #>>>0x100000 use adf-rootblock
192
+ 0 string KICK Kickstart disk
193
+
194
+ # From: Alex Beregszaszi <alex@fsn.hu>
195
+ 0 string LZX LZX compressed archive (Amiga)
196
+
197
+ # From: Przemek Kramarczyk <pkramarczyk@gmail.com>
198
+ 0 string .KEY AmigaDOS script
199
+ 0 string .key AmigaDOS script
200
+
201
+ # AMOS Basic file formats
202
+ # https://www.exotica.org.uk/wiki/AMOS_file_formats
203
+ 0 string AMOS\040Basic\040 AMOS Basic source code
204
+ >11 byte =0x56 \b, tested
205
+ >11 byte =0x76 \b, untested
206
+ 0 string AMOS\040Pro AMOS Basic source code
207
+ >11 byte =0x56 \b, tested
208
+ >11 byte =0x76 \b, untested
209
+ 0 string AmSp AMOS Basic sprite bank
210
+ >4 beshort x \b, %d sprites
211
+ 0 string AmIc AMOS Basic icon bank
212
+ >4 beshort x \b, %d icons
213
+ 0 string AmBk AMOS Basic memory bank
214
+ >4 beshort x \b, bank number %d
215
+ >8 belong&0xFFFFFFF x \b, length %d
216
+ >12 regex .{8} \b, type %s
217
+ 0 string AmBs AMOS Basic memory banks
218
+ >4 beshort x \b, %d banks