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,68 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: msooxml,v 1.19 2023/03/14 19:46:15 christos Exp $
4
+ # msooxml: file(1) magic for Microsoft Office XML
5
+ # From: Ralf Brown <ralf.brown@gmail.com>
6
+
7
+ # .docx, .pptx, and .xlsx are XML plus other files inside a ZIP
8
+ # archive. The first member file is normally "[Content_Types].xml".
9
+ # but some libreoffice generated files put this later. Perhaps skip
10
+ # the "[Content_Types].xml" test?
11
+ # Since MSOOXML doesn't have anything like the uncompressed "mimetype"
12
+ # file of ePub or OpenDocument, we'll have to scan for a filename
13
+ # which can distinguish between the three types
14
+
15
+ 0 name msooxml
16
+ >0 string word/ Microsoft Word 2007+
17
+ !:mime application/vnd.openxmlformats-officedocument.wordprocessingml.document
18
+ !:ext docx
19
+ >0 string ppt/ Microsoft PowerPoint 2007+
20
+ !:mime application/vnd.openxmlformats-officedocument.presentationml.presentation
21
+ !:ext pptx
22
+ >0 string xl/ Microsoft Excel 2007+
23
+ !:mime application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
24
+ !:ext xlsx
25
+ >0 string visio/ Microsoft Visio 2013+
26
+ !:mime application/vnd.ms-visio.drawing.main+xml
27
+ >0 string AppManifest.xaml Microsoft Silverlight Application
28
+ !:mime application/x-silverlight-app
29
+
30
+ # start by checking for ZIP local file header signature
31
+ 0 string PK\003\004
32
+ !:strength +10
33
+ # make sure the first file is correct
34
+ >0x1E use msooxml
35
+ >0x1E default x
36
+ >>0x1E regex \\[Content_Types\\]\\.xml|_rels/\\.rels|docProps|customXml
37
+ # skip to the second local file header
38
+ # since some documents include a 520-byte extra field following the file
39
+ # header, we need to scan for the next header
40
+ >>>(18.l+49) search/6000 PK\003\004
41
+ # now skip to the *third* local file header; again, we need to scan due to a
42
+ # 520-byte extra field following the file header
43
+ >>>>&26 search/6000 PK\003\004
44
+ # and check the subdirectory name to determine which type of OOXML
45
+ # file we have. Correct the mimetype with the registered ones:
46
+ # https://technet.microsoft.com/en-us/library/cc179224.aspx
47
+ >>>>>&26 use msooxml
48
+ >>>>>&26 default x
49
+ # OpenOffice/Libreoffice orders ZIP entry differently, so check the 4th file
50
+ >>>>>>&26 search/6000 PK\003\004
51
+ >>>>>>>&26 use msooxml
52
+ # Some OOXML generators add an extra customXml directory. Check another file.
53
+ >>>>>>>&26 default x
54
+ >>>>>>>>&26 search/6000 PK\003\004
55
+ >>>>>>>>>&26 use msooxml
56
+ >>>>>>>>>&26 default x Microsoft OOXML
57
+ >>>>>>>&26 default x Microsoft OOXML
58
+ >>>>>&26 default x Microsoft OOXML
59
+ >>0x1E regex \\[trash\\]
60
+ >>>&26 search/6000 PK\003\004
61
+ >>>>&26 search/6000 PK\003\004
62
+ >>>>>&26 use msooxml
63
+ >>>>>&26 default x
64
+ >>>>>>&26 search/6000 PK\003\004
65
+ >>>>>>>&26 use msooxml
66
+ >>>>>>>&26 default x Microsoft OOXML
67
+ >>>>>>&26 default x Microsoft OOXML
68
+ >>>>>&26 default x Microsoft OOXML
@@ -0,0 +1,222 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: msvc,v 1.11 2022/01/17 17:17:30 christos Exp $
4
+ # msvc: file(1) magic for msvc
5
+ # "H. Nanosecond" <aldomel@ix.netcom.com>
6
+ # Microsoft visual C
7
+ #
8
+ # I have version 1.0
9
+
10
+ # .aps
11
+ 0 string HWB\000\377\001\000\000\000 Microsoft Visual C .APS file
12
+
13
+ # .ide
14
+ #too long 0 string \102\157\162\154\141\156\144\040\103\053\053\040\120\162\157\152\145\143\164\040\106\151\154\145\012\000\032\000\002\000\262\000\272\276\372\316 MSVC .ide
15
+ 0 string \102\157\162\154\141\156\144\040\103\053\053\040\120\162\157 MSVC .ide
16
+
17
+ # .res
18
+ 0 string \000\000\000\000\040\000\000\000\377 MSVC .res
19
+ 0 string \377\003\000\377\001\000\020\020\350 MSVC .res
20
+ 0 string \377\003\000\377\001\000\060\020\350 MSVC .res
21
+
22
+ #.lib
23
+ # URL: https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B
24
+ # http://fileformats.archiveteam.org/wiki/Microsoft_Library
25
+ # http://fileformats.archiveteam.org/wiki/OMF
26
+ # Reference: http://mark0.net/download/triddefs_xml.7z/defs/l/lib-msvc.trid.xml
27
+ # https://pierrelib.pagesperso-orange.fr/exec_formats/OMF_v1.1.pdf
28
+ # Update: Joerg Jenderek
29
+ #0 string \360\015\000\000 Microsoft Visual C library
30
+ #0 string \360\075\000\000 Microsoft Visual C library
31
+ #0 string \360\175\000\000 Microsoft Visual C library
32
+ # test for RecordType~LibraryHeaderRecord=0xF0 + RecordLength=???Dh + dictionary offset is multiple of 0x200
33
+ 0 ubelong&0xFF0f80ff =0xF00d0000
34
+ # Microsoft Visual C library (strength=70) before MIDI SysEx messages (strength=50) handled by ./sysex
35
+ #!:strength +0
36
+ # test for valid 2nd RecordType~Translator Header Record=THEADR=80h or LHEADR=82h
37
+ >(1.s+3) ubyte&0xFD =0x80
38
+ >>0 use omf-lib
39
+ # display information about Microsoft Visual C/OMF library
40
+ 0 name omf-lib
41
+ # RecordType~LibraryHeaderRecord=0xF0
42
+ #>0 byte 0xF0 Microsoft Visual C library
43
+ # the above description was used in file version 5.41
44
+ >0 byte 0xF0 Microsoft Visual C/OMF library
45
+ #>0 byte 0xF0 relocatable Object Module Format (OMF) libray
46
+ #!:mime application/octet-stream
47
+ !:mime application/x-omf-lib
48
+ !:ext lib
49
+ # 1st record data length like 13=0Dh 29=1Dh 61=3Dh 125=7Dh 509=01FDh ... 32765=7FFDh
50
+ #>1 uleshort x \b, 1st record data length %u
51
+ #>1 uleshort x \b, 1st record data length %#x
52
+ # 2**4=16 <= RecordLength+3 = PageSize = 2**n {16 32 512 no examples 64 128 256 1024 2048 ...32768} <= 2**15=32768
53
+ >1 uleshort+3 x \b, page size %u
54
+ # dictionary offset like: 400h 600h a00h c00h 1200h 1800h 2400h 5600h 12800h 19200h 28a00h
55
+ >3 ulelong x \b, at %#x dictionary
56
+ # dictionary block a 512 bytes; the first 37 bytes correspond to the 37 buckets
57
+ #>(3.l) ubequad x (%#16.16llx...)
58
+ # dictionary size; length in 512-byte blocks; a prime number? like:
59
+ # 1 2 3 4 5 6 7 9 11 13 15 16 18 21 22 23 24 25 31 50 53 89 101 117 277
60
+ >7 uleshort x with %u block
61
+ # plurals s
62
+ >7 uleshort >1 \bs
63
+ # If dictionary byte 38 (FFLAG) has the value 255, there is no space left
64
+ >(3.l+37) ubyte <0xFF (FFLAG=%#x)
65
+ >(3.l+37) ubyte =0xFF (FFLAG=full)
66
+ # dictionary entry; length byte of following symbol, the following text bytes of symbol, two bytes specifies the page number
67
+ # like: dbfntx1! DBFNTX.LIB zlibCompileFlags_ ZLIB.LIB atoi! mwlibc.lib
68
+ >(3.l+38) pstring x 1st entry %s
69
+ # like: 1 33 41 47 458 8783
70
+ >>&0 uleshort x in page %u
71
+ # library flags; 0 or 1, but WHAT IS 0x4d in MOUSE.LIB ?
72
+ >9 ubyte >1 \b, flags %#x
73
+ >9 ubyte =1 case sensitive
74
+ # In the library after header comes first object module with a Library Module Header Record (LHEADR=82h)
75
+ # but in examples Translator Header Record (THEADR=80h) which is handled identically
76
+ >(1.s+3) ubyte x \b, 2nd record
77
+ >(1.s+3) ubyte !0x80 (type %#x)
78
+ #>(1.s+4) uleshort x \b, 2nd record data length %u
79
+ # Module name often source name like "dos\crt0.asm" in mlibce.lib or "QB4UTIL.ASM" in QB4UTIL.LIB
80
+ # or "C:\Documents and Settings\Allan Campbell\My Documents\FDOSBoot\zlib\zutil.c" in ZLIB.LIB
81
+ # or title like "87INIT" in FP87.LIB or "ACOSASIN" in MATHC.LIB or "Copyright" in calc-bcc.lib
82
+ >(1.s+6) pstring x "%s"
83
+ # 2nd record checksum
84
+ #>>&0 ubyte x checksum %#x
85
+ # 3rd RecordType: 96h~LNAMES 88h~COMENT
86
+ >>&1 ubyte x \b, 3rd record
87
+ >>&1 ubyte !0x88
88
+ >>>&-1 ubyte !0x96
89
+ # 3rd unusual record type
90
+ >>>>&-1 ubyte x (type %#x)
91
+ # 3rd record is a List of Names Record (LNAMES=96h)
92
+ >>&1 ubyte =0x96 LNAMES
93
+ # LNAMES record length like: 2 15 19
94
+ #>>>&0 uleshort x \b, LNAMES record length %u
95
+ >>>&0 uleshort >2
96
+ # 1st LNAME string length; null is valid; maximal 255
97
+ #>>>>&0 ubyte x 1st LNAME length %u
98
+ >>>>&0 ubyte =0
99
+ # 2nd LNAME length like: 4 7 8 17 31
100
+ #>>>>>&0 ubyte x 2nd LNAME length %u
101
+ # name used for segment, class, group, overlay, etc like:
102
+ # CODE (mwlibc.lib) _TEXT32 (JMPPM32.LIB) _OVLCODE (WOVL.LIB)
103
+ >>>>>&0 pstring x %s
104
+ # 3rd LNAME length like: 4 5
105
+ #>>>>>>&0 ubyte x 3rd LNAME length %u
106
+ # like: DATA (mwlibc.lib) CODE (JMPPM32.LIB) _TEXT (EMU87.LIB)
107
+ >>>>>>&0 pstring x %s
108
+ # maybe 4th LNAME length like: 4 6
109
+ >>>>>>>&0 ubyte <44
110
+ # like: DATA (DEBUG.LIB) DGROUP (mwlibc.lib MOUSE.LIB)
111
+ >>>>>>>>&-1 pstring x %s
112
+ # 3rd record is a COMMENT (Including all comment class extensions)
113
+ >>&1 ubyte =0x88 COMMENT
114
+ # comment record length like: 3 FLIB7M.LIB 1Bh 1Eh 23h 27h 2Bh 30h freetype-bcc.lib
115
+ #>>>&0 uleshort x \b, record length %#x
116
+ # real comment length = record length - 1 (comment type) - 1 (comment Class) - 1 (checksum) -1 (char count)
117
+ # like: 2 LIBFL.LIB 4 "UUID" 5 "dscap" 6 "int386" 7 "qb4util" 8 "AMSGEXIT" 16 REXX.LIB 20 27 35 44 freetype-bcc.lib
118
+ #>>>>&-2 uleshort-4 >0 \b, comment length %u
119
+ # check that record contain at least comment type (1 byte), comment class (1 byte), checksum (1 byte)
120
+ # probably always true
121
+ >>>&0 uleshort >2
122
+ # comment type: 80h~NP~no purge bit 40h~NL~no list bit
123
+ #>>>>&0 ubyte !0 Type %#x
124
+ >>>>&0 ubyte &0x80 Preserved
125
+ # no example
126
+ >>>>&0 ubyte &0x40 NoList
127
+ # comment class like: 0~Translator A0~OMF extensions A3~LIBMOD A1~New OMF extensions AA~UNKNOWN
128
+ >>>>&1 ubyte x class=%#x
129
+ # check that comment record contains at least real content
130
+ >>>>&-2 uleshort >3
131
+ # Translator comment record (0); it may name the source language or translator
132
+ >>>>>&1 ubyte =0 Translator
133
+ #>>>>>>&0 ubyte x Translator length %u
134
+ # like: "TC86 Borland Turbo C 2.01 " (GEMS.LIB) "TC86 Borland Turbo C++ 3.00" (CATDB.LIB)
135
+ >>>>>>&0 pstring x "%s"
136
+ # OMF extensions comment record (A0); first byte of commentary string identifies subtype
137
+ >>>>>&1 ubyte =0xA0 OMF extensions
138
+ # A0 subtype like: 1~IMPDEF
139
+ >>>>>>&0 ubyte !1 subtype %#x
140
+ # Import Definition Record (Comment Class A0, Subtype 01~IMPDEF)
141
+ >>>>>>&0 ubyte 1 IMPDEF
142
+ # ordinal flag; determines form of Entry Ident field. If nonzero (seems to be 1) Entry is ordinal
143
+ >>>>>>>&0 ubyte !0 ordinal
144
+ # like: IMPORT.LIB DOSCALLS.LIB mlibw.lib mwinlibc.lib REXX.LIB
145
+ >>>>>>>>&-1 ubyte >1 %u
146
+ # Internal Name in count, char string format; module name for the imported symbol
147
+ # like: 7 "REXXSAA" 9 11 13 14 15 16 20 21 26 "_Z10_clip_linePdS_S_S_dddd"
148
+ #>>>>>>>&1 ubyte x internal name length %u
149
+ # internal module name like: _DllGetVersion DllGetVersion BezierTerminationTest Copyright
150
+ >>>>>>>&1 pstring x %s
151
+ # module name in count, char string format; DLL name that supplies a matching export symbol
152
+ # like: jpeg62.dll (jpeg-bcc.lib) unrar3.dll (unrar-bcc.lib) REXX (REXX.LIB)
153
+ >>>>>>>>&0 pstring x exported by %s
154
+ # Entry Ident; 16-bit if ordinal flag != 0 or imported name in count, char string format if ordinal flag = 0
155
+ # like: \0 (calc-bcc.lib) DllGetVersion (libtiff-bcc.lib) UTF8ToHtml (libxml2-bcc.lib) xslAddCall (libxslt-bcc.lib)
156
+ #>>>>>>>>>&0 pstring >\0 entry ident %s
157
+ # "New OMF" extensions comment (A1); indicate version of symbolic debug information
158
+ # like: LIBFL.LIB
159
+ >>>>>&1 ubyte =0xA1 New OMF extensions
160
+ # symbolic debug information version n
161
+ >>>>>>&0 ubyte x n=%u
162
+ # symbolic debug information style like: HL~IBM PM Debugger style (LIBFL.LIB) DX~AIX style CV~Microsoft symbol and type style
163
+ >>>>>>>&0 string HL IBM style
164
+ >>>>>>>&0 string DX AIX style
165
+ >>>>>>>&0 string CV Microsoft style
166
+ # LIBMOD comment record (A3) used only by the librarian
167
+ # Microsoft extension added for LIB version 3.07 in macro assembler (MASM 5.0)
168
+ >>>>>&1 ubyte =0xA3 LIBMOD
169
+ # The A3 LIBMOD record contains only the ASCII string of the module name in count char format
170
+ #>>>>>>&0 ubyte x LIBMOD length %u
171
+ # LIBMOD comment record module name without path and extension like:
172
+ # qb4util (QB4UTIL.LIB) affaldiv (libh.lib) crt0 (slibc.lib) clipper (DDDRAWS.LIB) dinpdev (DINPUTS.LIB) UUID (UUID.LIB)
173
+ >>>>>>&0 pstring x %s
174
+ # GRR: WHAT iS THAT? AA foo comment record
175
+ #>>>>>&1 ubyte =0xAA AA-comment
176
+ # like: OS220
177
+ #>>>>>>&0 string x what=%-5.5s
178
+ #
179
+
180
+ #.pch
181
+ 0 string DTJPCH0\000\022\103\006\200 Microsoft Visual C .pch
182
+
183
+ # Summary: Symbol Table / Debug info used by Microsoft compilers
184
+ # URL: https://en.wikipedia.org/wiki/Program_database
185
+ # Reference: https://code.google.com/p/pdbparser/wiki/MSF_Format
186
+ # Update: Joerg Jenderek
187
+ # Note: test only for Windows XP+SP3 x86 , 8.1 x64 arm and 10.1 x86
188
+ # info does only applies partly for older files like msvbvm50.pdb about year 2001
189
+ 0 string Microsoft\ C/C++\040
190
+ # "Microsoft Program DataBase" by TrID
191
+ >24 search/14 \r\n\x1A MSVC program database
192
+ !:mime application/x-ms-pdb
193
+ !:ext pdb
194
+ # "MSF 7.00" "program database 2.00" for msvbvm50.pdb
195
+ >>16 regex \([0-9.]+\) ver %s
196
+ #>>>0x38 search/128123456 /LinkInfo \b with linkinfo
197
+ # "MSF 7.00" variant
198
+ >>0x1e leshort 0
199
+ # PageSize 400h 1000h
200
+ >>>0x20 lelong x \b, %d
201
+ # Page Count
202
+ >>>0x28 lelong x \b*%d bytes
203
+ # "program database 2.00" variant
204
+ >>0x1e leshort !0
205
+ # PageSize 400h
206
+ >>>0x2c lelong x \b, %d
207
+ # Page Count for msoo-dll.pdb 4379h
208
+ >>>0x32 leshort x \b*%d bytes
209
+
210
+ # Reference: https://github.com/Microsoft/vstest/pull/856/commits/fdc7a9f074ca5a8dfeec83b1be9162bf0cf4000d
211
+ 0 string/c bsjb\001\000\001\000\000\000\000\000\f\000\000\000pdb\ v1.0 Microsoft Roslyn C# debugging symbols version 1.0
212
+
213
+ #.sbr
214
+ 0 string \000\002\000\007\000 MSVC .sbr
215
+ >5 string >\0 %s
216
+
217
+ #.bsc
218
+ 0 string \002\000\002\001 MSVC .bsc
219
+
220
+ #.wsp
221
+ 0 string 1.00\ .0000.0000\000\003 MSVC .wsp version 1.0000.0000
222
+ # these seem to start with the version and contain menus
@@ -0,0 +1,309 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # msx: file(1) magic for the MSX Home Computer
4
+ # v1.3
5
+ # Fabio R. Schmidlin <sd-snatcher@users.sourceforge.net>
6
+
7
+ ############## MSX Music file formats ##############
8
+
9
+ # Gigamix MGSDRV music file
10
+ 0 string/b MGS MSX Gigamix MGSDRV3 music file,
11
+ >6 ubeshort 0x0D0A
12
+ >>3 byte x \bv%c
13
+ >>4 byte x \b.%c
14
+ >>5 byte x \b%c
15
+ >>8 string >\0 \b, title: %s
16
+
17
+ 1 string/b mgs2\ MSX Gigamix MGSDRV2 music file
18
+ >6 uleshort 0x80
19
+ >>0x2E uleshort 0
20
+ >>>0x30 string >\0 \b, title: %s
21
+
22
+ # KSS music file
23
+ 0 string/b KSCC KSS music file v1.03
24
+ >0xE byte 0
25
+ >>0xF byte&0x02 0 \b, soundchips: AY-3-8910, SCC(+)
26
+ >>0xF byte&0x02 2 \b, soundchip(s): SN76489
27
+ >>>0xF byte&0x04 4 stereo
28
+ >>0xF byte&0x01 1 \b, YM2413
29
+ >>0xF byte&0x08 8 \b, Y8950
30
+
31
+ 0 string/b KSSX KSS music file v1.20
32
+ >0xE byte&0xEF 0
33
+ >>0xF byte&0x40 0x00 \b, 60Hz
34
+ >>0xF byte&0x40 0x40 \b, 50Hz
35
+ >>0xF byte&0x02 0 \b, soundchips: AY-3-8910, SCC(+)
36
+ >>0xF byte&0x02 0x02 \b, soundchips: SN76489
37
+ >>>0xF byte&0x04 0x04 stereo
38
+ >>0xF byte&0x01 0x01 \b,
39
+ >>>0xF byte&0x18 0x00 \bYM2413
40
+ >>>0xF byte&0x18 0x08 \bYM2413, Y8950
41
+ >>>0xF byte&0x18 0x18 \bYM2413+Y8950 pseudostereo
42
+ >>0xF byte&0x18 0x10 \b, Majyutsushi DAC
43
+
44
+ # Moonblaster for Moonsound
45
+ 0 string/b MBMS
46
+ >4 byte 0x10 MSX Moonblaster for MoonSound music
47
+
48
+ # Music Player K-kaz
49
+ 0 string/b MPK MSX Music Player K-kaz song
50
+ >6 ubeshort 0x0D0A
51
+ >>3 byte x v%c
52
+ >>4 byte x \b.%c
53
+ >>5 byte x \b%c
54
+
55
+ # I don't know why these don't work
56
+ #0 search/0xFFFF \r\n.FM9
57
+ #>0 search/0xFFFF \r\n#FORMAT MSX Music Player K-kaz source MML file
58
+ #0 search/0xFFFF \r\nFM1\ \=
59
+ #>0 search/0xFFFF \r\nPSG1\=
60
+ #>>0 search/0xFFFF \r\nSCC1\= MSX MuSiCa MML source file
61
+
62
+ # OPX Music file
63
+ 0x35 beshort 0x0d0a
64
+ >0x7B beshort 0x0d0a
65
+ >>0x7D byte 0x1a
66
+ >>>0x87 uleshort 0 MSX OPX Music file
67
+ >>>>0x86 byte 0 v1.5
68
+ >>>>>0 string >\32 \b, title: %s
69
+ >>>>0x86 byte 1 v2.4
70
+ >>>>>0 string >\32 \b, title: %s
71
+
72
+ # SCMD music file
73
+ 0x8B string/b SCMD
74
+ >0xCE uleshort 0 MSX SCMD Music file
75
+ #>>-2 uleshort 0x6a71 ; The file must end with this value. How to code this here?
76
+ >>0x8F string >\0 \b, title: %s
77
+
78
+ 0 search/0xFFFF \r\n@title
79
+ >&0 search/0xFFFF \r\n@m=[ MSX SCMD source MML file
80
+
81
+
82
+ ############## MSX image file formats ##############
83
+
84
+ # MSX raw VRAM dump
85
+ 0 ubyte 0xFE
86
+ >1 uleshort 0
87
+ >>5 uleshort 0
88
+ >>>3 uleshort 0x37FF MSX SC2/GRP raw image
89
+ >>>3 uleshort 0x6A00 MSX Graph Saurus SR5 raw image
90
+ >>>3 uleshort >0x769E
91
+ >>>>3 uleshort <0x8000 MSX GE5/GE6 raw image
92
+ >>>>>3 uleshort 0x7FFF \b, with sprite patterns
93
+ >>>3 uleshort 0xD3FF MSX screen 7-12 raw image
94
+ >>>3 uleshort 0xD400 MSX Graph Saurus SR7/SR8/SRS raw image
95
+
96
+ # Graph Saurus compressed images
97
+ 0 ubyte 0xFD
98
+ >1 uleshort 0
99
+ >>5 uleshort 0
100
+ >>>3 uleshort >0x013D MSX Graph Saurus compressed image
101
+
102
+ # MSX G9B image file
103
+ 0 string/b G9B
104
+ >1 uleshort 11
105
+ >>3 uleshort >10
106
+ >>>5 ubyte >0 MSX G9B image, depth=%d
107
+ >>>>8 uleshort x \b, %dx
108
+ >>>>10 uleshort x \b%d
109
+ >>>>5 ubyte <9
110
+ >>>>>6 ubyte 0
111
+ >>>>>>7 ubyte x \b, codec=%d RGB color palettes
112
+ >>>>>6 ubyte 64 \b, codec=RGB fixed color
113
+ >>>>>6 ubyte 128 \b, codec=YJK
114
+ >>>>>6 ubyte 192 \b, codec=YUV
115
+ >>>>5 ubyte >8 codec=RGB fixed color
116
+ >>>>12 ubyte 0 \b, raw
117
+ >>>>12 ubyte 1 \b, bitbuster compression
118
+
119
+ ############## Other MSX file formats ##############
120
+
121
+ # MSX internal ROMs
122
+ 0 ubeshort 0xF3C3
123
+ >2 uleshort <0x4000
124
+ >>8 ubyte 0xC3
125
+ >>>9 uleshort <0x4000
126
+ >>>>0x0B ubeshort 0x00C3
127
+ >>>>>0x0D uleshort <0x4000
128
+ >>>>>>0x0F ubeshort 0x00C3
129
+ >>>>>>>0x11 uleshort <0x4000
130
+ >>>>>>>>0x13 ubeshort 0x00C3
131
+ >>>>>>>>>0x15 uleshort <0x4000
132
+ >>>>>>>>>>0x50 ubyte 0xC3
133
+ >>>>>>>>>>>0x51 uleshort <0x4000
134
+ >>>>>>>>>>>>(9.s) ubyte 0xC3
135
+ >>>>>>>>>>>>>&0 uleshort >0x4000
136
+ >>>>>>>>>>>>>>&0 ubyte 0xC3 MSX BIOS+BASIC
137
+ >>>>>>>>>>>>>>>0x002D ubyte+1 <3 \b. version=MSX%d
138
+ >>>>>>>>>>>>>>>0x002D ubyte 2 \b, version=MSX2+
139
+ >>>>>>>>>>>>>>>0x002D ubyte 3 \b, version=MSX Turbo-R
140
+ >>>>>>>>>>>>>>>0x002D ubyte >3 \b, version=Unknown MSX %d version
141
+ >>>>>>>>>>>>>>>0x0006 ubyte x \b, VDP.DR=%#2x
142
+ >>>>>>>>>>>>>>>0x0007 ubyte x \b, VDP.DW=%#2x
143
+ >>>>>>>>>>>>>>>0x002B ubyte&0xF 0 \b, charset=Japanese
144
+ >>>>>>>>>>>>>>>0x002B ubyte&0xF 1 \b, charset=International
145
+ >>>>>>>>>>>>>>>0x002B ubyte&0xF 2 \b, charset=Korean
146
+ >>>>>>>>>>>>>>>0x002B ubyte&0xF >2 \b, charset=Unknown id:%d
147
+ >>>>>>>>>>>>>>>0x002B ubyte&0x70 0x00 \b, date format=Y-M-D
148
+ >>>>>>>>>>>>>>>0x002B ubyte&0x70 0x10 \b, date format=M-D-Y
149
+ >>>>>>>>>>>>>>>0x002B ubyte&0x70 0x20 \b, date format=D-M-Y
150
+ >>>>>>>>>>>>>>>0x002B ubyte&0x80 0x00 \b, vfreq=60Hz
151
+ >>>>>>>>>>>>>>>0x002B ubyte&0x80 0x80 \b, vfreq=50Hz
152
+ >>>>>>>>>>>>>>>0x002C ubyte&0x0F 0 \b, keyboard=Japanese
153
+ >>>>>>>>>>>>>>>0x002C ubyte&0x0F 1 \b, keyboard=International
154
+ >>>>>>>>>>>>>>>0x002C ubyte&0x0F 2 \b, keyboard=French
155
+ >>>>>>>>>>>>>>>0x002C ubyte&0x0F 3 \b, keyboard=UK
156
+ >>>>>>>>>>>>>>>0x002C ubyte&0x0F 4 \b, keyboard=German
157
+ >>>>>>>>>>>>>>>0x002C ubyte&0x0F 5 \b, keyboard=Unknown id:%d
158
+ >>>>>>>>>>>>>>>0x002C ubyte&0x0F 6 \b, keyboard=Spanish
159
+ >>>>>>>>>>>>>>>0x002C ubyte&0x0F >6 \b, keyboard=Unknown id:%d
160
+ >>>>>>>>>>>>>>>0x002C ubyte&0xF0 0x00 \b, basic=Japanese
161
+ >>>>>>>>>>>>>>>0x002C ubyte&0xF0 0x10 \b, basic=International
162
+ >>>>>>>>>>>>>>>0x002C ubyte&0xF0 >0x10 \b, basic=Unknown id:%d
163
+ >>>>>>>>>>>>>>>0x002E ubyte&1 1 \b, built-in MIDI
164
+
165
+
166
+ 0 string/b CD
167
+ >2 uleshort >0x10
168
+ >>2 uleshort <0x4000
169
+ >>>4 uleshort <0x4000
170
+ >>>>6 uleshort <0x4000
171
+ >>>>>8 ubyte 0xC3
172
+ >>>>>>9 uleshort <0x4000
173
+ >>>>>>>0x10 ubyte 0xC3
174
+ >>>>>>>>0x11 uleshort <0x4000
175
+ >>>>>>>>>0x14 ubyte 0xC3
176
+ >>>>>>>>>>0x15 uleshort <0x4000 MSX2/2+/TR SubROM
177
+
178
+ 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
179
+ >0x5F0 ubequad 0x8282828244380000
180
+ >>0x150 ubyte 0x38
181
+ >>>0x170 string \20\20\20
182
+ >>>>0x1E32 string ())
183
+ >>>>>0x2130 ubequad 0xA5A5594924231807
184
+ >>>>>0x2138 ubequad 0x4A4A3424488830C0 MSX Kanji Font
185
+
186
+
187
+
188
+ # MSX extension ROMs
189
+ 0 string/b AB
190
+ >2 uleshort 0x0010 MSX ROM
191
+ >>2 uleshort x \b, init=%#4x
192
+ >>4 uleshort >0 \b, stahdl=%#4x
193
+ >>6 uleshort >0 \b, devhdl=%#4x
194
+ >>8 uleshort >0 \b, bas=%#4x
195
+ >2 uleshort 0x4010 MSX ROM
196
+ >>2 uleshort x \b, init=%#04x
197
+ >>4 uleshort >0 \b, stahdl=%#04x
198
+ >>6 uleshort >0 \b, devhdl=%#04x
199
+ >>8 uleshort >0 \b, bas=%#04x
200
+ >2 uleshort 0x8010 MSX ROM
201
+ >>2 uleshort x \b, init=%#04x
202
+ >>4 uleshort >0 \b, stahdl=%#04x
203
+ >>6 uleshort >0 \b, devhdl=%#04x
204
+ >>8 uleshort >0 \b, bas=%#04x
205
+ 0 string/b AB\0\0
206
+ >6 uleshort 0
207
+ >>4 uleshort >0x400F MSX-BASIC extension ROM
208
+ >>>4 uleshort >0 \b, stahdl=%#04x
209
+ >>>6 uleshort >0 \b, devhdl=%#04x
210
+ >>>0x1C string OPLL \b, MSX-Music
211
+ >>>>0x18 string PAC2 \b (external)
212
+ >>>>0x18 string APRL \b (internal)
213
+
214
+ 0 string/b AB\0\0\0\0
215
+ >6 uleshort >0x400F MSX device BIOS
216
+ >>6 uleshort >0 \b, devhdl=%#04x
217
+
218
+
219
+ 0 string/b AB
220
+ #>2 string 5JSuperLAYDOCK MSX Super Laydock ROM
221
+ #>3 string @HYDLIDE3MSX MSX Hydlide-3 ROM
222
+ #>3 string @3\x80IA862 Golvellius MSX1 ROM
223
+ >2 uleshort >15
224
+ >>2 uleshort <0xC000
225
+ >>>8 string \0\0\0\0\0\0\0\0
226
+ >>>>(2.s&0x3FFF) uleshort >0 MSX ROM
227
+ >>>>>0x10 string YZ\0\0\0\0 Konami Game Master 2 MSX ROM
228
+ >>>>>0x10 string CD \b, Konami RC-
229
+ >>>>>>0x12 ubyte x \b%d
230
+ >>>>>>0x13 ubyte/16 x \b%d
231
+ >>>>>>0x13 ubyte&0xF x \b%d
232
+ >>>>>0x10 string EF \b, Konami RC-
233
+ >>>>>>0x12 ubyte x \b%d
234
+ >>>>>>0x13 ubyte/16 x \b%d
235
+ >>>>>>0x13 ubyte&0xF x \b%d
236
+ >>>>>2 uleshort x \b, init=%#04x
237
+ >>>>>4 uleshort >0 \b, stahdl=%#04x
238
+ >>>>>6 uleshort >0 \b, devhdl=%#04x
239
+ >>>>>8 uleshort >0 \b, bas=%#04x
240
+ >>>2 uleshort 0
241
+ >>>>4 uleshort 0
242
+ >>>>>6 uleshort 0
243
+ >>>>>>8 uleshort >0 MSX BASIC program in ROM, bas=%#04x
244
+
245
+ 0x4000 string/b AB
246
+ >0x4002 uleshort >0x400F
247
+ >>0x400A string \0\0\0\0\0\0 MSX ROM with nonstandard page order
248
+ >>>0x4002 uleshort x \b, init=%#04x
249
+ >>>0x4004 uleshort >0 \b, stahdl=%#04x
250
+ >>>0x4006 uleshort >0 \b, devhdl=%#04x
251
+ >>>0x4008 uleshort >0 \b, bas=%#04x
252
+
253
+ 0x8000 string/b AB
254
+ >0x8002 uleshort >0x400F
255
+ >>0x800A string \0\0\0\0\0\0 MSX ROM with nonstandard page order
256
+ >>>0x8002 uleshort x \b, init=%#04x
257
+ >>>0x8004 uleshort >0 \b, stahdl=%#04x
258
+ >>>0x8006 uleshort >0 \b, devhdl=%#04x
259
+ >>>0x8008 uleshort >0 \b, bas=%#04x
260
+
261
+
262
+ 0x3C000 string/b AB
263
+ >0x3C008 string \0\0\0\0\0\0\0\0 MSX MegaROM with nonstandard page order
264
+ >>0x3C002 uleshort x \b, init=%#04x
265
+ >>0x3C004 uleshort >0 \b, stahdl=%#04x
266
+ >>0x3C006 uleshort >0 \b, devhdl=%#04x
267
+ >>0x3C008 uleshort >0 \b, bas=%#04x
268
+
269
+ # MSX BIN file
270
+ #0 byte 0xFE
271
+ #>1 uleshort >0x8000
272
+ #>>3 uleshort >0x8004
273
+ #>>>5 uleshort >0x8000 MSX BIN file
274
+
275
+ # MSX-BASIC file
276
+ 0 byte 0xFF
277
+ >3 uleshort 0x000A
278
+ >>1 uleshort >0x8000 MSX-BASIC program
279
+
280
+ # MSX .CAS file
281
+ 0 string/b \x1F\xA6\xDE\xBA\xCC\x13\x7D\x74 MSX cassette archive
282
+
283
+ # Mega-Assembler file
284
+ 0 byte 0xFE
285
+ >1 uleshort 0x0001
286
+ >>5 uleshort 0xffff
287
+ >>>6 byte 0x0A MSX Mega-Assembler source
288
+
289
+ # Execrom Patchfile
290
+ 0 string ExecROM\ patchfile\x1A MSX ExecROM patchfile
291
+ >0x12 ubyte/16 x v%d
292
+ >0x12 ubyte&0xF x \b.%d
293
+ >0x13 ubyte x \b, contains %d patches
294
+
295
+ # Konami's King's Valley-2 custom stage (ELG file)
296
+ 4 uleshort 0x0900
297
+ >0xF byte 1
298
+ >>0x14 byte 0
299
+ >>>0x1E string \040\040\040
300
+ >>>>0x23 byte 1
301
+ >>>>>0x25 byte 0
302
+ >>>>>>0x15 string >\x30
303
+ >>>>>>>0x15 string <\x5A Konami King's Valley-2 custom stage, title: "%-8.8s"
304
+ >>>>>>>>0x1D byte <32 \b, theme: %d
305
+
306
+ # Metal Gear 1 savegame
307
+ #0x4F string \x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF
308
+ #>>0x60 string \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF
309
+ #>>>0x7B string \0x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00 Metal Gear 1 savegame
@@ -0,0 +1,24 @@
1
+
2
+ # ------------------------------------------------------------------------
3
+ # $File: mup,v 1.5 2017/03/17 21:35:28 christos Exp $
4
+ # mup: file(1) magic for Mup (Music Publisher) input file.
5
+ #
6
+ # From: Abel Cheung <abel (@) oaka.org>
7
+ #
8
+ # NOTE: This header is mainly proposed in the Arkkra mailing list,
9
+ # and is not a mandatory header because of old mup input file
10
+ # compatibility. Noteedit also use mup format, but is not forcing
11
+ # user to use any header as well.
12
+ #
13
+ 0 search/1 //!Mup Mup music publication program input text
14
+ >6 string -Arkkra (Arkkra)
15
+ >>13 string -
16
+ >>>16 string .
17
+ >>>>14 string x \b, need V%.4s
18
+ >>>15 string .
19
+ >>>>14 string x \b, need V%.3s
20
+ >6 string -
21
+ >>9 string .
22
+ >>>7 string x \b, need V%.4s
23
+ >>8 string .
24
+ >>>7 string x \b, need V%.3s
@@ -0,0 +1,17 @@
1
+ #------------------------------------------------------------------------------
2
+ # $File: music,v 1.1 2011/11/25 03:28:17 christos Exp $
3
+ # music: file (1) magic for music formats
4
+
5
+ # BWW format used by Bagpipe Music Writer Gold by Robert MacNeil Musicworks
6
+ # and Bagpipe Writer by Doug Wickstrom
7
+ #
8
+ 0 string Bagpipe Bagpipe
9
+ >8 string Reader Reader
10
+ >>15 string >\0 (version %.3s)
11
+ >8 string Music\ Writer Music Writer
12
+ >>20 string :
13
+ >>>21 string >\0 (version %.3s)
14
+ >>21 string Gold Gold
15
+ >>>25 string :
16
+ >>>>26 string >\0 (version %.3s)
17
+
@@ -0,0 +1,7 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # nasa: file(1) magic
4
+
5
+ # From: Barry Carter <carter.barry@gmail.com>
6
+ 0 string DAF/SPK NASA SPICE file (binary format)
7
+ 0 string DAFETF\ NAIF\ DAF\ ENCODED NASA SPICE file (transfer format)
@@ -0,0 +1,24 @@
1
+
2
+ #-----------------------------------------------------------------------------
3
+ # $File: natinst,v 1.6 2014/06/03 19:17:27 christos Exp $
4
+ # natinst: file(1) magic for National Instruments Code Files
5
+
6
+ #
7
+ # From <egamez@fcfm.buap.mx> Enrique Gamez-Flores
8
+ # version 1
9
+ # Many formats still missing, we use, for the moment LabVIEW
10
+ # We guess VXI format file. VISA, LabWindowsCVI, BridgeVIEW, etc, are missing
11
+ #
12
+ 0 string RSRC National Instruments,
13
+ # Check if it's a LabVIEW File
14
+ >8 string LV LabVIEW File,
15
+ # Check which kind of file it is
16
+ >>10 string SB Code Resource File, data
17
+ >>10 string IN Virtual Instrument Program, data
18
+ >>10 string AR VI Library, data
19
+ # This is for Menu Libraries
20
+ >8 string LMNULBVW Portable File Names, data
21
+ # This is for General Resources
22
+ >8 string rsc Resources File, data
23
+ # This is for VXI Package
24
+ 0 string VMAP National Instruments, VXI File, data