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,7 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: wireless,v 1.2 2009/09/19 16:28:13 christos Exp $
4
+ # wireless-regdb: file(1) magic for CRDA wireless-regdb file format
5
+ #
6
+ 0 string RGDB CRDA wireless regulatory database file
7
+ >4 belong 19 (Version 1)
@@ -0,0 +1,630 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: wordprocessors,v 1.34 2023/01/24 20:13:40 christos Exp $
4
+ # wordprocessors: file(1) magic fo word processors.
5
+ #
6
+ ####### PWP file format used on Smith Corona Personal Word Processors:
7
+ 2 string \040\040\040\040\040\040\040\040\040\040\040ML4D\040'92 Smith Corona PWP
8
+ >24 byte 2 \b, single spaced
9
+ >24 byte 3 \b, 1.5 spaced
10
+ >24 byte 4 \b, double spaced
11
+ >25 byte 0x42 \b, letter
12
+ >25 byte 0x54 \b, legal
13
+ >26 byte 0x46 \b, A4
14
+
15
+ # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
16
+ # reference: http://mark0.net/download/triddefs_xml.7z
17
+ # /defs/w/wps-works-dos.trid.xml
18
+ # From: Joerg Jenderek
19
+ # Note: older non OLE 2 Compound based versions
20
+ 0 ubeshort =0x01FE
21
+ >112 ubeshort =0x0100 Microsoft Works 1-3 (DOS) or 2 (Windows) document
22
+ # title like THE GREAT KHAN GAME
23
+ >>0x100 string x %s
24
+ !:mime application/vnd-ms-works
25
+ #!:mime application/x-msworks
26
+ # https://www.macdisk.com/macsigen.php
27
+ !:apple ????AWWP
28
+ !:ext wps
29
+
30
+ # Corel/WordPerfect
31
+ # URL: https://en.wikipedia.org/wiki/WordPerfect
32
+ # Reference: https://github.com/OneWingedShark/WordPerfect/blob/master/doc/SDK_Help/FileFormats/WPFF_DocumentStructure.htm
33
+ # http://mark0.net/download/triddefs_xml.7z/defs/w/wp-generic.trid.xml
34
+ 0 string \xffWPC
35
+ # WordPerfect
36
+ >8 byte 1
37
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/w/wpm-macro.trid.xml
38
+ # Note: there exist other macro variants
39
+ >>9 byte 1 WordPerfect macro
40
+ #!:mime application/octet-stream
41
+ !:mime application/x-wordperfect-wpm
42
+ # like: ALTD.WPM ENDFOOT.WPM FOOTEND.WPM LABELS.WPM REVEALTX.WPM
43
+ !:ext wpm
44
+ # Note: used in WordPerfect 5.1; there exist other FIL variants
45
+ >>9 byte 2 WordPerfect help file
46
+ #!:mime application/octet-stream
47
+ !:mime application/x-wordperfect-help
48
+ # like: WPHELP.FIL
49
+ !:ext fil
50
+ # pointer to document area like: 10h
51
+ >>>4 ulelong !0x10 \b, at %#x document area
52
+ >>9 byte 3 WordPerfect keyboard file
53
+ #!:mime application/octet-stream
54
+ !:mime application/x-wordperfect-keyboard
55
+ !:ext wpk
56
+ # no document area, so point to end of file; so this is file size like: 23381 2978 32835 3355 3775 919
57
+ >>>4 ulelong x \b, %u bytes
58
+ >>9 byte 4 WordPerfect VAX keyboard definition
59
+ #!:mime application/octet-stream
60
+ !:mime application/x-wordperfect-keyboard
61
+ #!:ext foo
62
+ # URL: http://fileformats.archiveteam.org/wiki/WordPerfect
63
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/w/wpd-doc-gen.trid.xml
64
+ >>9 byte 10 WordPerfect document
65
+ # https://www.iana.org/assignments/media-types/application/vnd.wordperfect
66
+ !:mime application/vnd.wordperfect
67
+ #!:apple ????WPC2
68
+ # TODO: distinguish different suffix
69
+ !:ext wpd/wpt/wkb/icr/tut/sty/tst/crs
70
+ >>9 byte 11 WordPerfect dictionary
71
+ >>9 byte 12 WordPerfect thesaurus
72
+ >>9 byte 13 WordPerfect block
73
+ >>9 byte 14 WordPerfect rectangular block
74
+ >>9 byte 15 WordPerfect column block
75
+ >>9 byte 16 WordPerfect printer data
76
+ #!:mime application/octet-stream
77
+ !:mime application/x-wordperfect-prs
78
+ # like: STANDARD.PRS WORKBOOK.PRS
79
+ !:ext prs
80
+ # like: "Standard Printer" "Workbook Printer"
81
+ >>>0x64 pstring/B >A "%s"
82
+ #>>9 byte 18 WordPerfect Prefix information file
83
+ # printer resource .ALL
84
+ >>9 byte 19 WordPerfect printer data
85
+ #!:mime application/octet-stream
86
+ !:mime application/x-wordperfect-all
87
+ !:ext all
88
+ # display Resource
89
+ >>9 byte 20 WordPerfect driver resource data
90
+ #!:mime application/octet-stream
91
+ !:mime application/x-wordperfect-drs
92
+ # like: WPSMALL.DRS
93
+ !:ext drs
94
+ # pointer to index area with string "smalldrs" like: 46h
95
+ >>>4 uleshort !0x46 \b, at %#x index area
96
+ >>9 byte 21 WordPerfect Overlay file
97
+ #!:mime application/octet-stream
98
+ !:mime application/x-wordperfect-fil
99
+ # like: WP.FIL
100
+ !:ext fil
101
+ # URL: http://fileformats.archiveteam.org/wiki/WordPerfect_Graphics
102
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/b/bitmap-wpg.trid.xml
103
+ # Note: called "WordPerfect Graphics bitmap" by TrID and
104
+ # "WordPerfect Graphics Metafile" by DROID via x-fmt/395 fmt/1042
105
+ # "WPG (Word Perfect Graphics)" by ImageMagick `identify -verbose BUTTRFLY.WPG`
106
+ >>9 byte 22 WordPerfect graphic image
107
+ # TODO: skip DROID x-fmt-395-signature-id-132.wpg by check for existing document area
108
+ #>>>4 ulelong >15 WordPerfect_graphic_OK
109
+ #!:mime application/octet-stream
110
+ # http://extension.nirsoft.net/wpg
111
+ !:mime image/x-wordperfect-graphics
112
+ # https://reposcope.com/mimetype/application/x-wpg
113
+ #!:mime application/x-wpg
114
+ # like: BUTTRFLY.WPG STAR-5.WPG input.wpg WORDPFCT.WPG
115
+ !:ext wpg
116
+ # pointer to document area like: 10h 1Ah
117
+ >>>4 ulelong !0x1A \b, at %#x document area
118
+ >>9 byte 23 WordPerfect hyphenation code
119
+ >>9 byte 24 WordPerfect hyphenation data
120
+ >>9 byte 25 WordPerfect macro resource data
121
+ #!:mime application/octet-stream
122
+ !:mime application/x-wordperfect-mrs
123
+ # like: WP.MRS
124
+ !:ext mrs
125
+ >>9 byte 27 WordPerfect hyphenation lex
126
+ >>9 byte 29 WordPerfect wordlist
127
+ >>9 byte 30 WordPerfect equation resource data
128
+ #!:mime application/octet-stream
129
+ !:mime application/x-wordperfect-qrs
130
+ # like: WQ.QRS wpDE.qrs wpen.qrs
131
+ !:ext qrs
132
+ # jump to document area with some marker and equation
133
+ >>>(4.l) ubyte x
134
+ # equation like: "Fraction: x OVER y"
135
+ >>>>&1 string >A (...%-.19s...)
136
+ # pointer to document area like: 17C4h
137
+ >>>4 ulelong x \b, at %#x document area
138
+ #>>9 byte 31 reserved
139
+ #>>9 byte 32 WordPerfect VAX .SET
140
+ >>9 byte 33 WordPerfect spell rules
141
+ >>9 byte 34 WordPerfect dictionary rules
142
+ #>>9 byte 35 reserved
143
+ # video resource device driver
144
+ # Note: filetype 26 for VRS and filetype 36 for WPD apparently is wrong
145
+ >>9 byte 36 WordPerfect Video Resource
146
+ #!:mime application/octet-stream
147
+ !:mime application/x-wordperfect-vrs
148
+ # like: STANDARD.VRS
149
+ !:ext vrs
150
+ # like: "IBM CGA (& compatibles)"
151
+ >>>0x20 string >A "%.23s"
152
+ >>9 byte 39 WordPerfect spell rules (Microlytics)
153
+ #>>9 byte 40 reserved
154
+ >>9 byte 41 WordPerfect Install options
155
+ #!:mime application/octet-stream
156
+ !:mime application/x-wordperfect-ins
157
+ # like: WP51.INS
158
+ !:ext ins
159
+ # probably default directory name like: "C:\WP51\"
160
+ >>>0x12 string >A "%.8s"
161
+ # maybe mouse driver for WP5.1
162
+ >>9 byte 42 WordPerfect Resource
163
+ #!:mime application/octet-stream
164
+ !:mime application/x-wordperfect-irs
165
+ # like: STANDARD.IRS
166
+ !:ext irs
167
+ # like: "Mouse Driver (MOUSE.COM)"
168
+ >>>0x28 string >A "%.24s"
169
+ >>9 byte 43 WordPerfect settings file
170
+ # maybe Macintosh WP2.0 document
171
+ >>9 byte 44 WordPerfect 3.5 document
172
+ !:mime application/vnd.wordperfect
173
+ !:apple ????WPD3
174
+ # like: WP3.wpd
175
+ !:ext wpd
176
+ >>9 byte 45 WordPerfect 4.2 document
177
+ # External spell code module (WP5.1)
178
+ #>>9 byte 46 WordPerfect external spell
179
+ # external spell dictionary .LEX
180
+ #>>9 byte 47 WordPerfect external spell dictionary
181
+ # Macintosh SOFT graphics file (SOFT (Sequential Object Format)
182
+ #>>9 byte 48 WordPerfect SOFT graphics
183
+ #>>9 byte 49 reserved
184
+ #>>9 byte 50 reserved
185
+ # WPWin 5.1 Application Resource Library added for WPWin 5.1
186
+ #>>9 byte 51 WordPerfect application resource library
187
+ >>9 byte 69 WordPerfect dialog file
188
+ # From: Joerg Jenderek
189
+ # Note: found in sub directory WritingTools inside WordPerfect 2021 program directory
190
+ >>9 byte 70 WordPerfect Writing Tools
191
+ #!:mime application/octet-stream
192
+ !:mime application/x-wordperfect-cbt
193
+ # like: Wt13cbede.cbt Wt13cbeit.cbt Wt13cbefr.cbt WT21cbede.cbt Wt13cbeEN.CBD WT21cbeEN.CBD
194
+ !:ext cbd/cbt
195
+ >>9 byte 76 WordPerfect button bar
196
+ >>9 default x
197
+ >>>9 byte x Corel WordPerfect: Unknown filetype %d
198
+ # Corel Shell
199
+ >8 byte 2
200
+ >>9 byte 1 Corel shell macro
201
+ >>9 byte 10 Corel shell definition
202
+ >>9 default x
203
+ >>>9 byte x Corel Shell: Unknown filetype %d
204
+ # Corel Notebook
205
+ >8 byte 3
206
+ >>9 byte 1 Corel Notebook macro
207
+ >>9 byte 2 Corel Notebook help file
208
+ >>9 byte 3 Corel Notebook keyboard file
209
+ >>9 byte 10 Corel Notebook definition
210
+ >>9 default x
211
+ >>>9 byte x Corel Notebook: Unknown filetype %d
212
+ # Corel Calculator
213
+ >8 byte 4
214
+ >>9 byte 2 Corel Calculator help file
215
+ >>9 default x
216
+ >>>9 byte x Corel Calculator: Unknown filetype %d
217
+ # Corel File Manager
218
+ >8 byte 5
219
+ >>9 default x
220
+ >>>9 byte x Corel File Manager: Unknown filetype %d
221
+ # Corel Calendar
222
+ >8 byte 6
223
+ >>9 byte 2 Corel Calendar help file
224
+ >>9 byte 10 Corel Calendar data file
225
+ >>9 default x
226
+ >>>9 byte x Corel Calendar: Unknown filetype %d
227
+ # Corel Program Editor/Ed Editor
228
+ >8 byte 7
229
+ >>9 byte 1 Corel Editor macro
230
+ >>9 byte 2 Corel Editor help file
231
+ >>9 byte 3 Corel Editor keyboard file
232
+ >>9 byte 25 Corel Editor macro resource file
233
+ >>9 default x
234
+ >>>9 byte x Corel Program Editor/Ed Editor: Unknown filetype %d
235
+ # Corel Macro Editor
236
+ >8 byte 8
237
+ >>9 byte 1 Corel Macro editor macro
238
+ >>9 byte 2 Corel Macro editor help file
239
+ >>9 byte 3 Corel Macro editor keyboard file
240
+ >>9 default x
241
+ >>>9 byte x Corel Macro Editor: Unknown filetype %d
242
+ # Corel Plan Perfect
243
+ >8 byte 9
244
+ >>9 default x
245
+ >>>9 byte x Corel Plan Perfect: Unknown filetype %d
246
+ # Corel DataPerfect
247
+ >8 byte 10
248
+ # CHECK: Don't these belong into product 9?
249
+ >>9 byte 1 Corel PlanPerfect macro
250
+ >>9 byte 2 Corel PlanPerfect help file
251
+ >>9 byte 3 Corel PlanPerfect keyboard file
252
+ >>9 byte 10 Corel PlanPerfect worksheet
253
+ >>9 byte 15 Corel PlanPerfect printer definition
254
+ >>9 byte 18 Corel PlanPerfect graphic definition
255
+ >>9 byte 19 Corel PlanPerfect data
256
+ >>9 byte 20 Corel PlanPerfect temporary printer
257
+ >>9 byte 25 Corel PlanPerfect macro resource data
258
+ >>9 default x
259
+ >>>9 byte x Corel DataPerfect: Unknown filetype %d
260
+ # Corel Mail
261
+ >8 byte 11
262
+ >>9 byte 2 Corel Mail help file
263
+ >>9 byte 5 Corel Mail distribution list
264
+ >>9 byte 10 Corel Mail out box
265
+ >>9 byte 11 Corel Mail in box
266
+ >>9 byte 20 Corel Mail users archived mailbox
267
+ >>9 byte 21 Corel Mail archived message database
268
+ >>9 byte 22 Corel Mail archived attachments
269
+ >>9 default x
270
+ >>>9 byte x Corel Mail: Unknown filetype %d
271
+ # Corel Printer
272
+ >8 byte 12
273
+ >>9 byte 11 Corel Printer temporary file
274
+ >>9 default x
275
+ >>>9 byte x Corel Printer: Unknown filetype %d
276
+ # Corel Scheduler
277
+ >8 byte 13
278
+ >>9 byte 2 Corel Scheduler help file
279
+ >>9 byte 10 Corel Scheduler in file
280
+ >>9 byte 11 Corel Scheduler out file
281
+ >>9 default x
282
+ >>>9 byte x Corel Scheduler: Unknown filetype %d
283
+ # Corel WordPerfect Office
284
+ >8 byte 14
285
+ >>9 byte 10 Corel GroupWise settings file
286
+ >>9 byte 17 Corel GroupWise directory services
287
+ >>9 byte 43 Corel GroupWise settings file
288
+ >>9 default x
289
+ >>>9 byte x Corel WordPerfect Office: Unknown filetype %d
290
+ # Corel DrawPerfect
291
+ # URL: http://fileformats.archiveteam.org/wiki/Corel_Presentations
292
+ # Update: Joerg Jenderek
293
+ >8 byte 15
294
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/s/shw-wp-2.trid.xml
295
+ # Note: called "WordPerfect Presentations (v2)" by TrID and
296
+ # "Corel Presentation" with version "7-8-9" by DROID via PUID fmt/877
297
+ >>9 byte 10 WordPerfect Presentation
298
+ #!:mime application/octet-stream
299
+ #!:mime application/vnd.wordperfect
300
+ !:mime application/x-drawperfect-shw
301
+ # like: BENEFITS.SHW chartbar.shw chartbul.shw chartgal.shw chartorg.shw fig-demo.shw figurgal.shw mastrgal.shw scuba.shw tutorial.shw
302
+ !:ext shw
303
+ # pointer to document area like: 10h
304
+ >>>4 ulelong !0x10 \b, at %#x document area
305
+ # according to TrID this is nil
306
+ >>>12 ulelong !0 \b, at 0xC %#x
307
+ # search for embedded WP file like in tutorial.shw
308
+ #>>>16 search/638/sb \xffWPC WPC_MAGIC_FOUND
309
+ # GRR: indirect call leads to recursion! WHY?
310
+ #>>>>&0 indirect x \b; contains
311
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/s/shw-wp-3.trid.xml
312
+ # Note: called "WordPerfect/Corel Presentations (v3)" by TrID and
313
+ # "Corel Presentation" with version "3" by DROID via PUID fmt/878
314
+ >>9 byte 15 Corel Presentation
315
+ #!:mime application/octet-stream
316
+ #!:mime application/vnd.wordperfect
317
+ !:mime application/x-drawperfect-shw
318
+ # like: FIG_ANIM.SHW presenta.shw
319
+ !:ext shw
320
+ # pointer to document area like: 1ah
321
+ >>>4 ulelong !0x1a \b, at %#x document area
322
+ # according to TrID this is nil
323
+ >>>12 ulelong !0 \b, at 0xC %#x
324
+ # reserved like: 3
325
+ >>>16 ulelong !0x3 \b, at 0x10 %#x
326
+ # file size, not including pad characters at EOF
327
+ >>>0x14 ulelong x \b, %u bytes
328
+ # search for embedded WP file like in foo
329
+ #>>>24 search/638/sb \xffWPC WPC_MAGIC_FOUND
330
+ # GRR: indirect call leads to recursion! WHY?
331
+ #>>>>&0 indirect x \b; contains
332
+ # embedded inside Compound Document variant handled by ./ole2compounddocs
333
+ >>9 byte 16 Corel Presentation (embeded)
334
+ #!:mime application/octet-stream
335
+ #!:mime application/vnd.wordperfect
336
+ !:mime application/x-corelpresentations
337
+ # like: PerfectOffice_MAIN
338
+ !:ext /
339
+ # pointer to document area like: 1ah
340
+ >>>4 ulelong !0x1a \b, at %#x document area
341
+ >>>12 ulelong !0 \b, at 0xC %#x
342
+ # reserved like: 3
343
+ >>>16 ulelong !0x3 \b, at 0x10 %#x
344
+ # file size, not including pad characters at EOF
345
+ >>>0x14 ulelong x \b, %u bytes
346
+ # search for embedded WP file
347
+ #>>>24 search/638/sb \xffWPC WPC_MAGIC_FOUND
348
+ # GRR: indirect call leads to recursion! WHY?
349
+ #>>>>&0 indirect x \b; contains
350
+ >>9 default x
351
+ >>>9 byte x Corel DrawPerfect: Unknown filetype %d
352
+ # Corel LetterPerfect
353
+ >8 byte 16
354
+ >>9 default x
355
+ >>>9 byte x Corel LetterPerfect: Unknown filetype %d
356
+ # Corel Terminal
357
+ >8 byte 17
358
+ >>9 byte 10 Corel Terminal resource data
359
+ >>9 byte 11 Corel Terminal resource data
360
+ >>9 byte 43 Corel Terminal resource data
361
+ >>9 default x
362
+ >>>9 byte x Corel Terminal: Unknown filetype %d
363
+ # Corel loadable file
364
+ >8 byte 18
365
+ >>9 byte 10 Corel loadable file
366
+ >>9 byte 11 Corel GUI loadable text
367
+ >>9 byte 12 Corel graphics resource data
368
+ >>9 byte 13 Corel printer settings file
369
+ >>9 byte 14 Corel port definition file
370
+ >>9 byte 15 Corel print queue parameters
371
+ >>9 byte 16 Corel compressed file
372
+ >>9 default x
373
+ >>>9 byte x Corel loadable file: Unknown filetype %d
374
+ >>15 byte 0 \b, optimized for Intel
375
+ >>15 byte 1 \b, optimized for Non-Intel
376
+ # Network service
377
+ >8 byte 20
378
+ >>9 byte 10 Corel Network service msg file
379
+ >>9 byte 11 Corel Network service msg file
380
+ >>9 byte 12 Corel Async gateway login msg
381
+ >>9 byte 14 Corel GroupWise message file
382
+ >>9 default x
383
+ >>>9 byte x Corel Network service: Unknown filetype %d
384
+ # GroupWise
385
+ >8 byte 31
386
+ >>9 byte 20 GroupWise admin domain database
387
+ >>9 byte 21 GroupWise admin host database
388
+ >>9 byte 23 GroupWise admin remote host database
389
+ >>9 byte 24 GroupWise admin ADS deferment data file
390
+ >>9 default x
391
+ >>>9 byte x GroupWise: Unknown filetype %d
392
+ # Corel Writing Tools WT*.*
393
+ # From: Joerg Jenderek
394
+ # URL: https://support.corel.com/hc/en-us/articles/215876258-Writing-Tools-Spell-Check-Dictionary-does-not-work-in-WordPerfect-X5
395
+ # http://wordperfect.helpmax.net/en/editing-and-formatting-documents/using-the-writing-tools/working-with-user-word-lists/
396
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/u/uwl-wp.trid.xml
397
+ >8 byte 32
398
+ >>9 byte 10 Corel Writing Tools User Word List
399
+ #!:mime application/octet-stream
400
+ !:mime application/x-wordperfect-wordlist
401
+ # personal user word list UWL under user directory like: WTDE.UWL WTUS.UWL WT21DE.UWL WT21US.UWL WT13DE.UWL ...
402
+ # and "template" SAV/HWL variant under program directory like: wt13en.hwl Wt13de.sav Wt13it.sav wt13ru.sav WT21us.sav Wtcz.sav ...
403
+ !:ext uwl/hwl/sav
404
+ # jump to document area with some marker and word list
405
+ >>>(4.l) ubyte x
406
+ # look for beginning of word list starting mostly with letter a as UTF-16 like: Wt13es.sav
407
+ # but not found in russian wt13ru.sav
408
+ >>>>&0 search/91/sb a\0
409
+ # word list starting like: "acsesory\022accessory.\001\026acomodate\026accommodate4\001"
410
+ >>>>>&0 lestring16 x (...%-.33s...)
411
+ # pointer to document area like: 200h
412
+ >>>4 ulelong !0x200 \b, at %#x document area
413
+ # file size, not including pad characters at EOF
414
+ >>>0x14 uleshort x \b, %u bytes
415
+ # IntelliTAG
416
+ >8 byte 33
417
+ >>9 byte 10 IntelliTAG (SGML) compiled DTD
418
+ >>9 default x
419
+ >>>9 byte x IntelliTAG: Unknown filetype %d
420
+ # Summary: Corel WordPerfect WritingTools advise part
421
+ # From: Joerg Jenderek
422
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/a/adv-wp.trid.xml
423
+ >8 byte 34
424
+ >>9 byte 11 Corel WordPerfect dictionary advise
425
+ #!:mime application/octet-stream
426
+ !:mime application/x-wordperfect-adv
427
+ #!:mime application/vnd.wordperfect.adv
428
+ # like: WT21de.adv Wt13de.adv Wt13es.adv Wt13fr.adv wt13us.adv
429
+ !:ext adv
430
+ # advise text part often start with tag like: 580A
431
+ #>>>(16.s) ubequad x ADVISE PART %#llx
432
+ # part of advise text like: "This is too informal for most writing."
433
+ >>>(16.s+16) string x (...%-.33s...)
434
+ # everything else
435
+ >8 default x
436
+ >>8 byte x Unknown Corel/Wordperfect product %d,
437
+ >>>9 byte x file type %d
438
+ >10 byte 0 \b, v5.
439
+ # version of WP file; 2.1~WP 8.0
440
+ # major version of WP file like: 1 2
441
+ >10 byte !0 \b, v%d.
442
+ # minor version of WP file like: 0 1
443
+ >11 byte x \b%d
444
+
445
+ # Hancom HWP (Hangul Word Processor)
446
+ # Hangul Word Processor 3.0 through 97 used HWP 3.0 format.
447
+ # URL: https://www.hancom.com/etc/hwpDownload.do
448
+ 0 string HWP\ Document\ File Hancom HWP (Hangul Word Processor) file, version 3.0
449
+ !:ext hwp
450
+
451
+ # CosmicBook, from Benoit Rouits
452
+ 0 string CSBK Ted Neslson's CosmicBook hypertext file
453
+
454
+ 2 string EYWR AmigaWriter file
455
+
456
+ # chi: file(1) magic for ChiWriter files
457
+ 0 string \\1cw\ ChiWriter file
458
+ >5 string >\0 version %s
459
+ 0 string \\1cw ChiWriter file
460
+
461
+ # Quark Express from https://www.garykessler.net/library/file_sigs.html
462
+ 2 string IIXPR3 Intel Quark Express Document (English)
463
+ 2 string IIXPRa Intel Quark Express Document (Korean)
464
+ 2 string MMXPR3 Motorola Quark Express Document (English)
465
+ !:mime application/x-quark-xpress-3
466
+ 2 string MMXPRa Motorola Quark Express Document (Korean)
467
+
468
+ # From: Joerg Jenderek
469
+ # URL: http://fileformats.archiveteam.org/wiki/PageMaker
470
+ # https://en.wikipedia.org/wiki/Adobe_PageMaker
471
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/p
472
+ # pm4-pagemaker.trid.xml
473
+ # pm5-pagemaker.trid.xml
474
+ # Note: since version 6 in 1995 called Adobe PageMaker and
475
+ # embedded in Compound Document handled by ./ole2compounddocs
476
+ # mainly tested little endian variant
477
+ 4 ubelong =0x0000FF99
478
+ >0 use PageMaker
479
+ # big endian variant
480
+ 4 ubelong =0x000099FF
481
+ >0 use \^PageMaker
482
+ # display information of Aldus/Adobe PageMaker document/publication
483
+ 0 name PageMaker
484
+ >110 uleshort <0x0600 Aldus
485
+ >110 uleshort >0x05FF Adobe
486
+ >110 uleshort x PageMaker
487
+ # "MP" marker for newer version 4 and above according to TrID
488
+ #>108 string x \b, MARKER "%.2s"
489
+ # http://www.nationalarchives.gov.uk/pronom/fmt/876
490
+ !:mime application/vnd.pagemaker
491
+ #!:mime application/x-pagemaker
492
+ # different file name extensions are used depending on version
493
+ # older version like 3
494
+ >110 uleshort/256 =0 document
495
+ # https://www.macdisk.com/macsigen.php
496
+ !:apple ALB3ALD3
497
+ # PT3 for template and no example for PageMaker document/publication with PM3 extension
498
+ !:ext pm3/pt3
499
+ >110 uleshort/256 =4 document
500
+ !:apple ALD4ALB4
501
+ # no example for PT4 template
502
+ !:ext pm4/pt4
503
+ >110 uleshort/256 =5 document
504
+ !:apple ALD5ALB5
505
+ # no example for PT5 template
506
+ !:ext pm5/pt5
507
+ >110 uleshort =0x0600 document
508
+ !:apple ALD6ALB6
509
+ # PT6 for template
510
+ !:ext pm6/pt6
511
+ # HOWTO to distinguish version 7 from 6.5 ?
512
+ >110 uleshort =0x0632 document
513
+ !:apple AD65AB65
514
+ # no example for T65 template
515
+ !:ext p65/t65/pmd/pmt
516
+ # version 7 with PMT extension for template
517
+ #!:ext pmd/pmt
518
+ #!:apple ????PUBF
519
+ # endian marker FF 99 for little endian
520
+ >6 ubyte =0xFF \b, little-endian
521
+ >6 ubyte =0x99 \b, big-endian
522
+ # newer numeric version like: 4 5 6 6.50
523
+ #>110 uleshort x \b, VERSION=%#x
524
+ >110 uleshort >0x03FF
525
+ >>110 uleshort/256 x \b, version %u
526
+ >>110 uleshort%256 >0 \b.%u
527
+ # older version like 3
528
+ >110 uleshort <0x0400 \b, maybe version 3
529
+
530
+ # adobe indesign (document, whatever...) from querkan
531
+ 0 belong 0x0606edf5 Adobe InDesign
532
+ >16 string DOCUMENT Document
533
+
534
+ #------------------------------------------------------------------------------
535
+ # ichitaro456: file(1) magic for Just System Word Processor Ichitaro
536
+ #
537
+ # Contributor kenzo-:
538
+ # Reversed-engineered JS Ichitaro magic numbers
539
+ #
540
+
541
+ 0 string DOC
542
+ >43 byte 0x14 Just System Word Processor Ichitaro v4
543
+ !:mime application/x-ichitaro4
544
+ >144 string JDASH application/x-ichitaro4
545
+
546
+ 0 string DOC
547
+ >43 byte 0x15 Just System Word Processor Ichitaro v5
548
+ !:mime application/x-ichitaro5
549
+
550
+ 0 string DOC
551
+ >43 byte 0x16 Just System Word Processor Ichitaro v6
552
+ !:mime application/x-ichitaro6
553
+
554
+ # Type: Freemind mindmap documents
555
+ # From: Jamie Thompson <debian-bugs@jamie-thompson.co.uk>
556
+ 0 string/w \<map\ version Freemind document
557
+ !:mime application/x-freemind
558
+
559
+ # Type: Freeplane mindmap documents
560
+ # From: Felix Natter <fnatter@gmx.net>
561
+ 0 string/w \<map\ version="freeplane Freeplane document
562
+ !:mime application/x-freeplane
563
+
564
+ # Type: Scribus
565
+ # From: Werner Fink <werner@suse.de>
566
+ 0 string \<SCRIBUSUTF8\ Version Scribus Document
567
+ 0 string \<SCRIBUSUTF8NEW\ Version Scribus Document
568
+ !:mime application/x-scribus
569
+
570
+ # help files .hlp compiled from html and used by gfxboot added by Joerg Jenderek
571
+ # markups page=0x04,label=0x12, followed by strings like "opt" or "main" and title=0x14
572
+ 0 ulelong&0x8080FFFF 0x00001204 gfxboot compiled html help file
573
+
574
+ # From: Joerg Jenderek
575
+ # URL: https://en.wikipedia.org/wiki/StarOffice
576
+ # Reference: http://mark0.net/download/triddefs_xml.7z
577
+ # /defs/t/thm-staroffice.trid.xml
578
+ # Note: used in Star-, Open- and Libre-Office
579
+ # named as soffice.StarConfigFile.6 or OpenOffice.org configuration by others
580
+ 0 ubeshort 0x0400
581
+ # non nil gap
582
+ #>(2.s+8) ubequad x \b, gap %#16.16llx
583
+ # test for null value in gap after theme name maybe unreliable
584
+ #>(2.s+9) ubyte 0 \b, 0-byte
585
+ # look for keyword GALRESRV near the end
586
+ # "C:\Program Files (x86)\StarOffice6.0\share\gallery\sg27.thm" Navigation, 238 objects
587
+ #>0 search/8415 GALRESRV \b, GALRESRV found
588
+ # "neues thema6.thm" MorePictures, 315 objects
589
+ #>0 search/19299 GALRESRV \b, GALRESRV FOUND
590
+ #>2 uleshort x \b, name length %u
591
+ # skip file2147.chk by check for positive name length like for sg16.thm "3D"
592
+ >2 uleshort >0
593
+ # skip dBase printer form T6.PRF with misidentified gallery
594
+ # name :\DBASE\IV\T6.txts by check for 1st object name or RESRV keyword
595
+ # https://www.clicketyclick.dk/databases/xbase/xbase/dbase_ex.zip
596
+ # template/t6/with_data/T6.PRF
597
+ # by first char of object name or RESRV part of keyword GALRESRV
598
+ >>(2.s+13) ubyte >0x1F StarOffice Gallery theme
599
+ !:mime application/x-stargallery-thm
600
+ # thm is also used for JPEG thumbnail images
601
+ !:ext thm
602
+ # gallery name often 1 word like: 3D sounds Diagrams Flussdiagramme Fotos
603
+ # or like private://gallery/hidden/imgppt "Cisco - WAN - LAN"
604
+ >>>2 pstring/h x %s
605
+ # number of objects
606
+ >>>(2.s+4) ulelong x \b, %u object
607
+ # plural s
608
+ >>>(2.s+4) ulelong !1 \bs
609
+ # if available then display first object name
610
+ >>>(2.s+4) ulelong >0
611
+ # partial file name, URL or internal name like "dd2*" of 1st object or RESRV
612
+ >>>>(2.s+11) pstring/h x \b, 1st %s
613
+
614
+ # From: Joerg Jenderek
615
+ # URL: http://fileformats.archiveteam.org/wiki/StarOffice_Gallery
616
+ # Note: used in Star-, Open- and Libre-Office and found in directories like
617
+ # %APPDATA%\Roaming\LibreOffice\4\user\gallery
618
+ # $HOME/.config/libreoffice/4/user/gallery
619
+ 0 string SGA3 StarOffice Gallery thumbnails
620
+ # Unknown like 0x04000?0001000142
621
+ #>4 ubequad x \b, UNKNOWN %#16.16llx
622
+ #!:mime application/x-sdg
623
+ !:mime application/x-stargallery-sdg
624
+ !:ext sdg
625
+ # display image magic for debugging purpose like 'BM'
626
+ # looking like PC bitmap, Windows 3.x format with unknown compression
627
+ #>11 string x \b, image magic '%-.2s'
628
+ # inspect 1st GALLERY thumbnail magic by ./images with 1 space at end
629
+ #>11 indirect x \b; contains
630
+
@@ -0,0 +1,23 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: wsdl,v 1.6 2021/04/26 15:56:00 christos Exp $
4
+ # wsdl: PHP WSDL Cache, https://www.php.net/manual/en/book.soap.php
5
+ # Cache format extracted from source:
6
+ # https://svn.php.net/viewvc/php/php-src/trunk/ext/soap/php_sdl.c?revision=HEAD&view=markup
7
+ # Requires file >= 5.05
8
+ # By Elan Ruusamae <glen@delfi.ee>, Patryk Zawadzki <patrys@pld-linux.org>, 2010-2011
9
+ 0 string wsdl PHP WSDL cache,
10
+ >4 byte x version %#02x
11
+ >6 ledate x \b, created %s
12
+
13
+ # uri
14
+ >10 lelong <0x7fffffff
15
+ >>10 pstring/l x \b, uri: "%s"
16
+
17
+ # source
18
+ >>>&0 lelong <0x7fffffff
19
+ >>>>&-4 pstring/l x \b, source: "%s"
20
+
21
+ # target_ns
22
+ >>>>>&0 lelong <0x7fffffff
23
+ >>>>>>&-4 pstring/l x \b, target_ns: "%s"
@@ -0,0 +1,25 @@
1
+ #------------------------------------------------------------------------------
2
+ # x68000: file(1) magic for the Sharp Home Computer
3
+ # v1.0
4
+ # Fabio R. Schmidlin <sd-snatcher@users.sourceforge.net>
5
+
6
+ # Yanagisawa PIC picture
7
+ 0 string PIC
8
+ >3 search/0x200 \x1A
9
+ >>&0 search/0x200 \x0
10
+ >>>&0 ubyte 0 Yanagisawa PIC image file,
11
+ >>>>&0 ubyte&15 0 model: X68000,
12
+ >>>>&0 ubyte&15 1 model: PC-88VA,
13
+ >>>>&0 ubyte&15 2 model: FM-TOWNS,
14
+ >>>>&0 ubyte&15 3 model: MAC,
15
+ >>>>&0 ubyte&15 15 model: Generic,
16
+ >>>>&3 ubeshort x %dx
17
+ >>>>&5 ubeshort x \b%d,
18
+ >>>>&1 ubeshort 4 colors: 16
19
+ >>>>&1 ubeshort 8 colors: 256
20
+ >>>>&1 ubeshort 12 colors: 4096
21
+ >>>>&1 ubeshort 15 colors: 32768
22
+ >>>>&1 ubeshort 16 colors: 65536
23
+ >>>>&1 ubeshort >16 colors: %d-bit
24
+
25
+