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,43 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: editors,v 1.12 2020/10/11 20:28:07 christos Exp $
4
+ # T602 editor documents
5
+ # by David Necas <yeti@physics.muni.cz>
6
+ 0 string @CT\ T602 document data,
7
+ >4 string 0 Kamenicky
8
+ >4 string 1 CP 852
9
+ >4 string 2 KOI8-CS
10
+ >4 string >2 unknown encoding
11
+
12
+ # Vi IMproved Encrypted file
13
+ # by David Necas <yeti@physics.muni.cz>
14
+ # updated by Osman Surkatty
15
+ 0 string VimCrypt~ Vim encrypted file data
16
+ >9 string 01! with zip cryptmethod
17
+ >9 string 02! with blowfish cryptmethod
18
+ >9 string 03! with blowfish2 cryptmethod
19
+
20
+ 0 name vimnanoswap
21
+ >67 byte 0
22
+ >>107 byte 0
23
+ #>>>2 string x %s swap file
24
+ >>>24 ulelong x \b, pid %d
25
+ >>>28 string >\0 \b, user %s
26
+ >>>68 string >\0 \b, host %s
27
+ >>>108 string >\0 \b, file %s
28
+ >>>1007 byte 0x55 \b, modified
29
+
30
+ # Vi IMproved Swap file
31
+ # by Sven Wegener <swegener@gentoo.org>
32
+ 0 string b0VIM\ Vim swap file
33
+ >&0 string >\0 \b, version %s
34
+ >0 use vimnanoswap
35
+
36
+
37
+ # Lock/swap file for several editors, at least
38
+ # Vi IMproved and nano
39
+ 0 string b0nano Nano swap file
40
+ >0 use vimnanoswap
41
+
42
+ # kate (K Advanced Text Editor)
43
+ 0 string \x00\x00\x00\x12Kate\ Swap\ File\ 2.0\x00 Kate swap file
@@ -0,0 +1,15 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: efi,v 1.5 2014/04/30 21:41:02 christos Exp $
4
+ # efi: file(1) magic for Universal EFI binaries
5
+
6
+ 0 lelong 0x0ef1fab9
7
+ >4 lelong 1 Universal EFI binary with 1 architecture
8
+ >>&0 lelong 7 \b, i386
9
+ >>&0 lelong 0x01000007 \b, x86_64
10
+ >4 lelong 2 Universal EFI binary with 2 architectures
11
+ >>&0 lelong 7 \b, i386
12
+ >>&0 lelong 0x01000007 \b, x86_64
13
+ >>&20 lelong 7 \b, i386
14
+ >>&20 lelong 0x01000007 \b, x86_64
15
+ >4 lelong >2 Universal EFI binary with %d architectures
@@ -0,0 +1,379 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: elf,v 1.88 2023/01/08 17:09:18 christos Exp $
4
+ # elf: file(1) magic for ELF executables
5
+ #
6
+ # We have to check the byte order flag to see what byte order all the
7
+ # other stuff in the header is in.
8
+ #
9
+ # What're the correct byte orders for the nCUBE and the Fujitsu VPP500?
10
+ #
11
+ # https://www.sco.com/developers/gabi/latest/ch4.eheader.html
12
+ #
13
+ # Created by: unknown
14
+ # Modified by (1): Daniel Quinlan <quinlan@yggdrasil.com>
15
+ # Modified by (2): Peter Tobias <tobias@server.et-inf.fho-emden.de> (core support)
16
+ # Modified by (3): Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de> (fix of core support)
17
+ # Modified by (4): <gerardo.cacciari@gmail.com> (VMS Itanium)
18
+ # Modified by (5): Matthias Urlichs <smurf@debian.org> (Listing of many architectures)
19
+
20
+ 0 name elf-mips
21
+ >0 lelong&0xf0000000 0x00000000 MIPS-I
22
+ >0 lelong&0xf0000000 0x10000000 MIPS-II
23
+ >0 lelong&0xf0000000 0x20000000 MIPS-III
24
+ >0 lelong&0xf0000000 0x30000000 MIPS-IV
25
+ >0 lelong&0xf0000000 0x40000000 MIPS-V
26
+ >0 lelong&0xf0000000 0x50000000 MIPS32
27
+ >0 lelong&0xf0000000 0x60000000 MIPS64
28
+ >0 lelong&0xf0000000 0x70000000 MIPS32 rel2
29
+ >0 lelong&0xf0000000 0x80000000 MIPS64 rel2
30
+ >0 lelong&0xf0000000 0x90000000 MIPS32 rel6
31
+ >0 lelong&0xf0000000 0xa0000000 MIPS64 rel6
32
+
33
+ 0 name elf-sparc
34
+ >0 lelong&0x00ffff00 0x00000100 V8+ Required,
35
+ >0 lelong&0x00ffff00 0x00000200 Sun UltraSPARC1 Extensions Required,
36
+ >0 lelong&0x00ffff00 0x00000400 HaL R1 Extensions Required,
37
+ >0 lelong&0x00ffff00 0x00000800 Sun UltraSPARC3 Extensions Required,
38
+ >0 lelong&0x3 0 total store ordering,
39
+ >0 lelong&0x3 1 partial store ordering,
40
+ >0 lelong&0x3 2 relaxed memory ordering,
41
+
42
+ 0 name elf-pa-risc
43
+ >2 leshort 0x020b 1.0
44
+ >2 leshort 0x0210 1.1
45
+ >2 leshort 0x0214 2.0
46
+ >0 leshort &0x0008 (LP64)
47
+
48
+ 0 name elf-riscv
49
+ >0 lelong&0x00000001 0x00000001 RVC,
50
+ >0 lelong&0x00000008 0x00000008 RVE,
51
+ >0 lelong&0x00000006 0x00000000 soft-float ABI,
52
+ >0 lelong&0x00000006 0x00000002 single-float ABI,
53
+ >0 lelong&0x00000006 0x00000004 double-float ABI,
54
+ >0 lelong&0x00000006 0x00000006 quad-float ABI,
55
+
56
+ 0 name elf-le
57
+ >16 leshort 0 no file type,
58
+ !:mime application/octet-stream
59
+ >16 leshort 1 relocatable,
60
+ !:mime application/x-object
61
+ >16 leshort 2 executable,
62
+ !:mime application/x-executable
63
+ >16 leshort 3 ${x?pie executable:shared object},
64
+
65
+ !:mime application/x-${x?pie-executable:sharedlib}
66
+ >16 leshort 4 core file,
67
+ !:mime application/x-coredump
68
+ # OS-specific
69
+ >7 byte 202
70
+ >>16 leshort 0xFE01 executable,
71
+ !:mime application/x-executable
72
+ # Core file detection is not reliable.
73
+ #>>>(0x38+0xcc) string >\0 of '%s'
74
+ #>>>(0x38+0x10) lelong >0 (signal %d),
75
+ >16 leshort &0xff00
76
+ >>18 leshort !8 processor-specific,
77
+ >>18 leshort 8
78
+ >>>16 leshort 0xFF80 PlayStation 2 IOP module,
79
+ !:mime application/x-sharedlib
80
+ >>>16 leshort !0xFF80 processor-specific,
81
+ >18 clear x
82
+ >18 leshort 0 no machine,
83
+ >18 leshort 1 AT&T WE32100,
84
+ >18 leshort 2 SPARC,
85
+ >18 leshort 3 Intel 80386,
86
+ >18 leshort 4 Motorola m68k,
87
+ >>4 byte 1
88
+ >>>36 lelong &0x01000000 68000,
89
+ >>>36 lelong &0x00810000 CPU32,
90
+ >>>36 lelong 0 68020,
91
+ >18 leshort 5 Motorola m88k,
92
+ >18 leshort 6 Intel 80486,
93
+ >18 leshort 7 Intel 80860,
94
+ # The official e_machine number for MIPS is now #8, regardless of endianness.
95
+ # The second number (#10) will be deprecated later. For now, we still
96
+ # say something if #10 is encountered, but only gory details for #8.
97
+ >18 leshort 8 MIPS,
98
+ >>4 byte 1
99
+ >>>36 lelong &0x20 N32
100
+ >18 leshort 10 MIPS,
101
+ >>4 byte 1
102
+ >>>36 lelong &0x20 N32
103
+ >18 leshort 8
104
+ # only for 32-bit
105
+ >>4 byte 1
106
+ >>>36 use elf-mips
107
+ # only for 64-bit
108
+ >>4 byte 2
109
+ >>>48 use elf-mips
110
+ >18 leshort 9 Amdahl,
111
+ >18 leshort 10 MIPS (deprecated),
112
+ >18 leshort 11 RS6000,
113
+ >18 leshort 15 PA-RISC,
114
+ # only for 32-bit
115
+ >>4 byte 1
116
+ >>>36 use elf-pa-risc
117
+ # only for 64-bit
118
+ >>4 byte 2
119
+ >>>48 use elf-pa-risc
120
+ >18 leshort 16 nCUBE,
121
+ >18 leshort 17 Fujitsu VPP500,
122
+ >18 leshort 18 SPARC32PLUS,
123
+ # only for 32-bit
124
+ >>4 byte 1
125
+ >>>36 use elf-sparc
126
+ >18 leshort 19 Intel 80960,
127
+ >18 leshort 20 PowerPC or cisco 4500,
128
+ >18 leshort 21 64-bit PowerPC or cisco 7500,
129
+ >>48 lelong 0 Unspecified or Power ELF V1 ABI,
130
+ >>48 lelong 1 Power ELF V1 ABI,
131
+ >>48 lelong 2 OpenPOWER ELF V2 ABI,
132
+ >18 leshort 22 IBM S/390,
133
+ >18 leshort 23 Cell SPU,
134
+ >18 leshort 24 cisco SVIP,
135
+ >18 leshort 25 cisco 7200,
136
+ >18 leshort 36 NEC V800 or cisco 12000,
137
+ >18 leshort 37 Fujitsu FR20,
138
+ >18 leshort 38 TRW RH-32,
139
+ >18 leshort 39 Motorola RCE,
140
+ >18 leshort 40 ARM,
141
+ >>4 byte 1
142
+ >>>36 lelong&0xff000000 0x04000000 EABI4
143
+ >>>36 lelong&0xff000000 0x05000000 EABI5
144
+ >>>36 lelong &0x00800000 BE8
145
+ >>>36 lelong &0x00400000 LE8
146
+ >18 leshort 41 Alpha,
147
+ >18 leshort 42 Renesas SH,
148
+ >18 leshort 43 SPARC V9,
149
+ >>4 byte 2
150
+ >>>48 use elf-sparc
151
+ >18 leshort 44 Siemens Tricore Embedded Processor,
152
+ >18 leshort 45 Argonaut RISC Core, Argonaut Technologies Inc.,
153
+ >18 leshort 46 Renesas H8/300,
154
+ >18 leshort 47 Renesas H8/300H,
155
+ >18 leshort 48 Renesas H8S,
156
+ >18 leshort 49 Renesas H8/500,
157
+ >18 leshort 50 IA-64,
158
+ >18 leshort 51 Stanford MIPS-X,
159
+ >18 leshort 52 Motorola Coldfire,
160
+ >18 leshort 53 Motorola M68HC12,
161
+ >18 leshort 54 Fujitsu MMA,
162
+ >18 leshort 55 Siemens PCP,
163
+ >18 leshort 56 Sony nCPU,
164
+ >18 leshort 57 Denso NDR1,
165
+ >18 leshort 58 Start*Core,
166
+ >18 leshort 59 Toyota ME16,
167
+ >18 leshort 60 ST100,
168
+ >18 leshort 61 Tinyj emb.,
169
+ >18 leshort 62 x86-64,
170
+ >18 leshort 63 Sony DSP,
171
+ >18 leshort 64 DEC PDP-10,
172
+ >18 leshort 65 DEC PDP-11,
173
+ >18 leshort 66 FX66,
174
+ >18 leshort 67 ST9+ 8/16 bit,
175
+ >18 leshort 68 ST7 8 bit,
176
+ >18 leshort 69 MC68HC16,
177
+ >18 leshort 70 MC68HC11,
178
+ >18 leshort 71 MC68HC08,
179
+ >18 leshort 72 MC68HC05,
180
+ >18 leshort 73 SGI SVx or Cray NV1,
181
+ >18 leshort 74 ST19 8 bit,
182
+ >18 leshort 75 Digital VAX,
183
+ >18 leshort 76 Axis cris,
184
+ >18 leshort 77 Infineon 32-bit embedded,
185
+ >18 leshort 78 Element 14 64-bit DSP,
186
+ >18 leshort 79 LSI Logic 16-bit DSP,
187
+ >18 leshort 80 MMIX,
188
+ >18 leshort 81 Harvard machine-independent,
189
+ >18 leshort 82 SiTera Prism,
190
+ >18 leshort 83 Atmel AVR 8-bit,
191
+ >18 leshort 84 Fujitsu FR30,
192
+ >18 leshort 85 Mitsubishi D10V,
193
+ >18 leshort 86 Mitsubishi D30V,
194
+ >18 leshort 87 NEC v850,
195
+ >18 leshort 88 Renesas M32R,
196
+ >18 leshort 89 Matsushita MN10300,
197
+ >18 leshort 90 Matsushita MN10200,
198
+ >18 leshort 91 picoJava,
199
+ >18 leshort 92 OpenRISC,
200
+ >18 leshort 93 Synopsys ARCompact ARC700 cores,
201
+ >18 leshort 94 Tensilica Xtensa,
202
+ >18 leshort 95 Alphamosaic VideoCore,
203
+ >18 leshort 96 Thompson Multimedia,
204
+ >18 leshort 97 NatSemi 32k,
205
+ >18 leshort 98 Tenor Network TPC,
206
+ >18 leshort 99 Trebia SNP 1000,
207
+ >18 leshort 100 STMicroelectronics ST200,
208
+ >18 leshort 101 Ubicom IP2022,
209
+ >18 leshort 102 MAX Processor,
210
+ >18 leshort 103 NatSemi CompactRISC,
211
+ >18 leshort 104 Fujitsu F2MC16,
212
+ >18 leshort 105 TI msp430,
213
+ >18 leshort 106 Analog Devices Blackfin,
214
+ >18 leshort 107 S1C33 Family of Seiko Epson,
215
+ >18 leshort 108 Sharp embedded,
216
+ >18 leshort 109 Arca RISC,
217
+ >18 leshort 110 PKU-Unity Ltd.,
218
+ >18 leshort 111 eXcess: 16/32/64-bit,
219
+ >18 leshort 112 Icera Deep Execution Processor,
220
+ >18 leshort 113 Altera Nios II,
221
+ >18 leshort 114 NatSemi CRX,
222
+ >18 leshort 115 Motorola XGATE,
223
+ >18 leshort 116 Infineon C16x/XC16x,
224
+ >18 leshort 117 Renesas M16C series,
225
+ >18 leshort 118 Microchip dsPIC30F,
226
+ >18 leshort 119 Freescale RISC core,
227
+ >18 leshort 120 Renesas M32C series,
228
+ >18 leshort 131 Altium TSK3000 core,
229
+ >18 leshort 132 Freescale RS08,
230
+ >18 leshort 134 Cyan Technology eCOG2,
231
+ >18 leshort 135 Sunplus S+core7 RISC,
232
+ >18 leshort 136 New Japan Radio (NJR) 24-bit DSP,
233
+ >18 leshort 137 Broadcom VideoCore III,
234
+ >18 leshort 138 LatticeMico32,
235
+ >18 leshort 139 Seiko Epson C17 family,
236
+ >18 leshort 140 TI TMS320C6000 DSP family,
237
+ >18 leshort 141 TI TMS320C2000 DSP family,
238
+ >18 leshort 142 TI TMS320C55x DSP family,
239
+ >18 leshort 144 TI Programmable Realtime Unit
240
+ >18 leshort 160 STMicroelectronics 64bit VLIW DSP,
241
+ >18 leshort 161 Cypress M8C,
242
+ >18 leshort 162 Renesas R32C series,
243
+ >18 leshort 163 NXP TriMedia family,
244
+ >18 leshort 164 QUALCOMM DSP6,
245
+ >18 leshort 165 Intel 8051 and variants,
246
+ >18 leshort 166 STMicroelectronics STxP7x family,
247
+ >18 leshort 167 Andes embedded RISC,
248
+ >18 leshort 168 Cyan eCOG1X family,
249
+ >18 leshort 169 Dallas MAXQ30,
250
+ >18 leshort 170 New Japan Radio (NJR) 16-bit DSP,
251
+ >18 leshort 171 M2000 Reconfigurable RISC,
252
+ >18 leshort 172 Cray NV2 vector architecture,
253
+ >18 leshort 173 Renesas RX family,
254
+ >18 leshort 174 META,
255
+ >18 leshort 175 MCST Elbrus,
256
+ >18 leshort 176 Cyan Technology eCOG16 family,
257
+ >18 leshort 177 NatSemi CompactRISC,
258
+ >18 leshort 178 Freescale Extended Time Processing Unit,
259
+ >18 leshort 179 Infineon SLE9X,
260
+ >18 leshort 180 Intel L1OM,
261
+ >18 leshort 181 Intel K1OM,
262
+ >18 leshort 183 ARM aarch64,
263
+ >18 leshort 185 Atmel 32-bit family,
264
+ >18 leshort 186 STMicroeletronics STM8 8-bit,
265
+ >18 leshort 187 Tilera TILE64,
266
+ >18 leshort 188 Tilera TILEPro,
267
+ >18 leshort 189 Xilinx MicroBlaze 32-bit RISC,
268
+ >18 leshort 190 NVIDIA CUDA architecture,
269
+ >18 leshort 191 Tilera TILE-Gx,
270
+ >18 leshort 195 Synopsys ARCv2/HS3x/HS4x cores,
271
+ >18 leshort 197 Renesas RL78 family,
272
+ >18 leshort 199 Renesas 78K0R,
273
+ >18 leshort 200 Freescale 56800EX,
274
+ >18 leshort 201 Beyond BA1,
275
+ >18 leshort 202 Beyond BA2,
276
+ >18 leshort 203 XMOS xCORE,
277
+ >18 leshort 204 Microchip 8-bit PIC(r),
278
+ >18 leshort 210 KM211 KM32,
279
+ >18 leshort 211 KM211 KMX32,
280
+ >18 leshort 212 KM211 KMX16,
281
+ >18 leshort 213 KM211 KMX8,
282
+ >18 leshort 214 KM211 KVARC,
283
+ >18 leshort 215 Paneve CDP,
284
+ >18 leshort 216 Cognitive Smart Memory,
285
+ >18 leshort 217 iCelero CoolEngine,
286
+ >18 leshort 218 Nanoradio Optimized RISC,
287
+ >18 leshort 219 CSR Kalimba architecture family
288
+ >18 leshort 220 Zilog Z80
289
+ >18 leshort 221 Controls and Data Services VISIUMcore processor
290
+ >18 leshort 222 FTDI Chip FT32 high performance 32-bit RISC architecture
291
+ >18 leshort 223 Moxie processor family
292
+ >18 leshort 224 AMD GPU architecture
293
+ >18 leshort 243 UCB RISC-V,
294
+ # only for 32-bit
295
+ >>4 byte 1
296
+ >>>36 use elf-riscv
297
+ # only for 64-bit
298
+ >>4 byte 2
299
+ >>>48 use elf-riscv
300
+ >18 leshort 244 Lanai 32-bit processor,
301
+ >18 leshort 245 CEVA Processor Architecture Family,
302
+ >18 leshort 246 CEVA X2 Processor Family,
303
+ >18 leshort 247 eBPF,
304
+ >18 leshort 248 Graphcore Intelligent Processing Unit,
305
+ >18 leshort 249 Imagination Technologies,
306
+ >18 leshort 250 Netronome Flow Processor,
307
+ >18 leshort 251 NEC Vector Engine,
308
+ >18 leshort 252 C-SKY processor family,
309
+ >18 leshort 253 Synopsys ARCv3 64-bit ISA/HS6x cores,
310
+ >18 leshort 254 MOS Technology MCS 6502 processor,
311
+ >18 leshort 255 Synopsys ARCv3 32-bit,
312
+ >18 leshort 256 Kalray VLIW core of the MPPA family,
313
+ >18 leshort 257 WDC 65816/65C816,
314
+ >18 leshort 258 LoongArch,
315
+ >18 leshort 259 ChipON KungFu32,
316
+ >18 leshort 0x1057 AVR (unofficial),
317
+ >18 leshort 0x1059 MSP430 (unofficial),
318
+ >18 leshort 0x1223 Adapteva Epiphany (unofficial),
319
+ >18 leshort 0x2530 Morpho MT (unofficial),
320
+ >18 leshort 0x3330 FR30 (unofficial),
321
+ >18 leshort 0x3426 OpenRISC (obsolete),
322
+ >18 leshort 0x4688 Infineon C166 (unofficial),
323
+ >18 leshort 0x5441 Cygnus FRV (unofficial),
324
+ >18 leshort 0x5aa5 DLX (unofficial),
325
+ >18 leshort 0x7650 Cygnus D10V (unofficial),
326
+ >18 leshort 0x7676 Cygnus D30V (unofficial),
327
+ >18 leshort 0x8217 Ubicom IP2xxx (unofficial),
328
+ >18 leshort 0x8472 OpenRISC (obsolete),
329
+ >18 leshort 0x9025 Cygnus PowerPC (unofficial),
330
+ >18 leshort 0x9026 Alpha (unofficial),
331
+ >18 leshort 0x9041 Cygnus M32R (unofficial),
332
+ >18 leshort 0x9080 Cygnus V850 (unofficial),
333
+ >18 leshort 0xa390 IBM S/390 (obsolete),
334
+ >18 leshort 0xabc7 Old Xtensa (unofficial),
335
+ >18 leshort 0xad45 xstormy16 (unofficial),
336
+ >18 leshort 0xbaab Old MicroBlaze (unofficial),,
337
+ >18 leshort 0xbeef Cygnus MN10300 (unofficial),
338
+ >18 leshort 0xdead Cygnus MN10200 (unofficial),
339
+ >18 leshort 0xf00d Toshiba MeP (unofficial),
340
+ >18 leshort 0xfeb0 Renesas M32C (unofficial),
341
+ >18 leshort 0xfeba Vitesse IQ2000 (unofficial),
342
+ >18 leshort 0xfebb NIOS (unofficial),
343
+ >18 leshort 0xfeed Moxie (unofficial),
344
+ >18 default x
345
+ >>18 leshort x *unknown arch %#x*
346
+ >20 lelong 0 invalid version
347
+ >20 lelong 1 version 1
348
+
349
+ 0 string \177ELF ELF
350
+ !:strength *2
351
+ >4 byte 0 invalid class
352
+ >4 byte 1 32-bit
353
+ >4 byte 2 64-bit
354
+ >5 byte 0 invalid byte order
355
+ >5 byte 1 LSB
356
+ >>0 use elf-le
357
+ >5 byte 2 MSB
358
+ >>0 use \^elf-le
359
+ >7 byte 0 (SYSV)
360
+ >7 byte 1 (HP-UX)
361
+ >7 byte 2 (NetBSD)
362
+ >7 byte 3 (GNU/Linux)
363
+ >7 byte 4 (GNU/Hurd)
364
+ >7 byte 5 (86Open)
365
+ >7 byte 6 (Solaris)
366
+ >7 byte 7 (Monterey)
367
+ >7 byte 8 (IRIX)
368
+ >7 byte 9 (FreeBSD)
369
+ >7 byte 10 (Tru64)
370
+ >7 byte 11 (Novell Modesto)
371
+ >7 byte 12 (OpenBSD)
372
+ >7 byte 13 (OpenVMS)
373
+ >7 byte 14 (HP NonStop Kernel)
374
+ >7 byte 15 (AROS Research Operating System)
375
+ >7 byte 16 (FenixOS)
376
+ >7 byte 17 (Nuxi CloudABI)
377
+ >7 byte 97 (ARM)
378
+ >7 byte 202 (Cafe OS)
379
+ >7 byte 255 (embedded)
@@ -0,0 +1,22 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: encore,v 1.7 2014/04/30 21:41:02 christos Exp $
4
+ # encore: file(1) magic for Encore machines
5
+ #
6
+ # XXX - needs to have the byte order specified (NS32K was little-endian,
7
+ # dunno whether they run the 88K in little-endian mode or not).
8
+ #
9
+ 0 short 0x154 Encore
10
+ >20 short 0x107 executable
11
+ >20 short 0x108 pure executable
12
+ >20 short 0x10b demand-paged executable
13
+ >20 short 0x10f unsupported executable
14
+ >12 long >0 not stripped
15
+ >22 short >0 - version %d
16
+ >22 short 0 -
17
+ #>4 date x stamp %s
18
+ 0 short 0x155 Encore unsupported executable
19
+ >12 long >0 not stripped
20
+ >22 short >0 - version %d
21
+ >22 short 0 -
22
+ #>4 date x stamp %s
@@ -0,0 +1,62 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: epoc,v 1.9 2013/12/21 14:28:15 christos Exp $
4
+ # EPOC : file(1) magic for EPOC documents [Psion Series 5/Osaris/Geofox 1]
5
+ # Stefan Praszalowicz <hpicollo@worldnet.fr> and Peter Breitenlohner <peb@mppmu.mpg.de>
6
+ # Useful information for improving this file can be found at:
7
+ # http://software.frodo.looijaard.name/psiconv/formats/Index.html
8
+ #------------------------------------------------------------------------------
9
+ 0 lelong 0x10000037 Psion Series 5
10
+ >4 lelong 0x10000039 font file
11
+ >4 lelong 0x1000003A printer driver
12
+ >4 lelong 0x1000003B clipboard
13
+ >4 lelong 0x10000042 multi-bitmap image
14
+ !:mime image/x-epoc-mbm
15
+ >4 lelong 0x1000006A application information file
16
+ >4 lelong 0x1000006D
17
+ >>8 lelong 0x1000007D Sketch image
18
+ !:mime image/x-epoc-sketch
19
+ >>8 lelong 0x1000007E voice note
20
+ >>8 lelong 0x1000007F Word file
21
+ !:mime application/x-epoc-word
22
+ >>8 lelong 0x10000085 OPL program (TextEd)
23
+ !:mime application/x-epoc-opl
24
+ >>8 lelong 0x10000087 Comms settings
25
+ >>8 lelong 0x10000088 Sheet file
26
+ !:mime application/x-epoc-sheet
27
+ >>8 lelong 0x100001C4 EasyFax initialisation file
28
+ >4 lelong 0x10000073 OPO module
29
+ !:mime application/x-epoc-opo
30
+ >4 lelong 0x10000074 OPL application
31
+ !:mime application/x-epoc-app
32
+ >4 lelong 0x1000008A exported multi-bitmap image
33
+ >4 lelong 0x1000016D
34
+ >>8 lelong 0x10000087 Comms names
35
+
36
+ 0 lelong 0x10000041 Psion Series 5 ROM multi-bitmap image
37
+
38
+ 0 lelong 0x10000050 Psion Series 5
39
+ >4 lelong 0x1000006D database
40
+ >>8 lelong 0x10000084 Agenda file
41
+ !:mime application/x-epoc-agenda
42
+ >>8 lelong 0x10000086 Data file
43
+ !:mime application/x-epoc-data
44
+ >>8 lelong 0x10000CEA Jotter file
45
+ !:mime application/x-epoc-jotter
46
+ >4 lelong 0x100000E4 ini file
47
+
48
+ 0 lelong 0x10000079 Psion Series 5 binary:
49
+ >4 lelong 0x00000000 DLL
50
+ >4 lelong 0x10000049 comms hardware library
51
+ >4 lelong 0x1000004A comms protocol library
52
+ >4 lelong 0x1000005D OPX
53
+ >4 lelong 0x1000006C application
54
+ >4 lelong 0x1000008D DLL
55
+ >4 lelong 0x100000AC logical device driver
56
+ >4 lelong 0x100000AD physical device driver
57
+ >4 lelong 0x100000E5 file transfer protocol
58
+ >4 lelong 0x100000E5 file transfer protocol
59
+ >4 lelong 0x10000140 printer definition
60
+ >4 lelong 0x10000141 printer definition
61
+
62
+ 0 lelong 0x1000007A Psion Series 5 executable
@@ -0,0 +1,21 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: erlang,v 1.7 2019/04/19 00:42:27 christos Exp $
4
+ # erlang: file(1) magic for Erlang JAM and BEAM files
5
+ # URL: https://www.erlang.org/faq/x779.html#AEN812
6
+
7
+ # OTP R3-R4
8
+ 0 string \0177BEAM! Old Erlang BEAM file
9
+ >6 short >0 - version %d
10
+
11
+ # OTP R5 and onwards
12
+ 0 string FOR1
13
+ >8 string BEAM Erlang BEAM file
14
+
15
+ # 4.2 version may have a copyright notice!
16
+ 4 string Tue\ Jan\ 22\ 14:32:44\ MET\ 1991 Erlang JAM file - version 4.2
17
+ 79 string Tue\ Jan\ 22\ 14:32:44\ MET\ 1991 Erlang JAM file - version 4.2
18
+
19
+ 4 string 1.0\ Fri\ Feb\ 3\ 09:55:56\ MET\ 1995 Erlang JAM file - version 4.3
20
+
21
+ 0 bequad 0x0000000000ABCDEF Erlang DETS file
@@ -0,0 +1,57 @@
1
+
2
+ # $File: espressif,v 1.3 2021/04/26 15:56:00 christos Exp $
3
+ # configuration dump of Tasmota firmware for ESP8266 based devices by Espressif
4
+ # URL: https://github.com/arendst/Sonoff-Tasmota/
5
+ # Reference: https://codeload.github.com/arendst/Sonoff-Tasmota/zip/release-6.2/
6
+ # Sonoff-Tasmota-release-6.2.zip/Sonoff-Tasmota-release-6.2/sonoff/settings.h
7
+ # From: Joerg Jenderek
8
+ #
9
+ # cfg_holder=4617=0x1209
10
+ 0 uleshort 4617
11
+ # remaining settings normally 0x5A+offset XORed; free_1D5[20] empty since 5.12.0e
12
+ >0x1D5 ubequad 0x2f30313233343536 configuration of Tasmota firmware (ESP8266)
13
+ !:mime application/x-tasmota-dmp
14
+ !:ext dmp
15
+ # version like 6.2.1.0 ~ 0x06020100 XORed to 0x63666262
16
+ >>11 ubyte^0x65 x \b, version %u
17
+ >>10 ubyte^0x64 x \b.%u
18
+ >>9 ubyte^0x63 x \b.%u
19
+ >>8 ubyte^0x62 x \b.%u
20
+ #>8 ubelong x (%#x)
21
+ # hostname[33] XORed
22
+ >>0x165 ubyte^0x1BF x \b, hostname %c
23
+ >>0x166 ubyte^0x1C0 >037 \b%c
24
+ >>0x167 ubyte^0x1C1 >037 \b%c
25
+ >>0x168 ubyte^0x1C2 >037 \b%c
26
+ >>0x169 ubyte^0x1C3 >037 \b%c
27
+ >>0x16A ubyte^0x1C4 >037 \b%c
28
+ >>0x16B ubyte^0x1C5 >037 \b%c
29
+ >>0x16C ubyte^0x1C6 >037 \b%c
30
+ >>0x16D ubyte^0x1C7 >037 \b%c
31
+ >>0x16E ubyte^0x1C8 >037 \b%c
32
+ >>0x16F ubyte^0x1C9 >037 \b%c
33
+ >>0x170 ubyte^0x1CA >037 \b%c
34
+ >>0x171 ubyte^0x1CB >037 \b%c
35
+ >>0x172 ubyte^0x1CC >037 \b%c
36
+ >>0x173 ubyte^0x1CD >037 \b%c
37
+ >>0x174 ubyte^0x1CE >037 \b%c
38
+ >>0x175 ubyte^0x1CF >037 \b%c
39
+ >>0x176 ubyte^0x1D0 >037 \b%c
40
+ >>0x177 ubyte^0x1D1 >037 \b%c
41
+ >>0x178 ubyte^0x1D2 >037 \b%c
42
+ >>0x179 ubyte^0x1D3 >037 \b%c
43
+ >>0x17A ubyte^0x1D4 >037 \b%c
44
+ >>0x17B ubyte^0x1D5 >037 \b%c
45
+ >>0x17C ubyte^0x1D6 >037 \b%c
46
+ >>0x17D ubyte^0x1D7 >037 \b%c
47
+ >>0x17E ubyte^0x1D8 >037 \b%c
48
+ >>0x17F ubyte^0x1D9 >037 \b%c
49
+ >>0x180 ubyte^0x1DA >037 \b%c
50
+ >>0x181 ubyte^0x1DB >037 \b%c
51
+ >>0x182 ubyte^0x1DC >037 \b%c
52
+ >>0x183 ubyte^0x1DD >037 \b%c
53
+ >>0x184 ubyte^0x1DE >037 \b%c
54
+ >>0x185 ubyte^0x1DF >037 \b%c
55
+ #>>0x165 string x (%.33s)
56
+
57
+
@@ -0,0 +1,28 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: esri,v 1.5 2019/04/19 00:42:27 christos Exp $
4
+ # ESRI Shapefile format (.shp .shx .dbf=DBaseIII)
5
+ # Based on info from
6
+ # <URL:https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf>
7
+ 0 belong 9994 ESRI Shapefile
8
+ >4 belong =0
9
+ >8 belong =0
10
+ >12 belong =0
11
+ >16 belong =0
12
+ >20 belong =0
13
+ >28 lelong x version %d
14
+ >24 belong x length %d
15
+ >32 lelong =0 type Null Shape
16
+ >32 lelong =1 type Point
17
+ >32 lelong =3 type PolyLine
18
+ >32 lelong =5 type Polygon
19
+ >32 lelong =8 type MultiPoint
20
+ >32 lelong =11 type PointZ
21
+ >32 lelong =13 type PolyLineZ
22
+ >32 lelong =15 type PolygonZ
23
+ >32 lelong =18 type MultiPointZ
24
+ >32 lelong =21 type PointM
25
+ >32 lelong =23 type PolyLineM
26
+ >32 lelong =25 type PolygonM
27
+ >32 lelong =28 type MultiPointM
28
+ >32 lelong =31 type MultiPatch
@@ -0,0 +1,33 @@
1
+ #------------------------------------------------------------------------------
2
+ # $File: etf,v 1.1 2015/04/19 22:40:04 christos Exp $
3
+ # elf: file(1) magic for Erlang External Term Format magic
4
+ # http://erlang.org/doc/apps/erts/erl_ext_dist.html
5
+ # This magic is too weak so it is not enabled by default
6
+ 0 byte 131
7
+ >1 byte 80
8
+ >>2 belong >0 Erlang External Term Format, compressed, original size = %d
9
+ >1 byte 70 Erlang External Term Format, starts with NEW_FLOAT_EXT
10
+ >1 byte 77 Erlang External Term Format, starts with BIT_BINARY_EXT
11
+ >1 byte 97 Erlang External Term Format, starts with SMALL_INTEGER_EXT
12
+ >1 byte 98 Erlang External Term Format, starts with INTEGER_EXT
13
+ >1 byte 99 Erlang External Term Format, starts with FLOAT_EXT
14
+ >1 byte 100 Erlang External Term Format, starts with ATOM_EXT
15
+ >1 byte 101 Erlang External Term Format, starts with REFERENCE_EXT
16
+ >1 byte 102 Erlang External Term Format, starts with PORT_EXT
17
+ >1 byte 103 Erlang External Term Format, starts with PID_EXT
18
+ >1 byte 104 Erlang External Term Format, starts with SMALL_TUPLE_EXT
19
+ >1 byte 105 Erlang External Term Format, starts with LARGE_TUPLE_EXT
20
+ >1 byte 106 Erlang External Term Format, starts with NIL_EXT
21
+ >1 byte 107 Erlang External Term Format, starts with STRING_EXT
22
+ >1 byte 108 Erlang External Term Format, starts with LIST_EXT
23
+ >1 byte 109 Erlang External Term Format, starts with BINARY_EXT
24
+ >1 byte 110 Erlang External Term Format, starts with SMALL_BIG_EXT
25
+ >1 byte 111 Erlang External Term Format, starts with LARGE_BIG_EXT
26
+ >1 byte 112 Erlang External Term Format, starts with NEW_FUN_EXT
27
+ >1 byte 113 Erlang External Term Format, starts with EXPORT_EXT
28
+ >1 byte 114 Erlang External Term Format, starts with NEW_REFERENCE_EXT
29
+ >1 byte 115 Erlang External Term Format, starts with SMALL_ATOM_EXT
30
+ >1 byte 116 Erlang External Term Format, starts with MAP_EXT
31
+ >1 byte 117 Erlang External Term Format, starts with FUN_EXT
32
+ >1 byte 118 Erlang External Term Format, starts with ATOM_UTF8_EXT
33
+ >1 byte 119 Erlang External Term Format, starts with SMALL_ATOM_UTF8_EXT
@@ -0,0 +1,9 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: fcs,v 1.4 2009/09/19 16:28:09 christos Exp $
4
+ # fcs: file(1) magic for FCS (Flow Cytometry Standard) data files
5
+ # From Roger Leigh <roger@whinlatter.uklinux.net>
6
+ 0 string FCS1.0 Flow Cytometry Standard (FCS) data, version 1.0
7
+ 0 string FCS2.0 Flow Cytometry Standard (FCS) data, version 2.0
8
+ 0 string FCS3.0 Flow Cytometry Standard (FCS) data, version 3.0
9
+