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,17 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: gcc,v 1.5 2016/07/01 23:31:13 christos Exp $
4
+ # gcc: file(1) magic for GCC special files
5
+ #
6
+ 0 string gpch GCC precompiled header
7
+
8
+ # The version field is annoying. It's 3 characters, not zero-terminated.
9
+ >5 byte x (version %c
10
+ >6 byte x \b%c
11
+ >7 byte x \b%c)
12
+
13
+ # 67 = 'C', 111 = 'o', 43 = '+', 79 = 'O'
14
+ >4 byte 67 for C
15
+ >4 byte 111 for Objective-C
16
+ >4 byte 43 for C++
17
+ >4 byte 79 for Objective-C++
@@ -0,0 +1,10 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: gconv
4
+ # gconv: file(1) magic for iconv/gconv module configuration cache
5
+ #
6
+ # Magic number defined in glibc/iconv/iconvconfig.h as GCONVCACHE_MAGIC
7
+ #
8
+ # From: Marek Cermak <macermak@redhat.com>
9
+ #
10
+ 0 lelong 0x20010324 gconv module configuration cache data
@@ -0,0 +1,85 @@
1
+ #------------------------------------------------------------------------------
2
+ # $File: gentoo,v 1.5 2022/12/26 17:16:55 christos Exp $
3
+ # gentoo: file(1) magic for gentoo specific formats
4
+ #
5
+ # Summary: Gentoo ebuild Manifest files (GLEP 74)
6
+ # Reference: https://www.gentoo.org/glep/glep-0074.html
7
+ # Submitted by: Michal Gorny <mgorny@gentoo.org>
8
+ # Start by doing a fast check for the most common tags.
9
+ 0 string AUX
10
+ >0 use gentoo-manifest
11
+ 0 string DATA
12
+ >0 use gentoo-manifest
13
+ 0 string DIST
14
+ >0 use gentoo-manifest
15
+ 0 string EBUILD
16
+ >0 use gentoo-manifest
17
+ 0 string MANIFEST
18
+ >0 use gentoo-manifest
19
+
20
+ # Manifest can be PGP-signed.
21
+ 0 string -----BEGIN\040PGP\040SIGNED\040MESSAGE-----
22
+ >34 search/32 \n\n
23
+ >>&0 string AUX
24
+ >>>&0 use gentoo-manifest
25
+ >>&0 string DATA
26
+ >>>&0 use gentoo-manifest
27
+ >>&0 string DIST
28
+ >>>&0 use gentoo-manifest
29
+ >>&0 string EBUILD
30
+ >>>&0 use gentoo-manifest
31
+ >>&0 string MANIFEST
32
+ >>>&0 use gentoo-manifest
33
+
34
+ # Use a more detailed regex to verify that we were correct.
35
+ # <tag> <filename> <size> <hash-name> <hash-value>...
36
+ # (<tag>'s already been matched prior to calling)
37
+ 0 name gentoo-manifest
38
+ >&0 regex [[:space:]]+[[:print:]]+[[:space:]]+[[:digit:]]+[[:space:]]+[[:alnum:]]+[[:space:]]+[[:xdigit:]]{32} Gentoo Manifest (GLEP 74)
39
+ !:mime application/vnd.gentoo.manifest
40
+
41
+ # Summary: Gentoo ebuild and eclass files
42
+ # Reference: https://projects.gentoo.org/pms/8/pms.html
43
+ # Submitted by: Michal Gorny <mgorny@gentoo.org>
44
+ 0 search/512 EAPI=
45
+ >0 regex .*\n[\040\t]*EAPI=["']? Gentoo ebuild
46
+ >>&0 regex [[:alnum:]+_.-]+ \b, EAPI %s
47
+ !:mime application/vnd.gentoo.ebuild
48
+
49
+ 0 search/512 @ECLASS:\040 Gentoo eclass
50
+ >&0 string x %s
51
+ !:mime application/vnd.gentoo.eclass
52
+
53
+ # Summary: Gentoo supplementary package and category metadata files
54
+ # Reference: https://www.gentoo.org/glep/glep-0068.html
55
+ # Submitted by: Michal Gorny <mgorny@gentoo.org>
56
+ 0 string \<?xml
57
+ >0 search/512 \<catmetadata Gentoo category metadata file
58
+ !:mime application/vnd.gentoo.catmetadata+xml
59
+ >0 search/512 \<pkgmetadata Gentoo package metadata file
60
+ !:mime application/vnd.gentoo.pkgmetadata+xml
61
+
62
+ # Summary: Gentoo GLEP 78 binary package
63
+ # Reference: https://www.gentoo.org/glep/glep-0078.html
64
+ # Note: assumes the strict format
65
+ # Submitted by: Michal Gorny <mgorny@gentoo.org>
66
+
67
+ # GPKG uses ustar (or ustar-compatible GNU format) that starts with
68
+ # a <directory>/gpkg-1 file
69
+ 257 string ustar
70
+ >0 search/100 /gpkg-1\0
71
+ >>0 regex [^/]+ Gentoo GLEP 78 (GPKG) binary package for "%s"
72
+ !:mime application/vnd.gentoo.gpkg
73
+ !:ext tar
74
+ # the logic below requires the gpkg-1 file to be empty
75
+ >>>124 string 00000000000\0
76
+ # determine the compression used by looking at the second member name
77
+ >>>>512 search/100 .tar.
78
+ >>>>>&0 string gz\0 using gzip compression
79
+ >>>>>&0 string bz2\0 using bzip2 compression
80
+ >>>>>&0 string lz\0 using lzip compression
81
+ >>>>>&0 string lz4\0 using lz4 compression
82
+ >>>>>&0 string lzo\0 using lzo compression
83
+ >>>>>&0 string xz\0 using xz compression
84
+ >>>>>&0 string zst\0 using zstd compression
85
+ >>>>(636.o+1024) search/611 .sig\0 \b, signed
@@ -0,0 +1,166 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: geo,v 1.10 2022/10/31 13:22:26 christos Exp $
4
+ # Geo- files from Kurt Schwehr <schwehr@ccom.unh.edu>
5
+
6
+ ######################################################################
7
+ #
8
+ # Acoustic Doppler Current Profilers (ADCP)
9
+ #
10
+ ######################################################################
11
+
12
+ 0 beshort 0x7f7f RDI Acoustic Doppler Current Profiler (ADCP)
13
+
14
+ ######################################################################
15
+ #
16
+ # Metadata
17
+ #
18
+ ######################################################################
19
+
20
+ 0 string Identification_Information FGDC ASCII metadata
21
+
22
+ ######################################################################
23
+ #
24
+ # Seimsic / Subbottom
25
+ #
26
+ ######################################################################
27
+
28
+ # Knudsen subbottom chirp profiler - Binary File Format: B9
29
+ # KEB D409-03167 V1.75 Huffman
30
+ 0 string KEB\ Knudsen seismic KEL binary (KEB) -
31
+ >4 regex [-A-Z0-9]+ Software: %s
32
+ >>&1 regex V[0-9]+\\.[0-9]+ version %s
33
+
34
+ ######################################################################
35
+ #
36
+ # LIDAR - Laser altimetry or bathy
37
+ #
38
+ ######################################################################
39
+
40
+
41
+ # Caris LIDAR format for LADS comes as two parts... ascii location file and binary waveform data
42
+ 0 string HCA LADS Caris Ascii Format (CAF) bathymetric lidar
43
+ >4 regex [0-9]+\\.[0-9]+ version %s
44
+
45
+ 0 string HCB LADS Caris Binary Format (CBF) bathymetric lidar waveform data
46
+ >3 byte x version %d .
47
+ >4 byte x %d
48
+
49
+
50
+ ######################################################################
51
+ #
52
+ # MULTIBEAM SONARS https://www.ldeo.columbia.edu/res/pi/MB-System/formatdoc/
53
+ #
54
+ ######################################################################
55
+
56
+ # GeoAcoustics - GeoSwath Plus
57
+ # Update: Joerg Jenderek
58
+ # URL: https://www.mbari.org/products/research-software/mb-system/
59
+ # Reference: http://ccom.unh.edu/sites/default/files/news-and-events/conferences/auv-bootcamp/
60
+ # GS%2B-6063-BB-GS%2B-Broadcast-Raw-Data-File-Format-Command-Specification.pdf
61
+ # Note: All data is written using Intel 80x86 byte ordering (LSB to MSB)
62
+ # raw_header_siz; file header size is 544 bytes
63
+ 4 beshort 0x2002
64
+ # GRR: line above is too general as it matches also some Microsoft Event Trace Logs *.ETL
65
+ # skip many (63/753) Microsoft Event Trace Logs (AMSITrace.etl lxcore_kernel.etl NotificationUxBroker.052.etl WindowsBackup.4.etl) with invalid "low" ping header size 0
66
+ >6 leshort >0 GeoSwath RDF
67
+ # skip foo samples with invalid "high" spare bytes
68
+ #>>536 ulequad =0 OK_THIS_IS_GeoSwath_RDF
69
+ #!:mime application/octet-stream
70
+ !:mime application/x-geoswath-rdf
71
+ # http://ccom.unh.edu/sites/default/files/news-and-events/conferences/auv-bootcamp/060116342.rdf
72
+ !:ext rdf
73
+ # filename; original file name like: "C:\GS+\Projects\Default\Raw Data Files\060116342.rdf"
74
+ >>8 string x "%-.512s"
75
+ # version[8]; recording software version number like: 3.16c
76
+ >>527 string x \b, version %-.8s
77
+ # creation; unsigned int file creation time; WHAT time format is this?
78
+ >>0 ulelong x \b, creation time %#8.8x
79
+ # raw_ping_header_size; size of ping header in bytes like: 64
80
+ >>6 leshort !64 \b, ping header size %d
81
+ # frequency; system frequency in hertz like: 500000
82
+ >>520 lelong x \b, frequency %d
83
+ # echo_type; Echosounder type index like: 1
84
+ >>524 leshort x \b, echo type %#x
85
+ # file_mode; file mode mask (0x00 bathy & sidescan, 0x80 bathy, 0x40 sidescan, 0x20 seismic)
86
+ >>526 ubyte !0 \b, file mode %#2.2x
87
+ # pps_mode; PPS synch mode like: 2
88
+ >>535 byte x \b, pps mode %#x
89
+ # char spare[8]; apparently zeroed
90
+ >>536 ubequad !0 \b, spare %#16.16llx
91
+ # Ping_number; 1st ping number like: 4944
92
+ >>544 lelong x \b, 1st ping number %d
93
+
94
+ 0 string Start:- GeoSwatch auf text file
95
+
96
+ # Seabeam 2100
97
+ # mbsystem code mb41
98
+ 0 string SB2100 SeaBeam 2100 multibeam sonar
99
+ 0 string SB2100DR SeaBeam 2100 DR multibeam sonar
100
+ 0 string SB2100PR SeaBeam 2100 PR multibeam sonar
101
+
102
+ # This corresponds to MB-System format 94, L-3/ELAC/SeaBeam XSE vendor
103
+ # format. It is the format of our upgraded SeaBeam 2112 on R/V KNORR.
104
+ 0 string $HSF XSE multibeam
105
+
106
+ # mb121 https://www.saic.com/maritime/gsf/
107
+ 8 string GSF-v SAIC generic sensor format (GSF) sonar data,
108
+ >&0 regex [0-9]+\\.[0-9]+ version %s
109
+
110
+ # MGD77 - https://www.ngdc.noaa.gov/mgg/dat/geodas/docs/mgd77.htm
111
+ # mb161
112
+ 9 string MGD77 MGD77 Header, Marine Geophysical Data Exchange Format
113
+
114
+ # MBSystem processing caches the mbinfo output
115
+ 1 string Swath\ Data\ File: mbsystem info cache
116
+
117
+ # Caris John Hughes Clark format
118
+ 0 string HDCS Caris multibeam sonar related data
119
+ 1 string Start/Stop\ parameter\ header: Caris ASCII project summary
120
+
121
+ ######################################################################
122
+ #
123
+ # Visualization and 3D modeling
124
+ #
125
+ ######################################################################
126
+
127
+ # IVS - IVS3d.com Tagged Data Representation
128
+ 0 string %%\ TDR\ 2.0 IVS Fledermaus TDR file
129
+
130
+ # http://www.ecma-international.org/publications/standards/Ecma-363.htm
131
+ # 3D in PDFs
132
+ 0 string U3D ECMA-363, Universal 3D
133
+
134
+ ######################################################################
135
+ #
136
+ # Support files
137
+ #
138
+ ######################################################################
139
+
140
+ # https://midas.psi.ch/elog/
141
+ 0 string $@MID@$ elog journal entry
142
+
143
+ # Geospatial Designs https://www.geospatialdesigns.com/surfer6_format.htm
144
+ 0 string DSBB Surfer 6 binary grid file
145
+ >4 leshort x \b, %d
146
+ >6 leshort x \bx%d
147
+ >8 ledouble x \b, minx=%g
148
+ >16 ledouble x \b, maxx=%g
149
+ >24 ledouble x \b, miny=%g
150
+ >32 ledouble x \b, maxy=%g
151
+ >40 ledouble x \b, minz=%g
152
+ >48 ledouble x \b, maxz=%g
153
+
154
+ # magic for LAS format files
155
+ # alex myczko <alex@aiei.ch>
156
+ # https://www.asprs.org/wp-content/uploads/2010/12/LAS_1_3_r11.pdf
157
+ 0 string LASF LIDAR point data records
158
+ >24 byte >0 \b, version %u
159
+ >25 byte >0 \b.%u
160
+ >26 string >\0 \b, SYSID %s
161
+ >58 string >\0 \b, Generating Software %s
162
+
163
+ # magic for PCD format files
164
+ # alex myczko <alex@aiei.ch>
165
+ # http://pointclouds.org/documentation/tutorials/pcd_file_format.php
166
+ 0 string #\ .PCD Point Cloud Data
@@ -0,0 +1,20 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: geos,v 1.4 2009/09/19 16:28:09 christos Exp $
4
+ # GEOS files (Vidar Madsen, vidar@gimp.org)
5
+ # semi-commonly used in embedded and handheld systems.
6
+ 0 belong 0xc745c153 GEOS
7
+ >40 byte 1 executable
8
+ >40 byte 2 VMFile
9
+ >40 byte 3 binary
10
+ >40 byte 4 directory label
11
+ >40 byte <1 unknown
12
+ >40 byte >4 unknown
13
+ >4 string >\0 \b, name "%s"
14
+ #>44 short x \b, version %d
15
+ #>46 short x \b.%d
16
+ #>48 short x \b, rev %d
17
+ #>50 short x \b.%d
18
+ #>52 short x \b, proto %d
19
+ #>54 short x \br%d
20
+ #>168 string >\0 \b, copyright "%s"
@@ -0,0 +1,77 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: gimp,v 1.10 2019/10/15 18:19:40 christos Exp $
4
+ # GIMP Gradient: file(1) magic for the GIMP's gradient data files (.ggr)
5
+ # by Federico Mena <federico@nuclecu.unam.mx>
6
+
7
+ 0 string/t GIMP\ Gradient GIMP gradient data
8
+ #!:mime text/plain
9
+ !:mime text/x-gimp-ggr
10
+ !:ext ggr
11
+
12
+ # GIMP palette (.gpl)
13
+ # From: Markus Heidelberg <markus.heidelberg@web.de>
14
+ 0 string/t GIMP\ Palette GIMP palette data
15
+ # URL: https://docs.gimp.org/en/gimp-concepts-palettes.html
16
+ # Reference: http://fileformats.archiveteam.org/wiki/GIMP_Palette
17
+ #!:mime text/plain
18
+ !:mime text/x-gimp-gpl
19
+ !:ext gpl
20
+
21
+ #------------------------------------------------------------------------------
22
+ # XCF: file(1) magic for the XCF image format used in the GIMP (.xcf) developed
23
+ # by Spencer Kimball and Peter Mattis
24
+ # ('Bucky' LaDieu, nega@vt.edu)
25
+
26
+ # URL: https://en.wikipedia.org/wiki/XCF_(file_format)
27
+ # Reference: https://gitlab.gnome.org/GNOME/gimp/blob/master/devel-docs/xcf.txt
28
+ 0 string gimp\ xcf GIMP XCF image data,
29
+ !:mime image/x-xcf
30
+ !:ext xcf
31
+ >9 string file version 0,
32
+ >9 string v version
33
+ >>10 string >\0 %s,
34
+ >14 belong x %u x
35
+ >18 belong x %u,
36
+ >22 belong 0 RGB Color
37
+ >22 belong 1 Greyscale
38
+ >22 belong 2 Indexed Color
39
+ >22 belong >2 Unknown Image Type.
40
+
41
+ #------------------------------------------------------------------------------
42
+ # XCF: file(1) magic for the patterns used in the GIMP (.pat), developed
43
+ # by Spencer Kimball and Peter Mattis
44
+ # ('Bucky' LaDieu, nega@vt.edu)
45
+
46
+ # Reference: http://fileformats.archiveteam.org/wiki/GIMP_Pattern
47
+ 20 string GPAT GIMP pattern data,
48
+ >24 string x %s
49
+ !:mime image/x-gimp-pat
50
+ !:ext pat
51
+
52
+ #------------------------------------------------------------------------------
53
+ # XCF: file(1) magic for the brushes used in the GIMP (.gbr), developed
54
+ # by Spencer Kimball and Peter Mattis
55
+ # ('Bucky' LaDieu, nega@vt.edu)
56
+
57
+ 20 string GIMP GIMP brush data
58
+ # Reference: http://fileformats.archiveteam.org/wiki/GIMP_Brush
59
+ !:mime image/x-gimp-gbr
60
+ # some sources also list gpb
61
+ !:ext gbr
62
+
63
+ # From: Joerg Jenderek
64
+ # URL: https://docs.gimp.org/en/gimp-using-animated-brushes.html
65
+ # Reference: http://fileformats.archiveteam.org/wiki/GIMP_Animated_Brush
66
+ # share\gimp\2.0\brushes\Legacy\confetti.gih
67
+ 0 search/21/b \040ncells: GIMP animated brush data
68
+ !:mime image/x-gimp-gih
69
+ !:ext gih
70
+
71
+ # GIMP Curves File
72
+ # From: "Nelson A. de Oliveira" <naoliv@gmail.com>
73
+ 0 string #\040GIMP\040Curves\040File GIMP curve file
74
+ #!:mime text/plain
75
+ !:mime text/x-gimp-curve
76
+ !:ext /txt
77
+
@@ -0,0 +1,13 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: git,v 1.2 2020/08/09 16:57:15 christos Exp $
4
+ # git: file(1) magic for Git objects
5
+
6
+ 0 string blob\040
7
+ >5 regex [0-9a-f]+ Git blob %s
8
+
9
+ 0 string tree\040
10
+ >5 regex [0-9a-f]+ Git tree %s
11
+
12
+ 0 string commit\040
13
+ >7 regex [0-9a-f]+ Git commit %s
@@ -0,0 +1,21 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: glibc,v 1.1 2018/10/11 15:35:43 christos Exp $
4
+ # glibc locale files
5
+ #
6
+ # https://sourceware.org/git/?p=glibc.git;f=locale/localeinfo.h;h=68822a63#l32
7
+
8
+ 0 belong 0x20070920 glibc locale file LC_CTYPE
9
+ 0 belong 0x14110320 glibc locale file LC_NUMERIC
10
+ 0 belong 0x17110320 glibc locale file LC_TIME
11
+ 0 belong 0x17100520 glibc locale file LC_COLLATE
12
+ 0 belong 0x11110320 glibc locale file LC_MONETARY
13
+ 0 belong 0x10110320 glibc locale file LC_MESSAGES
14
+ 0 belong 0x13110320 glibc locale file LC_ALL
15
+ 0 belong 0x12110320 glibc locale file LC_PAPER
16
+ 0 belong 0x1d110320 glibc locale file LC_NAME
17
+ 0 belong 0x1c110320 glibc locale file LC_ADDRESS
18
+ 0 belong 0x1f110320 glibc locale file LC_TELEPHONE
19
+ 0 belong 0x1e110320 glibc locale file LC_MEASUREMENT
20
+ 0 belong 0x19110320 glibc locale file LC_IDENTIFICATION
21
+
@@ -0,0 +1,59 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: gnome,v 1.7 2020/06/23 16:17:08 christos Exp $
4
+ # GNOME related files
5
+
6
+ # Contributed by Josh Triplett
7
+ # FIXME: Could be simplified if pstring supported two-byte counts
8
+ 0 string GnomeKeyring\n\r\0\n GNOME keyring
9
+ >&0 ubyte 0 \b, major version 0
10
+ >>&0 ubyte 0 \b, minor version 0
11
+ >>>&0 ubyte 0 \b, crypto type 0 (AES)
12
+ >>>&0 ubyte >0 \b, crypto type %u (unknown)
13
+ >>>&1 ubyte 0 \b, hash type 0 (MD5)
14
+ >>>&1 ubyte >0 \b, hash type %u (unknown)
15
+ >>>&2 ubelong 0xFFFFFFFF \b, name NULL
16
+ >>>&2 ubelong !0xFFFFFFFF
17
+ >>>>&-4 ubelong >255 \b, name too long for file's pstring type
18
+ >>>>&-4 ubelong <256
19
+ >>>>>&-1 pstring x \b, name "%s"
20
+ >>>>>>&0 ubeqdate x \b, last modified %s
21
+ >>>>>>&8 ubeqdate x \b, created %s
22
+ >>>>>>&16 ubelong &1
23
+ >>>>>>>&0 ubelong x \b, locked if idle for %u seconds
24
+ >>>>>>&16 ubelong ^1 \b, not locked if idle
25
+ >>>>>>&24 ubelong x \b, hash iterations %u
26
+ >>>>>>&28 ubequad x \b, salt %llu
27
+ >>>>>>&52 ubelong x \b, %u item(s)
28
+
29
+ # From: Alex Beregszaszi <alex@fsn.hu>
30
+ 4 string gtktalog GNOME Catalogue (gtktalog)
31
+ >13 string >\0 version %s
32
+
33
+ # Summary: GStreamer binary registry
34
+ # Extension: .bin
35
+ # Submitted by: Josh Triplett <josh@joshtriplett.org>
36
+ 0 belong 0xc0def00d GStreamer binary registry
37
+ >4 string x \b, version %s
38
+
39
+ # GVariant Database file
40
+ # By Elan Ruusamae <glen@delfi.ee>
41
+ # https://github.com/GNOME/gvdb/blob/master/gvdb-format.h
42
+ # It's always "GVariant", it's byte swapped on incompatible archs
43
+ # See https://github.com/GNOME/gvdb/blob/master/gvdb-builder.c
44
+ # file_builder_serialise()
45
+ # https://developer.gnome.org/glib/2.34/glib-GVariant.html#GVariant
46
+ 0 string GVariant GVariant Database file,
47
+ # version is never filled. probably future extension
48
+ >8 lelong x version %d
49
+ # not sure are these usable, so commented out
50
+ #>>16 lelong x start %d,
51
+ #>>>20 lelong x end %d
52
+
53
+ # G-IR database made by gobject-introspect toolset,
54
+ # https://live.gnome.org/GObjectIntrospection
55
+ 0 string GOBJ\nMETADATA\r\n\032 G-IR binary database
56
+ >16 byte x \b, v%d
57
+ >17 byte x \b.%d
58
+ >20 short x \b, %d entries
59
+ >22 short x \b/%d local
@@ -0,0 +1,173 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: gnu,v 1.24 2021/04/26 15:56:00 christos Exp $
4
+ # gnu: file(1) magic for various GNU tools
5
+ #
6
+ # GNU nlsutils message catalog file format
7
+ #
8
+ # GNU message catalog (.mo and .gmo files)
9
+
10
+ # Update: Joerg Jenderek
11
+ # URL: https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html
12
+ # Reference: ftp://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.8.tar.gz/
13
+ # gettext-0.19.8.1/gettext-runtime/intl/gmo.h
14
+ # Note: maybe call it like "GNU translation gettext machine object"
15
+ 0 string \336\22\4\225 GNU message catalog (little endian),
16
+ #0 ulelong 0x950412DE GNU-format message catalog data
17
+ # TODO: write lines in such a way that code can also be called for big endian variant
18
+ #>0 use gettext-object
19
+ #0 name gettext-object
20
+ >4 ulelong x revision
21
+ !:mime application/x-gettext-translation
22
+ # mo extension is also used for Easeus Partition Master PE32 executable module
23
+ # like ConvertFatToNTFS.mo
24
+ !:ext gmo/mo
25
+ # only found three revision combinations 0.0 0.1 1.1 as unsigned 32-bit
26
+ # major revision
27
+ >4 ulelong/0xFFff x %u.
28
+ # minor revision
29
+ >4 ulelong&0x0000FFff x \b%u
30
+ >>8 ulelong x \b, %u message
31
+ # plural s
32
+ >>8 ulelong >1 \bs
33
+ # size of hashing table
34
+ #>20 ulelong x \b, %u hash
35
+ #>20 ulelong >1 \bes
36
+ #>24 ulelong x at %#x
37
+ # for revision x.0 offset of table with originals is 1Ch if directly after header
38
+ >4 ulelong&0x0000FFff =0
39
+ >>12 ulelong !0x1C \b, at %#x string table
40
+ # but for x.1 table offset i found is 30h. That means directly after bigger header
41
+ >4 ulelong&0x0000FFff >0
42
+ >>12 ulelong !0x30 \b, at %#x string table
43
+ # The following variables are only used in .mo files with minor revision >= 1
44
+ # number of system dependent segments
45
+ #>>28 ulelong x \b, %u segment
46
+ #>>28 ulelong >1 \bs
47
+ # offset of table describing system dependent segments
48
+ #>>32 ulelong x at %#x
49
+ # number of system dependent strings pairs
50
+ >>36 ulelong x \b, %u sysdep message
51
+ >>36 ulelong >1 \bs
52
+ # offset of table with start offsets of original sysdep strings
53
+ #>>40 ulelong x \b, at %#x sysdep strings
54
+ # offset of table with start offsets of translated sysdep strings
55
+ #>>44 ulelong x \b, at %#x sysdep translations
56
+ # >>(44.l) ulelong x %#x chars
57
+ # >>>&0 ulelong x at %#x
58
+ # >>>>(&-4) string x "%s"
59
+ # string table after big header
60
+ #>>48 ubequad x \b, string table %#llx
61
+ #
62
+ # 0th string length seems to be always 0
63
+ #>(12.l) ulelong x \b, %u chars
64
+ #>>&0 ulelong x at %#x
65
+ # if 1st string length positive inspect offset and string
66
+ #>(12.l+8) ulelong >0 \b, %u chars
67
+ #>>&0 ulelong x at %#x
68
+ # if 2nd string length positive inspect offset and string
69
+ # >(12.l+16) ulelong >0 \b, %u chars
70
+ # >>&0 ulelong x at %#x
71
+ # skip newline byte
72
+ #>>>(&-4) ubyte =0x0A
73
+ #>>>>&0 string x "%s"
74
+ #>>>(&-4) ubyte !0x0A
75
+ #>>>>&-1 string x '%s'
76
+ # offset of table with translation strings
77
+ #>16 ulelong x \b, at %#x translation table
78
+ # check translation 0 length and offset
79
+ >(16.l) ulelong >0
80
+ >>&0 ulelong x
81
+ # translation 0 seems to be often Project-Id with name and version
82
+ >>>(&-4) string x \b, %s
83
+ # trans. 1 with bytes >= 1 unlike icoutils-0.31.0\po\en@boldquot.gmo with 1 NL
84
+ >(16.l+8) ulelong >1
85
+ >>&0 ulelong x
86
+ >>>(&-4) ubyte !0x0A
87
+ >>>>&-1 string x '%s'
88
+ # 1 New Line like in tar-1.29\po\de.gmo
89
+ >>>(&-4) ubyte =0x0A
90
+ >>>>&0 ubyte !0x0A
91
+ >>>>>&-1 string x '%s'
92
+ # 2nd New Line like in parted-3.1\po\de.gmo
93
+ >>>>&0 ubyte =0x0A
94
+ >>>>>&0 string x '%s'
95
+
96
+ 0 string \225\4\22\336 GNU message catalog (big endian),
97
+ #0 ubelong 0x950412DE GNU-format message catalog data
98
+ !:mime application/x-gettext-translation
99
+ !:ext gmo/mo
100
+ # TODO: for big endian use same code as for little endian
101
+ #>0 use \^gettext-object
102
+ # DEBUG code
103
+ #>16 ubelong x \b, at %#x translation table
104
+ #>(16.L) ubelong x %#x chars
105
+ #>>&0 ubelong x at %#x
106
+ # unexpected value HERE!
107
+ #>>>(&-4) ubequad x %#llx
108
+ #
109
+ >4 beshort x revision %d.
110
+ >6 beshort >0 \b%d,
111
+ >>8 belong x %d messages,
112
+ >>36 belong x %d sysdep messages
113
+ >6 beshort =0 \b%d,
114
+ >>8 belong x %d messages
115
+
116
+
117
+ # GnuPG
118
+ # The format is very similar to pgp
119
+ 0 string \001gpg GPG key trust database
120
+ >4 byte x version %d
121
+ # Note: magic.mime had 0x8501 for the next line instead of 0x8502
122
+ 0 beshort 0x8502 GPG encrypted data
123
+ !:mime text/PGP # encoding: data
124
+
125
+ # Update: Joerg Jenderek
126
+ # Note: PGP and GPG use same data structure.
127
+ # So recognition is now done by ./pgp with start test for byte 0x99
128
+ # This magic is not particularly good, as the keyrings don't have true
129
+ # magic. Nevertheless, it covers many keyrings.
130
+ # 0 ubeshort-0x9901 <2
131
+ # >3 byte 4
132
+ # >>4 bedate x GPG key public ring, created %s
133
+ # !:mime application/x-gnupg-keyring
134
+
135
+ # Symmetric encryption
136
+ 0 leshort 0x0d8c
137
+ >4 leshort 0x0203
138
+ >>2 leshort 0x0204 GPG symmetrically encrypted data (3DES cipher)
139
+ >>2 leshort 0x0304 GPG symmetrically encrypted data (CAST5 cipher)
140
+ >>2 leshort 0x0404 GPG symmetrically encrypted data (BLOWFISH cipher)
141
+ >>2 leshort 0x0704 GPG symmetrically encrypted data (AES cipher)
142
+ >>2 leshort 0x0804 GPG symmetrically encrypted data (AES192 cipher)
143
+ >>2 leshort 0x0904 GPG symmetrically encrypted data (AES256 cipher)
144
+ >>2 leshort 0x0a04 GPG symmetrically encrypted data (TWOFISH cipher)
145
+ >>2 leshort 0x0b04 GPG symmetrically encrypted data (CAMELLIA128 cipher)
146
+ >>2 leshort 0x0c04 GPG symmetrically encrypted data (CAMELLIA192 cipher)
147
+ >>2 leshort 0x0d04 GPG symmetrically encrypted data (CAMELLIA256 cipher)
148
+
149
+
150
+ # GnuPG Keybox file
151
+ # <https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=kbx/keybox-blob.c;hb=HEAD>
152
+ # From: Philipp Hahn <hahn@univention.de>
153
+ 0 belong 32
154
+ >4 byte 1
155
+ >>8 string KBXf GPG keybox database
156
+ >>>5 byte 1 version %d
157
+ >>>16 bedate x \b, created-at %s
158
+ >>>20 bedate x \b, last-maintained %s
159
+
160
+
161
+ # From: James Youngman <jay@gnu.org>
162
+ # gnu find magic
163
+ 0 string \0LOCATE GNU findutils locate database data
164
+ >7 string >\0 \b, format %s
165
+ >7 string 02 \b (frcode)
166
+
167
+ # Files produced by GNU gettext
168
+
169
+ # gettext message catalogue
170
+ 0 search/1024 \nmsgid
171
+ >&0 search/1024 \nmsgstr GNU gettext message catalogue text
172
+ !:strength +100
173
+ !:mime text/x-po
@@ -0,0 +1,8 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: gnumeric,v 1.4 2009/09/19 16:28:09 christos Exp $
4
+ # gnumeric: file(1) magic for Gnumeric spreadsheet
5
+ # This entry is only semi-helpful, as Gnumeric compresses its files, so
6
+ # they will ordinarily reported as "compressed", but at least -z helps
7
+ 39 string =<gmr:Workbook Gnumeric spreadsheet
8
+ !:mime application/x-gnumeric