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,63 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: terminfo,v 1.13 2022/11/21 22:25:37 christos Exp $
4
+ # terminfo: file(1) magic for terminfo
5
+ #
6
+ # URL: https://invisible-island.net/ncurses/man/term.5.html
7
+ # URL: https://invisible-island.net/ncurses/man/scr_dump.5.html
8
+ #
9
+ # Workaround for Targa image type by Joerg Jenderek
10
+ # GRR: line below too general as it catches also
11
+ # Targa image type 1 with 26 long identification field
12
+ # and HELP.DSK
13
+ 0 string \032\001
14
+ # 5th character of terminal name list, but not Targa image pixel size (15 16 24 32)
15
+ >16 ubyte >32
16
+ # namelist, if more than 1 separated by "|" like "st|stterm| simpleterm 0.4.1"
17
+ >>12 regex \^[a-zA-Z0-9][a-zA-Z0-9.][^|]* Compiled terminfo entry "%-s"
18
+ !:mime application/x-terminfo
19
+ # no extension
20
+ #!:ext
21
+ #
22
+ #------------------------------------------------------------------------------
23
+ # The following was added for ncurses6 development:
24
+ #------------------------------------------------------------------------------
25
+ #
26
+ 0 string \036\002
27
+ # imitate the legacy compiled-format, to get the entry-name printed
28
+ >16 ubyte >32
29
+ # namelist, if more than 1 separated by "|" like "st|stterm| simpleterm 0. 4.1"
30
+ >>12 regex \^[a-zA-Z0-9][a-zA-Z0-9.][^|]* Compiled 32-bit terminfo entry "%-s"
31
+ !:mime application/x-terminfo2
32
+ #
33
+ # While the compiled terminfo uses little-endian format regardless of
34
+ # platform, SystemV screen dumps do not. They came later, and that detail was
35
+ # overlooked.
36
+ #
37
+ # AIX and HPUX use the SVr4 big-endian format
38
+ # Solaris uses the SVr3 formats (sparc and x86 differ endian-ness)
39
+ 0 beshort 0433 SVr2 curses screen image, big-endian
40
+ # GRR: line below too general as it catches Commodore C128 program (crc32.prg XLINK.PRG) with start address 1C01h handled by ./c64
41
+ 0 beshort 0434 SVr3 curses screen image, big-endian
42
+ 0 beshort 0435 SVr4 curses screen image, big-endian
43
+ #
44
+ 0 leshort 0433 SVr2 curses screen image, little-endian
45
+ 0 leshort 0434 SVr3 curses screen image, little-endian
46
+ 0 leshort 0435 SVr4 curses screen image, little-endian
47
+ #
48
+ # Rather than SVr4, Solaris "xcurses" writes this header:
49
+ 0 regex \^MAX=[0-9]+,[0-9]+$
50
+ >1 regex \^BEG=[0-9]+,[0-9]+$
51
+ >2 regex \^SCROLL=[0-9]+,[0-9]+$
52
+ >3 regex \^VMIN=[0-9]+$
53
+ >4 regex \^VTIME=[0-9]+$
54
+ >5 regex \^FLAGS=0x[[:xdigit:]]+$
55
+ >6 regex \^FG=[0-9],[0-9]+$
56
+ >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image
57
+ #
58
+ # ncurses5 (and before) did not use a magic number, making screen dumps "data".
59
+ # ncurses6 (2015) uses this format, ignoring byte-order
60
+ 0 string \210\210\210\210ncurses ncurses6 screen image
61
+ #
62
+ # PDCurses added this in 2005
63
+ 0 string PDC\001 PDCurses screen image
@@ -0,0 +1,141 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: tex,v 1.22 2022/12/21 16:50:04 christos Exp $
4
+ # tex: file(1) magic for TeX files
5
+ #
6
+ # XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
7
+ #
8
+ # From <conklin@talisman.kaleida.com>
9
+
10
+ # Although we may know the offset of certain text fields in TeX DVI
11
+ # and font files, we can't use them reliably because they are not
12
+ # zero terminated. [but we do anyway, christos]
13
+ 0 string \367\002
14
+ >(14.b+15) string \213
15
+ >>14 pstring >\0 TeX DVI file (%s)
16
+ !:mime application/x-dvi
17
+ 0 string \367\203 TeX generic font data
18
+ 0 string \367\131 TeX packed font data
19
+ >3 string >\0 (%s)
20
+ 0 string \367\312
21
+ >(2.b+11) string \363 TeX virtual font data
22
+ 0 search/1 This\ is\ TeX, TeX transcript text
23
+ 0 search/1 This\ is\ METAFONT, METAFONT transcript text
24
+
25
+ # There is no way to detect TeX Font Metric (*.tfm) files without
26
+ # breaking them apart and reading the data. The following patterns
27
+ # match most *.tfm files generated by METAFONT or afm2tfm.
28
+ 2 string \000\021 TeX font metric data
29
+ !:mime application/x-tex-tfm
30
+ >33 string >\0 (%s)
31
+ 2 string \000\022 TeX font metric data
32
+ !:mime application/x-tex-tfm
33
+ >33 string >\0 (%s)
34
+
35
+ # Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
36
+ 0 search/1 \\input\ texinfo Texinfo source text
37
+ !:mime text/x-texinfo
38
+ 0 search/1 This\ is\ Info\ file GNU Info text
39
+ !:mime text/x-info
40
+
41
+ # TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
42
+ 0 search/4096 \\input TeX document text
43
+ !:mime text/x-tex
44
+ !:strength + 15
45
+ 0 search/4096 \\begin LaTeX document text
46
+ !:mime text/x-tex
47
+ !:strength + 15
48
+ 0 search/4096 \\section LaTeX document text
49
+ !:mime text/x-tex
50
+ !:strength + 18
51
+ 0 search/4096 \\setlength LaTeX document text
52
+ !:mime text/x-tex
53
+ !:strength + 15
54
+ 0 search/4096 \\documentstyle LaTeX document text
55
+ !:mime text/x-tex
56
+ !:strength + 18
57
+ 0 search/4096 \\chapter LaTeX document text
58
+ !:mime text/x-tex
59
+ !:strength + 18
60
+ 0 search/4096 \\documentclass LaTeX 2e document text
61
+ !:mime text/x-tex
62
+ !:strength + 15
63
+ 0 search/4096 \\relax LaTeX auxiliary file
64
+ !:mime text/x-tex
65
+ !:strength + 15
66
+ 0 search/4096 \\contentsline LaTeX table of contents
67
+ !:mime text/x-tex
68
+ !:strength + 15
69
+ 0 search/4096 %\ -*-latex-*- LaTeX document text
70
+ !:mime text/x-tex
71
+
72
+ # Tex document, from Hendrik Scholz <hendrik@scholz.net>
73
+ 0 search/1 \\ifx TeX document text
74
+
75
+ # Index and glossary files
76
+ 0 search/4096 \\indexentry LaTeX raw index file
77
+ 0 search/4096 \\begin{theindex} LaTeX sorted index
78
+ 0 search/4096 \\glossaryentry LaTeX raw glossary
79
+ 0 search/4096 \\begin{theglossary} LaTeX sorted glossary
80
+ 0 search/4096 This\ is\ makeindex Makeindex log file
81
+
82
+ # End of TeX
83
+
84
+ #------------------------------------------------------------------------------
85
+ # file(1) magic for BibTex text files
86
+ # From Hendrik Scholz <hendrik@scholz.net>
87
+
88
+ 0 search/1/c @article{ BibTeX text file
89
+ 0 search/1/c @book{ BibTeX text file
90
+ 0 search/1/c @inbook{ BibTeX text file
91
+ 0 search/1/c @incollection{ BibTeX text file
92
+ 0 search/1/c @inproceedings{ BibTeX text file
93
+ 0 search/1/c @manual{ BibTeX text file
94
+ 0 search/1/c @misc{ BibTeX text file
95
+ 0 search/1/c @preamble{ BibTeX text file
96
+ 0 search/1/c @phdthesis{ BibTeX text file
97
+ 0 search/1/c @techreport{ BibTeX text file
98
+ 0 search/1/c @unpublished{ BibTeX text file
99
+
100
+ 73 search/1 %%%\ \ BibTeX-file{ BibTex text file (with full header)
101
+
102
+ 73 search/1 %%%\ \ @BibTeX-style-file{ BibTeX style text file (with full header)
103
+
104
+ 0 search/1 %\ BibTeX\ standard\ bibliography\ BibTeX standard bibliography style text file
105
+
106
+ 0 search/1 %\ BibTeX\ ` BibTeX custom bibliography style text file
107
+
108
+ 0 search/1 @c\ @mapfile{ TeX font aliases text file
109
+
110
+ 0 string #LyX LyX document text
111
+
112
+ # ConTeXt documents
113
+ # https://wiki.contextgarden.net/
114
+ 0 search/4096 \\setupcolors[ ConTeXt document text
115
+ !:strength + 15
116
+ 0 search/4096 \\definecolor[ ConTeXt document text
117
+ !:strength + 15
118
+ 0 search/4096 \\setupinteraction[ ConTeXt document text
119
+ !:strength + 15
120
+ 0 search/4096 \\useURL[ ConTeXt document text
121
+ !:strength + 15
122
+ 0 search/4096 \\setuppapersize[ ConTeXt document text
123
+ !:strength + 15
124
+ 0 search/4096 \\setuplayout[ ConTeXt document text
125
+ !:strength + 15
126
+ 0 search/4096 \\setupfooter[ ConTeXt document text
127
+ !:strength + 15
128
+ 0 search/4096 \\setupfootertexts[ ConTeXt document text
129
+ !:strength + 15
130
+ 0 search/4096 \\setuppagenumbering[ ConTeXt document text
131
+ !:strength + 15
132
+ 0 search/4096 \\setupbodyfont[ ConTeXt document text
133
+ !:strength + 15
134
+ 0 search/4096 \\setuphead[ ConTeXt document text
135
+ !:strength + 15
136
+ 0 search/4096 \\setupitemize[ ConTeXt document text
137
+ !:strength + 15
138
+ 0 search/4096 \\setupwhitespace[ ConTeXt document text
139
+ !:strength + 15
140
+ 0 search/4096 \\setupindenting[ ConTeXt document text
141
+ !:strength + 15
@@ -0,0 +1,7 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: tgif,v 1.7 2010/09/20 19:03:46 rrt Exp $
4
+ # file(1) magic for tgif(1) files
5
+ # From Hendrik Scholz <hendrik@scholz.net>
6
+ 0 string %TGIF\ Tgif file version
7
+ >6 string x %s
@@ -0,0 +1,239 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: ti-8x,v 1.8 2020/02/12 22:13:01 christos Exp $
4
+ # ti-8x: file(1) magic for the TI-8x and TI-9x Graphing Calculators.
5
+ #
6
+ # From: Ryan McGuire (rmcguire@freenet.columbus.oh.us).
7
+ #
8
+ # Update: Romain Lievin (roms@lpg.ticalc.org).
9
+ #
10
+ # NOTE: This list is not complete.
11
+ # Files for the TI-80 and TI-81 are pretty rare. I'm not going to put the
12
+ # program/group magic numbers in here because I cannot find any.
13
+ 0 string **TI80** TI-80 Graphing Calculator File.
14
+ 0 string **TI81** TI-81 Graphing Calculator File.
15
+ #
16
+ # Magic Numbers for the TI-73
17
+ #
18
+ 0 string **TI73** TI-73 Graphing Calculator
19
+ >0x00003B byte 0x00 (real number)
20
+ >0x00003B byte 0x01 (list)
21
+ >0x00003B byte 0x02 (matrix)
22
+ >0x00003B byte 0x03 (equation)
23
+ >0x00003B byte 0x04 (string)
24
+ >0x00003B byte 0x05 (program)
25
+ >0x00003B byte 0x06 (assembly program)
26
+ >0x00003B byte 0x07 (picture)
27
+ >0x00003B byte 0x08 (gdb)
28
+ >0x00003B byte 0x0C (complex number)
29
+ >0x00003B byte 0x0F (window settings)
30
+ >0x00003B byte 0x10 (zoom)
31
+ >0x00003B byte 0x11 (table setup)
32
+ >0x00003B byte 0x13 (backup)
33
+
34
+ # Magic Numbers for the TI-82
35
+ #
36
+ 0 string **TI82** TI-82 Graphing Calculator
37
+ >0x00003B byte 0x00 (real)
38
+ >0x00003B byte 0x01 (list)
39
+ >0x00003B byte 0x02 (matrix)
40
+ >0x00003B byte 0x03 (Y-variable)
41
+ >0x00003B byte 0x05 (program)
42
+ >0x00003B byte 0x06 (protected prgm)
43
+ >0x00003B byte 0x07 (picture)
44
+ >0x00003B byte 0x08 (gdb)
45
+ >0x00003B byte 0x0B (window settings)
46
+ >0x00003B byte 0x0C (window settings)
47
+ >0x00003B byte 0x0D (table setup)
48
+ >0x00003B byte 0x0E (screenshot)
49
+ >0x00003B byte 0x0F (backup)
50
+ #
51
+ # Magic Numbers for the TI-83
52
+ #
53
+ 0 string **TI83** TI-83 Graphing Calculator
54
+ >0x00003B byte 0x00 (real)
55
+ >0x00003B byte 0x01 (list)
56
+ >0x00003B byte 0x02 (matrix)
57
+ >0x00003B byte 0x03 (Y-variable)
58
+ >0x00003B byte 0x04 (string)
59
+ >0x00003B byte 0x05 (program)
60
+ >0x00003B byte 0x06 (protected prgm)
61
+ >0x00003B byte 0x07 (picture)
62
+ >0x00003B byte 0x08 (gdb)
63
+ >0x00003B byte 0x0B (window settings)
64
+ >0x00003B byte 0x0C (window settings)
65
+ >0x00003B byte 0x0D (table setup)
66
+ >0x00003B byte 0x0E (screenshot)
67
+ >0x00003B byte 0x13 (backup)
68
+ #
69
+ # Magic Numbers for the TI-83+
70
+ #
71
+ 0 string **TI83F* TI-83+ Graphing Calculator
72
+ >0x00003B byte 0x00 (real number)
73
+ >0x00003B byte 0x01 (list)
74
+ >0x00003B byte 0x02 (matrix)
75
+ >0x00003B byte 0x03 (equation)
76
+ >0x00003B byte 0x04 (string)
77
+ >0x00003B byte 0x05 (program)
78
+ >0x00003B byte 0x06 (assembly program)
79
+ >0x00003B byte 0x07 (picture)
80
+ >0x00003B byte 0x08 (gdb)
81
+ >0x00003B byte 0x0C (complex number)
82
+ >0x00003B byte 0x0F (window settings)
83
+ >0x00003B byte 0x10 (zoom)
84
+ >0x00003B byte 0x11 (table setup)
85
+ >0x00003B byte 0x13 (backup)
86
+ >0x00003B byte 0x15 (application variable)
87
+ >0x00003B byte 0x17 (group of variable)
88
+
89
+ #
90
+ # Magic Numbers for the TI-85
91
+ #
92
+ 0 string **TI85** TI-85 Graphing Calculator
93
+ >0x00003B byte 0x00 (real number)
94
+ >0x00003B byte 0x01 (complex number)
95
+ >0x00003B byte 0x02 (real vector)
96
+ >0x00003B byte 0x03 (complex vector)
97
+ >0x00003B byte 0x04 (real list)
98
+ >0x00003B byte 0x05 (complex list)
99
+ >0x00003B byte 0x06 (real matrix)
100
+ >0x00003B byte 0x07 (complex matrix)
101
+ >0x00003B byte 0x08 (real constant)
102
+ >0x00003B byte 0x09 (complex constant)
103
+ >0x00003B byte 0x0A (equation)
104
+ >0x00003B byte 0x0C (string)
105
+ >0x00003B byte 0x0D (function GDB)
106
+ >0x00003B byte 0x0E (polar GDB)
107
+ >0x00003B byte 0x0F (parametric GDB)
108
+ >0x00003B byte 0x10 (diffeq GDB)
109
+ >0x00003B byte 0x11 (picture)
110
+ >0x00003B byte 0x12 (program)
111
+ >0x00003B byte 0x13 (range)
112
+ >0x00003B byte 0x17 (window settings)
113
+ >0x00003B byte 0x18 (window settings)
114
+ >0x00003B byte 0x19 (window settings)
115
+ >0x00003B byte 0x1A (window settings)
116
+ >0x00003B byte 0x1B (zoom)
117
+ >0x00003B byte 0x1D (backup)
118
+ >0x00003B byte 0x1E (unknown)
119
+ >0x00003B byte 0x2A (equation)
120
+ >0x000032 string ZS4 - ZShell Version 4 File.
121
+ >0x000032 string ZS3 - ZShell Version 3 File.
122
+ #
123
+ # Magic Numbers for the TI-86
124
+ #
125
+ 0 string **TI86** TI-86 Graphing Calculator
126
+ >0x00003B byte 0x00 (real number)
127
+ >0x00003B byte 0x01 (complex number)
128
+ >0x00003B byte 0x02 (real vector)
129
+ >0x00003B byte 0x03 (complex vector)
130
+ >0x00003B byte 0x04 (real list)
131
+ >0x00003B byte 0x05 (complex list)
132
+ >0x00003B byte 0x06 (real matrix)
133
+ >0x00003B byte 0x07 (complex matrix)
134
+ >0x00003B byte 0x08 (real constant)
135
+ >0x00003B byte 0x09 (complex constant)
136
+ >0x00003B byte 0x0A (equation)
137
+ >0x00003B byte 0x0C (string)
138
+ >0x00003B byte 0x0D (function GDB)
139
+ >0x00003B byte 0x0E (polar GDB)
140
+ >0x00003B byte 0x0F (parametric GDB)
141
+ >0x00003B byte 0x10 (diffeq GDB)
142
+ >0x00003B byte 0x11 (picture)
143
+ >0x00003B byte 0x12 (program)
144
+ >0x00003B byte 0x13 (range)
145
+ >0x00003B byte 0x17 (window settings)
146
+ >0x00003B byte 0x18 (window settings)
147
+ >0x00003B byte 0x19 (window settings)
148
+ >0x00003B byte 0x1A (window settings)
149
+ >0x00003B byte 0x1B (zoom)
150
+ >0x00003B byte 0x1D (backup)
151
+ >0x00003B byte 0x1E (unknown)
152
+ >0x00003B byte 0x2A (equation)
153
+ #
154
+ # Magic Numbers for the TI-89
155
+ #
156
+ 0 string **TI89** TI-89 Graphing Calculator
157
+ >0x000048 byte 0x00 (expression)
158
+ >0x000048 byte 0x04 (list)
159
+ >0x000048 byte 0x06 (matrix)
160
+ >0x000048 byte 0x0A (data)
161
+ >0x000048 byte 0x0B (text)
162
+ >0x000048 byte 0x0C (string)
163
+ >0x000048 byte 0x0D (graphic data base)
164
+ >0x000048 byte 0x0E (figure)
165
+ >0x000048 byte 0x10 (picture)
166
+ >0x000048 byte 0x12 (program)
167
+ >0x000048 byte 0x13 (function)
168
+ >0x000048 byte 0x14 (macro)
169
+ >0x000048 byte 0x1C (zipped)
170
+ >0x000048 byte 0x21 (assembler)
171
+ #
172
+ # Magic Numbers for the TI-92
173
+ #
174
+ 0 string **TI92** TI-92 Graphing Calculator
175
+ >0x000048 byte 0x00 (expression)
176
+ >0x000048 byte 0x04 (list)
177
+ >0x000048 byte 0x06 (matrix)
178
+ >0x000048 byte 0x0A (data)
179
+ >0x000048 byte 0x0B (text)
180
+ >0x000048 byte 0x0C (string)
181
+ >0x000048 byte 0x0D (graphic data base)
182
+ >0x000048 byte 0x0E (figure)
183
+ >0x000048 byte 0x10 (picture)
184
+ >0x000048 byte 0x12 (program)
185
+ >0x000048 byte 0x13 (function)
186
+ >0x000048 byte 0x14 (macro)
187
+ >0x000048 byte 0x1D (backup)
188
+ #
189
+ # Magic Numbers for the TI-92+/V200
190
+ #
191
+ 0 string **TI92P* TI-92+/V200 Graphing Calculator
192
+ >0x000048 byte 0x00 (expression)
193
+ >0x000048 byte 0x04 (list)
194
+ >0x000048 byte 0x06 (matrix)
195
+ >0x000048 byte 0x0A (data)
196
+ >0x000048 byte 0x0B (text)
197
+ >0x000048 byte 0x0C (string)
198
+ >0x000048 byte 0x0D (graphic data base)
199
+ >0x000048 byte 0x0E (figure)
200
+ >0x000048 byte 0x10 (picture)
201
+ >0x000048 byte 0x12 (program)
202
+ >0x000048 byte 0x13 (function)
203
+ >0x000048 byte 0x14 (macro)
204
+ >0x000048 byte 0x1C (zipped)
205
+ >0x000048 byte 0x21 (assembler)
206
+ #
207
+ # Magic Numbers for the TI-73/83+/89/92+/V200 FLASH upgrades
208
+ #
209
+ #0x0000016 string Advanced TI-XX Graphing Calculator (FLASH)
210
+ 0 string **TIFL** TI-XX Graphing Calculator (FLASH)
211
+ >8 byte >0 - Revision %d
212
+ >>9 byte x \b.%d,
213
+ >12 byte >0 Revision date %02x
214
+ >>13 byte x \b/%02x
215
+ >>14 beshort x \b/%04x,
216
+ >17 string >/0 name: '%s',
217
+ >48 byte 0x74 device: TI-73,
218
+ >48 byte 0x73 device: TI-83+,
219
+ >48 byte 0x98 device: TI-89,
220
+ >48 byte 0x88 device: TI-92+,
221
+ >49 byte 0x23 type: OS upgrade,
222
+ >49 byte 0x24 type: application,
223
+ >49 byte 0x25 type: certificate,
224
+ >49 byte 0x3e type: license,
225
+ >74 lelong >0 size: %d bytes
226
+
227
+ # VTi & TiEmu skins (TI Graphing Calculators).
228
+ # From: Romain Lievin (roms@lpg.ticalc.org).
229
+ # Magic Numbers for the VTi skins
230
+ 0 string VTI Virtual TI skin
231
+ >3 string v - Version
232
+ >>4 byte >0 \b %c
233
+ >>6 byte x \b.%c
234
+ # Magic Numbers for the TiEmu skins
235
+ 0 string TiEmu TiEmu skin
236
+ >6 string v - Version
237
+ >>7 byte >0 \b %c
238
+ >>9 byte x \b.%c
239
+ >>10 byte x \b%c
@@ -0,0 +1,42 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: timezone,v 1.13 2021/07/21 17:57:20 christos Exp $
4
+ # timezone: file(1) magic for timezone data
5
+ #
6
+ # from Daniel Quinlan (quinlan@yggdrasil.com)
7
+ # this should work on Linux, SunOS, and maybe others
8
+ # Added new official magic number for recent versions of the Olson code
9
+ 0 name timezone
10
+ >4 byte 0 \b, old version
11
+ >4 byte >0 \b, version %c
12
+ >20 belong 0 \b, no gmt time flags
13
+ >20 belong 1 \b, 1 gmt time flag
14
+ >20 belong >1 \b, %d gmt time flags
15
+ >24 belong 0 \b, no std time flags
16
+ >24 belong 1 \b, 1 std time flag
17
+ >24 belong >1 \b, %d std time flags
18
+ >28 belong 0 \b, no leap seconds
19
+ >28 belong 1 \b, 1 leap second
20
+ >28 belong >1 \b, %d leap seconds
21
+ >32 belong 0 \b, no transition times
22
+ >32 belong 1 \b, 1 transition time
23
+ >32 belong >1 \b, %d transition times
24
+ >36 belong 0 \b, no local time types
25
+ >36 belong 1 \b, 1 local time type
26
+ >36 belong >1 \b, %d local time types
27
+ >40 belong 0 \b, no abbreviation chars
28
+ >40 belong 1 \b, 1 abbreviation char
29
+ >40 belong >1 \b, %d abbreviation chars
30
+
31
+ 0 string TZif timezone data
32
+ >51 string TZif \b(slim)
33
+ >>51 use timezone
34
+ >51 default x \b(fat)
35
+ >>0 use timezone
36
+
37
+ 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0 old timezone data
38
+ 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\0 old timezone data
39
+ 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0 old timezone data
40
+ 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0 old timezone data
41
+ 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0 old timezone data
42
+ 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0 old timezone data
@@ -0,0 +1,95 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: tplink,v 1.8 2023/05/15 16:41:02 christos Exp $
4
+ # tplink: File magic for openwrt firmware files
5
+
6
+ # URL: https://wiki.openwrt.org/doc/techref/header
7
+ # Reference: https://git.openwrt.org/?p=openwrt.git;a=blob;f=tools/firmware-utils/src/mktplinkfw.c
8
+ # http://mark0.net/download/triddefs_xml.7z/defs/b/bin-tplink-v1.trid.xml
9
+ # Note: called "TP-Link router firmware (v1)" by TrID
10
+ # From: Joerg Jenderek
11
+ # check for valid header version 1 or 2
12
+ 0 ulelong <3
13
+ >0 ulelong !0
14
+ # test for header padding with nulls
15
+ >>0x100 long 0
16
+ # skip Norton Commander Cleanup Utility NCCLEAN.INI by looking for valid vendor name
17
+ >>>4 ubelong >0x1F000000
18
+ # skip user.dbt by looking for positive hardware id
19
+ >>>>0x40 ubeshort >0
20
+ # skip cversions.1.db cversions.2.db cversions.3.db inside
21
+ # c:\ProgramData\Microsoft\Windows\Caches
22
+ # with invalid vendor names \240\0\0\0 \140\0\0\0 \040\0\0\0
23
+ >>>>>5 short !0
24
+ >>>>>>0 use firmware-tplink
25
+
26
+ 0 name firmware-tplink
27
+ >0 ubyte x firmware
28
+ !:mime application/x-tplink-bin
29
+ # like: TL-WR1043ND-V1-FW0.0.3-stripped.bin gluon-ffrefugee-0.9.2-tp-link-archer-c5-v1-sysupgrade.bin
30
+ !:ext bin
31
+ # hardware id like 10430001 07410001 09410004 09410006
32
+ >0x40 ubeshort x %x
33
+ >0x42 ubeshort x v%x
34
+ # hardware revision like 1
35
+ >0x44 ubelong !1 (revision %u)
36
+ # vendor_name[24] like OpenWrt or TP-LINK Technologies
37
+ >4 string x %.24s
38
+ # fw_version[36] like r49389 or ver. 1.0
39
+ >0x1c string x %.36s
40
+ # header version 1 or 2
41
+ >0 ubyte !1 V%X
42
+ # ver_hi.ver_mid.ver_lo
43
+ >0x98 long !0 \b, version
44
+ >>0x98 ubeshort x %u
45
+ >>0x9A ubeshort x \b.%u
46
+ >>0x9C ubeshort x \b.%u
47
+ # region code 0~universal 1~US
48
+ >0x48 ubelong x
49
+ #>>0x48 ubelong 0 (universal)
50
+ >>0x48 ubelong 1 (US)
51
+ >>0x48 ubelong >1 (region %u)
52
+ # total length of the firmware. not always true
53
+ >0x7C ubelong x \b, %u bytes or less
54
+ # unknown 1
55
+ >0x48 ubelong !0 \b, UNKNOWN1 %#x
56
+ # md5sum1[16]
57
+ #>0x4c ubequad x \b, MD5 %llx
58
+ #>>0x54 ubequad x \b%llx
59
+ # unknown 2
60
+ >0x5c ubelong !0 \b, UNKNOWN2 %#x
61
+ # md5sum2[16]
62
+ #>0x60 ubequad !0 \b, 2nd MD5 %llx
63
+ #>>0x68 ubequad x \b%llx
64
+ # unknown 3
65
+ >0x70 ubelong !0 \b, UNKNOWN3 %#x
66
+ # kernel load address
67
+ #>0x74 ubelong x \b, %#x load
68
+ # kernel entry point
69
+ #>0x78 ubelong x \b, %#x entry
70
+ # kernel data offset. 200h means direct after header
71
+ >0x80 ubelong x \b, at %#x
72
+ # kernel data length and 1 space
73
+ >0x84 ubelong x %u bytes
74
+ # look for kernel type (gzip compressed vmlinux.bin by ./compress)
75
+ >(0x80.L) indirect x
76
+ # root file system data offset
77
+ # WRONG in 5.35 with above indirect expression
78
+ >0x88 ubelong x \b, at %#x
79
+ # rootfs data length and 1 space
80
+ >0x8C ubelong x %u bytes
81
+ # in 5.32 only true for offset ~< FILE_BYTES_MAX=9 MB defined in ../../src/file.h
82
+ >(0x88.L) indirect x
83
+ # 'qshs' for wr940nv1_en_3_13_7_up(111228).bin
84
+ #>(0x88.L) string x \b, file system '%.4s'
85
+ #>(0x88.L) ubequad x \b, file system %#llx
86
+ # bootloader data offset
87
+ >0x90 ubelong !0 \b, at %#x
88
+ # bootloader data length only reasonable if bootloader offset not null
89
+ >>0x94 ubelong !0 %u bytes
90
+ # pad[354] should be 354 null bytes.
91
+ #>0x9E ubequad !0 \b, padding %#llx
92
+ # But at 0x120 18 non null bytes in examples like
93
+ # wr940nv4_eu_3_16_9_up_boot(160620).bin
94
+ # wr940nv6_us_3_18_1_up_boot(171030).bin
95
+ #>0x120 ubequad !0 \b, other padding %#llx
@@ -0,0 +1,38 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: troff,v 1.13 2020/05/30 23:12:34 christos Exp $
4
+ # troff: file(1) magic for *roff
5
+ #
6
+ # updated by Daniel Quinlan (quinlan@yggdrasil.com)
7
+
8
+ # troff input
9
+ 0 search/1 .\\" troff or preprocessor input text
10
+ !:mime text/troff
11
+ 0 search/1 '\\" troff or preprocessor input text
12
+ !:mime text/troff
13
+ 0 search/1 '.\\" troff or preprocessor input text
14
+ !:mime text/troff
15
+ 0 search/1 \\" troff or preprocessor input text
16
+ !:mime text/troff
17
+ #0 search/1 ''' troff or preprocessor input text
18
+ #!:mime text/troff
19
+ 0 regex/20l \^\\.[A-Za-z][A-Za-z0-9][\ \t] troff or preprocessor input text
20
+ !:mime text/troff
21
+ 0 regex/20l \^\\.[A-Za-z][A-Za-z0-9]$ troff or preprocessor input text
22
+ !:mime text/troff
23
+
24
+ # ditroff intermediate output text
25
+ 0 search/1 x\ T ditroff output text
26
+ >4 search/1 cat for the C/A/T phototypesetter
27
+ >4 search/1 ps for PostScript
28
+ >4 search/1 dvi for DVI
29
+ >4 search/1 ascii for ASCII
30
+ >4 search/1 lj4 for LaserJet 4
31
+ >4 search/1 latin1 for ISO 8859-1 (Latin 1)
32
+ >4 search/1 X75 for xditview at 75dpi
33
+ >>7 search/1 -12 (12pt)
34
+ >4 search/1 X100 for xditview at 100dpi
35
+ >>8 search/1 -12 (12pt)
36
+
37
+ # output data formats
38
+ 0 string \100\357 very old (C/A/T) troff output data
@@ -0,0 +1,8 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: tuxedo,v 1.4 2009/09/19 16:28:13 christos Exp $
4
+ # tuxedo: file(1) magic for BEA TUXEDO data files
5
+ #
6
+ # from Ian Springer <ispringer@hotmail.com>
7
+ #
8
+ 0 string \0\0\1\236\0\0\0\0\0\0\0\0\0\0\0\0 BEA TUXEDO DES mask data
@@ -0,0 +1,8 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: typeset,v 1.8 2009/09/19 16:28:13 christos Exp $
4
+ # typeset: file(1) magic for other typesetting
5
+ #
6
+ 0 string Interpress/Xerox Xerox InterPress data
7
+ >16 string / (version
8
+ >>17 string >\0 %s)