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,48 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: claris,v 1.8 2016/07/18 19:23:38 christos Exp $
4
+ # claris: file(1) magic for claris
5
+ # "H. Nanosecond" <aldomel@ix.netcom.com>
6
+ # Claris Works a word processor, etc.
7
+ # Version 3.0
8
+
9
+ # .pct claris works clip art files
10
+ #0000000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
11
+ #*
12
+ #0001000 #010 250 377 377 377 377 000 213 000 230 000 021 002 377 014 000
13
+ #null to byte 1000 octal
14
+ 514 string \377\377\377\377\000
15
+ >0 string \0\0\0\0\0\0\0\0\0\0\0\0\0 Claris clip art
16
+ 514 string \377\377\377\377\001
17
+ >0 string \0\0\0\0\0\0\0\0\0\0\0\0\0 Claris clip art
18
+
19
+ # Claris works files
20
+ # .cwk
21
+ # Moved to Apple AppleWorks document
22
+ #0 string \002\000\210\003\102\117\102\117\000\001\206 Claris works document
23
+ # .plt
24
+ 0 string \020\341\000\000\010\010 Claris Works palette files .plt
25
+
26
+ # .msp a dictionary file I am not sure about this I have only one .msp file
27
+ 0 string \002\271\262\000\040\002\000\164 Claris works dictionary
28
+
29
+ # .usp are user dictionary bits
30
+ # I am not sure about a magic header:
31
+ #0000000 001 123 160 146 070 125 104 040 136 123 015 012 160 157 144 151
32
+ # soh S p f 8 U D sp ^ S cr nl p o d i
33
+ #0000020 141 164 162 151 163 164 040 136 123 015 012 144 151 166 040 043
34
+ # a t r i s t sp ^ S cr nl d i v sp #
35
+
36
+ # .mth Thesaurus
37
+ # starts with \0 but no magic header
38
+
39
+ # .chy Hyphenation file
40
+ # I am not sure: 000 210 034 000 000
41
+
42
+ # other claris files
43
+ #./windows/claris/useng.ndx: data
44
+ #./windows/claris/xtndtran.l32: data
45
+ #./windows/claris/xtndtran.lst: data
46
+ #./windows/claris/clworks.lbl: data
47
+ #./windows/claris/clworks.prf: data
48
+ #./windows/claris/userd.spl: data
@@ -0,0 +1,65 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: clipper,v 1.9 2020/12/15 23:57:27 christos Exp $
4
+ # clipper: file(1) magic for Intergraph (formerly Fairchild) Clipper.
5
+ #
6
+ # XXX - what byte order does the Clipper use?
7
+ #
8
+ # XXX - what's the "!" stuff:
9
+ #
10
+ # >18 short !074000,000000 C1 R1
11
+ # >18 short !074000,004000 C2 R1
12
+ # >18 short !074000,010000 C3 R1
13
+ # >18 short !074000,074000 TEST
14
+ #
15
+ # I shall assume it's ANDing the field with the first value and
16
+ # comparing it with the second, and rewrite it as:
17
+ #
18
+ # >18 short&074000 000000 C1 R1
19
+ # >18 short&074000 004000 C2 R1
20
+ # >18 short&074000 010000 C3 R1
21
+ # >18 short&074000 074000 TEST
22
+ #
23
+ # as SVR3.1's "file" doesn't support anything of the "!074000,000000"
24
+ # sort, nor does SunOS 4.x, so either it's something Intergraph added
25
+ # in CLIX, or something AT&T added in SVR3.2 or later, or something
26
+ # somebody else thought was a good idea; it's not documented in the
27
+ # man page for this version of "magic", nor does it appear to be
28
+ # implemented (at least not after I blew off the bogus code to turn
29
+ # old-style "&"s into new-style "&"s, which just didn't work at all).
30
+ #
31
+ 0 short 0575 CLIPPER COFF executable (VAX #)
32
+ >20 short 0407 (impure)
33
+ >20 short 0410 (5.2 compatible)
34
+ >20 short 0411 (pure)
35
+ >20 short 0413 (demand paged)
36
+ >20 short 0443 (target shared library)
37
+ >12 long >0 not stripped
38
+ >22 short >0 - version %d
39
+ 0 short 0577 CLIPPER COFF executable
40
+ >18 short&074000 000000 C1 R1
41
+ >18 short&074000 004000 C2 R1
42
+ >18 short&074000 010000 C3 R1
43
+ >18 short&074000 074000 TEST
44
+ >20 short 0407 (impure)
45
+ >20 short 0410 (pure)
46
+ >20 short 0411 (separate I&D)
47
+ >20 short 0413 (paged)
48
+ >20 short 0443 (target shared library)
49
+ >12 long >0 not stripped
50
+ >22 short >0 - version %d
51
+ >48 long&01 01 alignment trap enabled
52
+ >52 byte 1 -Ctnc
53
+ >52 byte 2 -Ctsw
54
+ >52 byte 3 -Ctpw
55
+ >52 byte 4 -Ctcb
56
+ >53 byte 1 -Cdnc
57
+ >53 byte 2 -Cdsw
58
+ >53 byte 3 -Cdpw
59
+ >53 byte 4 -Cdcb
60
+ >54 byte 1 -Csnc
61
+ >54 byte 2 -Cssw
62
+ >54 byte 3 -Cspw
63
+ >54 byte 4 -Cscb
64
+ #4 string pipe CLIPPER instruction trace
65
+ #4 string prof CLIPPER instruction profile
@@ -0,0 +1,30 @@
1
+ #------------------------------------------------------------------------------
2
+ # file: file(1) magic for Clojure
3
+ # URL: https://clojure.org/
4
+ # From: Jason Felice <jason.m.felice@gmail.com>
5
+
6
+ 0 string/w #!\ /usr/bin/clj Clojure script text executable
7
+ !:mime text/x-clojure
8
+ 0 string/w #!\ /usr/local/bin/clj Clojure script text executable
9
+ !:mime text/x-clojure
10
+ 0 string/w #!\ /usr/bin/clojure Clojure script text executable
11
+ !:mime text/x-clojure
12
+ 0 string/w #!\ /usr/local/bin/clojure Clojure script text executable
13
+ !:mime text/x-clojure
14
+ 0 string/W #!/usr/bin/env\ clj Clojure script text executable
15
+ !:mime text/x-clojure
16
+ 0 string/W #!/usr/bin/env\ clojure Clojure script text executable
17
+ !:mime text/x-clojure
18
+ 0 string/W #!\ /usr/bin/env\ clj Clojure script text executable
19
+ !:mime text/x-clojure
20
+ 0 string/W #!\ /usr/bin/env\ clojure Clojure script text executable
21
+ !:mime text/x-clojure
22
+
23
+ 0 regex \^\\\(ns[[:space:]]+[a-z] Clojure module source text
24
+ !:mime text/x-clojure
25
+
26
+ 0 regex \^\\\(ns[[:space:]]+\\\^\\{: Clojure module source text
27
+ !:mime text/x-clojure
28
+
29
+ 0 regex \^\\\(defn-?[[:space:]] Clojure module source text
30
+ !:mime text/x-clojure
@@ -0,0 +1,98 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: coff,v 1.7 2022/11/21 22:30:22 christos Exp $
4
+ # coff: file(1) magic for Common Object Files not specific to known cpu types or manufactures
5
+ #
6
+ # COFF
7
+ #
8
+ # by Joerg Jenderek at Oct 2015, Feb 2021
9
+ # https://en.wikipedia.org/wiki/COFF
10
+ # https://de.wikipedia.org/wiki/Common_Object_File_Format
11
+ # http://www.delorie.com/djgpp/doc/coff/filhdr.html
12
+
13
+ # display name+variables+flags of Common Object Files Format (32bit)
14
+ # Maybe used also in adi,att3b,clipper,hitachi-sh,hp,ibm6000,intel,
15
+ # mips,motorola,msdos,osf1,sharc,varied.out,vax
16
+ 0 name display-coff
17
+ # test for unused flag bits (0x8000,0x0800,0x0400,0x0200,x0080) in f_flags
18
+ >18 uleshort&0x8E80 0
19
+ # skip DOCTOR.DAILY READER.NDA REDBOX.ROOT by looking for positive number of sections
20
+ >>2 uleshort >0
21
+ # skip ega80woa.fnt svgafix.fnt HP3FNTS1.DAT HP3FNTS2.DAT INTRO.ACT LEARN.PIF by looking for low number of sections
22
+ >>>2 uleshort <4207
23
+ >>>>0 clear x
24
+ # f_magic - magic number
25
+ # DJGPP, 80386 COFF executable, MS Windows COFF Intel 80386 object file (./intel)
26
+ >>>>0 uleshort 0x014C Intel 80386
27
+ # Hitachi SH big-endian COFF (./hitachi-sh)
28
+ >>>>0 uleshort 0x0500 Hitachi SH big-endian
29
+ # Hitachi SH little-endian COFF (./hitachi-sh)
30
+ >>>>0 uleshort 0x0550 Hitachi SH little-endian
31
+ # executable (RISC System/6000 V3.1) or obj module (./ibm6000)
32
+ #>>>>0 uleshort 0x01DF
33
+ # MS Windows COFF Intel Itanium, AMD64
34
+ # https://msdn.microsoft.com/en-us/library/windows/desktop/ms680313(v=vs.85).aspx
35
+ >>>>0 uleshort 0x0200 Intel ia64
36
+ >>>>0 uleshort 0x8664 Intel amd64
37
+ # ARM COFF (./arm)
38
+ >>>>0 uleshort 0xaa64 Aarch64
39
+ >>>>0 uleshort 0x01c0 ARM
40
+ >>>>0 uleshort 0xa641 ARM64EC
41
+ >>>>0 uleshort 0x01c2 ARM Thumb
42
+ >>>>0 uleshort 0x01c4 ARMv7 Thumb
43
+ # TODO for other COFFs
44
+ #>>>>0 uleshort 0xABCD COFF_TEMPLATE
45
+ >>>>0 default x
46
+ >>>>>0 uleshort x type %#04x
47
+ >>>>0 uleshort x COFF
48
+ # F_EXEC flag bit
49
+ >>>>18 leshort ^0x0002 object file
50
+ !:mime application/x-coff
51
+ !:ext o/obj/lib
52
+ # no cof sample found
53
+ #!:ext cof/o/obj/lib
54
+ >>>>18 leshort &0x0002 executable
55
+ #!:mime application/x-coffexec
56
+ # F_RELFLG flag bit,static object
57
+ >>>>18 leshort &0x0001 \b, no relocation info
58
+ # F_LNNO flag bit
59
+ >>>>18 leshort &0x0004 \b, no line number info
60
+ # F_LSYMS flag bit
61
+ >>>>18 leshort &0x0008 \b, stripped
62
+ >>>>18 leshort ^0x0008 \b, not stripped
63
+ # flags in other COFF versions
64
+ #0x0010 F_FDPR_PROF
65
+ #0x0020 F_FDPR_OPTI
66
+ #0x0040 F_DSA
67
+ # F_AR32WR flag bit
68
+ #>>>>18 leshort &0x0100 \b, 32 bit little endian
69
+ #0x1000 F_DYNLOAD
70
+ #0x2000 F_SHROBJ
71
+ #0x4000 F_LOADONLY
72
+ # f_nscns - number of sections like: 1 2 3 4 5 7 8 9 11 12 15 16 19 20 21 22 26 30 36 40 42 56 80 89 96 124
73
+ >>>>2 uleshort <2 \b, %u section
74
+ >>>>2 uleshort >1 \b, %u sections
75
+ # f_symptr - symbol table pointer, only for not stripped
76
+ # like: 0 0x7c 0xf4 0x104 0x182 0x1c2 0x1c6 0x468 0x948 0x416e 0x149a6 0x1c9d8 0x23a68 0x35120 0x7afa0
77
+ >>>>8 ulelong >0 \b, symbol offset=%#x
78
+ # f_nsyms - number of symbols, only for not stripped
79
+ # like: 0 2 7 9 10 11 20 35 41 63 71 80 105 146 153 158 170 208 294 572 831 1546
80
+ >>>>12 ulelong >0 \b, %d symbols
81
+ # f_opthdr - optional header size. An object file should have a value of 0
82
+ >>>>16 uleshort >0 \b, optional header size %u
83
+ # f_timdat - file time & date stamp only for little endian
84
+ >>>>4 ledate >0 \b, created %s
85
+ # at offset 20 can be optional header, extra bytes FILHSZ-20 because
86
+ # do not rely on sizeof(FILHDR) to give the correct size for header.
87
+ # or first section header
88
+ # additional variables for other COFF files
89
+ >>>>16 uleshort =0
90
+ # first section name s_name[8] like: .text .data .debug$S .drectve .testseg
91
+ >>>>>20 string x \b, 1st section name "%.8s"
92
+ # >20 beshort 0407 (impure)
93
+ # >20 beshort 0410 (pure)
94
+ # >20 beshort 0413 (demand paged)
95
+ # >20 beshort 0421 (standalone)
96
+ # >22 leshort >0 - version %d
97
+ # >168 string .lowmem Apple toolbox
98
+
@@ -0,0 +1,201 @@
1
+
2
+ #------------------------------------------------------------------------------
3
+ # $File: commands,v 1.73 2022/11/06 18:39:23 christos Exp $
4
+ # commands: file(1) magic for various shells and interpreters
5
+ #
6
+ #0 string/w : shell archive or script for antique kernel text
7
+ 0 string/fwt #!\ /bin/sh POSIX shell script text executable
8
+ !:mime text/x-shellscript
9
+ 0 string/fwb #!\ /bin/sh POSIX shell script executable (binary data)
10
+ !:mime text/x-shellscript
11
+ >10 string #\040This\040script\040was\040generated\040using\040Makeself \b, self-executable archive
12
+ >>53 string x \b, Makeself %s
13
+
14
+ 0 string/fwt #!\ /bin/csh C shell script text executable
15
+ !:mime text/x-shellscript
16
+
17
+ # korn shell magic, sent by George Wu, gwu@clyde.att.com
18
+ 0 string/fwt #!\ /bin/ksh Korn shell script text executable
19
+ !:mime text/x-shellscript
20
+ 0 string/fwb #!\ /bin/ksh Korn shell script executable (binary data)
21
+ !:mime text/x-shellscript
22
+
23
+ 0 string/fwt #!\ /bin/tcsh Tenex C shell script text executable
24
+ !:mime text/x-shellscript
25
+ 0 string/fwt #!\ /usr/bin/tcsh Tenex C shell script text executable
26
+ !:mime text/x-shellscript
27
+ 0 string/fwt #!\ /usr/local/tcsh Tenex C shell script text executable
28
+ !:mime text/x-shellscript
29
+ 0 string/fwt #!\ /usr/local/bin/tcsh Tenex C shell script text executable
30
+ !:mime text/x-shellscript
31
+
32
+ #
33
+ # zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
34
+ 0 string/fwt #!\ /bin/zsh Paul Falstad's zsh script text executable
35
+ !:mime text/x-shellscript
36
+ 0 string/fwt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable
37
+ !:mime text/x-shellscript
38
+ 0 string/fwt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable
39
+ !:mime text/x-shellscript
40
+ 0 string/fwt #!\ /usr/bin/env\ zsh Paul Falstad's zsh script text executable
41
+ !:mime text/x-shellscript
42
+
43
+ 0 string/fwt #!\ /bin/ash Neil Brown's ash script text executable
44
+ !:mime text/x-shellscript
45
+ 0 string/fwt #!\ /usr/bin/ash Neil Brown's ash script text executable
46
+ !:mime text/x-shellscript
47
+ 0 string/fwt #!\ /usr/local/bin/ash Neil Brown's ash script text executable
48
+ !:mime text/x-shellscript
49
+ 0 string/fwt #!\ /usr/local/bin/ae Neil Brown's ae script text executable
50
+ !:mime text/x-shellscript
51
+ 0 string/fwt #!\ /bin/nawk new awk script text executable
52
+ !:mime text/x-nawk
53
+ 0 string/fwt #!\ /usr/bin/nawk new awk script text executable
54
+ !:mime text/x-nawk
55
+ 0 string/fwt #!\ /usr/local/bin/nawk new awk script text executable
56
+ !:mime text/x-nawk
57
+ 0 string/fwt #!\ /bin/gawk GNU awk script text executable
58
+ !:mime text/x-gawk
59
+ 0 string/wt #!\ /usr/bin/gawk GNU awk script text executable
60
+ !:mime text/x-gawk
61
+ 0 string/fwt #!\ /usr/local/bin/gawk GNU awk script text executable
62
+ !:mime text/x-gawk
63
+ #
64
+ 0 string/fwt #!\ /bin/awk awk script text executable
65
+ !:mime text/x-awk
66
+ 0 string/fwt #!\ /usr/bin/awk awk script text executable
67
+ !:mime text/x-awk
68
+ 0 regex/4096 =^[\040\t\f\r\n]{0,100}BEGIN[\040\t\f\r\n]{0,100}[{] awk or perl script text
69
+
70
+ # AT&T Bell Labs' Plan 9 shell
71
+ 0 string/fwt #!\ /bin/rc Plan 9 rc shell script text executable
72
+
73
+ # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
74
+ 0 string/fwt #!\ /bin/bash Bourne-Again shell script text executable
75
+ !:mime text/x-shellscript
76
+ 0 string/fwb #!\ /bin/bash Bourne-Again shell script executable (binary data)
77
+ !:mime text/x-shellscript
78
+ 0 string/fwt #!\ /usr/bin/bash Bourne-Again shell script text executable
79
+ !:mime text/x-shellscript
80
+ 0 string/fwb #!\ /usr/bin/bash Bourne-Again shell script executable (binary data)
81
+ !:mime text/x-shellscript
82
+ 0 string/fwt #!\ /usr/local/bash Bourne-Again shell script text executable
83
+ !:mime text/x-shellscript
84
+ 0 string/fwb #!\ /usr/local/bash Bourne-Again shell script executable (binary data)
85
+ !:mime text/x-shellscript
86
+ 0 string/fwt #!\ /usr/local/bin/bash Bourne-Again shell script text executable
87
+ !:mime text/x-shellscript
88
+ 0 string/fwb #!\ /usr/local/bin/bash Bourne-Again shell script executable (binary data)
89
+ !:mime text/x-shellscript
90
+ 0 string/fwt #!\ /usr/bin/env\ bash Bourne-Again shell script text executable
91
+ !:mime text/x-shellscript
92
+
93
+ # Fish shell magic
94
+ # From: Benjamin Lowry <ben@ben.gmbh>
95
+ 0 string/fwt #!\ /usr/local/bin/fish fish shell script text executable
96
+ !:mime text/x-shellscript
97
+ 0 string/fwt #!\ /usr/bin/fish fish shell script text executable
98
+ !:mime text/x-shellscript
99
+ 0 string/fwt #!\ /usr/bin/env\ fish fish shell script text executable
100
+ !:mime text/x-shellscript
101
+
102
+ 0 search/1/fwt #!\ /usr/bin/tclsh Tcl/Tk script text executable
103
+ !:mime text/x-tcl
104
+
105
+ 0 search/1/fwt #!\ /usr/bin/texlua LuaTex script text executable
106
+ !:mime text/x-luatex
107
+
108
+ 0 search/1/fwt #!\ /usr/bin/luatex LuaTex script text executable
109
+ !:mime text/x-luatex
110
+
111
+ 0 search/1/fwt #!\ /usr/bin/stap Systemtap script text executable
112
+ !:mime text/x-systemtap
113
+
114
+ # From: Kylie McClain <kylie@somas.is>
115
+ # Type: execline scripts
116
+ # URL: https://skarnet.org/software/execline/
117
+ 0 string/fwt #!\ /command/execlineb execline script text executable
118
+ !:mime text/x-execline
119
+ 0 string/fwt #!\ /bin/execlineb execline script text executable
120
+ !:mime text/x-execline
121
+ 0 string/fwt #!\ /usr/bin/execlineb execline script text executable
122
+ !:mime text/x-execline
123
+ 0 string/fwt #!\ /usr/bin/env\ execlineb execline script text executable
124
+ !:mime text/x-execline
125
+
126
+ 0 string #!
127
+ >0 regex \^#!.*/bin/execlineb([[:space:]].*)*$ execline script text executable
128
+ !:mime text/x-execline
129
+
130
+ # PHP scripts
131
+ # Ulf Harnhammar <ulfh@update.uu.se>
132
+ 0 search/1/c =<?php PHP script text
133
+ !:strength + 30
134
+ !:mime text/x-php
135
+ 0 search/1 =<?\n PHP script text
136
+ !:mime text/x-php
137
+ 0 search/1 =<?\r PHP script text
138
+ !:mime text/x-php
139
+ 0 search/1/w #!\ /usr/local/bin/php PHP script text executable
140
+ !:strength + 10
141
+ !:mime text/x-php
142
+ 0 search/1/w #!\ /usr/bin/php PHP script text executable
143
+ !:strength + 10
144
+ !:mime text/x-php
145
+ # Smarty compiled template, https://www.smarty.net/
146
+ # Elan Ruusamae <glen@delfi.ee>
147
+ 0 string =<?php
148
+ >5 regex [\ \n]
149
+ >>6 string /*\ Smarty\ version Smarty compiled template
150
+ >>>24 regex [0-9.]+ \b, version %s
151
+ !:mime text/x-php
152
+
153
+ 0 string Zend\x00 PHP script Zend Optimizer data
154
+
155
+ # From: Anatol Belski <ab@php.net>
156
+ 0 string OPCACHE
157
+ >7 ubyte 0 PHP opcache filecache data
158
+
159
+ 0 search/64 --TEST--
160
+ >16 search/64 --FILE--
161
+ >24 search/8192 --EXPECT PHP core test
162
+ !:ext phpt
163
+
164
+ # https://www.php.net/manual/en/phar.fileformat.signature.php
165
+ -4 string GBMB PHP phar archive
166
+ >-8 ubyte 0x1 with MD5 signature
167
+ !:ext phar
168
+ >-8 ubyte 0x2 with SHA1 signature
169
+ !:ext phar
170
+ >-8 ubyte 0x3 with SHA256 signature
171
+ !:ext phar
172
+ >-8 ubyte 0x4 with SHA512 signature
173
+ !:ext phar
174
+ >-8 ubyte 0x10 with OpenSSL signature
175
+ !:ext phar
176
+ >-8 ubyte 0x11 with OpenSSL SHA256 signature
177
+ !:ext phar
178
+ >-8 ubyte 0x12 with OpenSSL SHA512 signature
179
+ !:ext phar
180
+
181
+ 0 string/t $! DCL command file
182
+
183
+ # Type: Pdmenu
184
+ # URL: https://packages.debian.org/pdmenu
185
+ # From: Edward Betts <edward@debian.org>
186
+ 0 string #!/usr/bin/pdmenu Pdmenu configuration file text
187
+
188
+ # From Danny Weldon
189
+ 0 string \x0b\x13\x08\x00
190
+ >0x04 uleshort <4 ksh byte-code version %d
191
+
192
+ # From: arno <arenevier@fdn.fr>
193
+ # mozilla xpconnect typelib
194
+ # see https://www.mozilla.org/scriptable/typelib_file.html
195
+ 0 string XPCOM\nTypeLib\r\n\032 XPConnect Typelib
196
+ >0x10 byte x version %d
197
+ >>0x11 byte x \b.%d
198
+
199
+ 0 string/fwt #!\ /usr/bin/env\ runghc GHC script executable
200
+ 0 string/fwt #!\ /usr/bin/env\ runhaskell Haskell script executable
201
+ 0 string/fwt #!\ /usr/bin/env\ julia Julia script executable
@@ -0,0 +1,22 @@
1
+
2
+ #----------------------------------------------------------------------------
3
+ # $File: communications,v 1.5 2009/09/19 16:28:08 christos Exp $
4
+ # communication
5
+
6
+ # TTCN is the Tree and Tabular Combined Notation described in ISO 9646-3.
7
+ # It is used for conformance testing of communication protocols.
8
+ # Added by W. Borgert <debacle@debian.org>.
9
+ 0 string $Suite TTCN Abstract Test Suite
10
+ >&1 string $SuiteId
11
+ >>&1 string >\n %s
12
+ >&2 string $SuiteId
13
+ >>&1 string >\n %s
14
+ >&3 string $SuiteId
15
+ >>&1 string >\n %s
16
+
17
+ # MSC (message sequence charts) are a formal description technique,
18
+ # described in ITU-T Z.120, mainly used for communication protocols.
19
+ # Added by W. Borgert <debacle@debian.org>.
20
+ 0 string mscdocument Message Sequence Chart (document)
21
+ 0 string msc Message Sequence Chart (chart)
22
+ 0 string submsc Message Sequence Chart (subchart)