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.
- polyfile/__init__.py +15 -0
- polyfile/__main__.py +394 -0
- polyfile/arithmetic.py +27 -0
- polyfile/ast.py +114 -0
- polyfile/debugger.py +1039 -0
- polyfile/expressions.py +346 -0
- polyfile/fileutils.py +343 -0
- polyfile/html.py +135 -0
- polyfile/http/__init__.py +1 -0
- polyfile/http/defacto.py +37 -0
- polyfile/http/deprecated.py +51 -0
- polyfile/http/experimental.py +67 -0
- polyfile/http/http_11.py +548 -0
- polyfile/http/matcher.py +37 -0
- polyfile/http/structured_headers.py +48 -0
- polyfile/iterators.py +72 -0
- polyfile/jpeg.py +24 -0
- polyfile/kaitai/__init__.py +0 -0
- polyfile/kaitai/compiler.py +156 -0
- polyfile/kaitai/parser.py +312 -0
- polyfile/kaitai/parsers/__init__.py +0 -0
- polyfile/kaitai/parsers/aix_utmp.py +116 -0
- polyfile/kaitai/parsers/allegro_dat.py +367 -0
- polyfile/kaitai/parsers/andes_firmware.py +64 -0
- polyfile/kaitai/parsers/android_bootldr_asus.py +105 -0
- polyfile/kaitai/parsers/android_bootldr_huawei.py +181 -0
- polyfile/kaitai/parsers/android_bootldr_qcom.py +217 -0
- polyfile/kaitai/parsers/android_dto.py +138 -0
- polyfile/kaitai/parsers/android_img.py +319 -0
- polyfile/kaitai/parsers/android_nanoapp_header.py +83 -0
- polyfile/kaitai/parsers/android_opengl_shaders_cache.py +151 -0
- polyfile/kaitai/parsers/android_sparse.py +237 -0
- polyfile/kaitai/parsers/android_super.py +401 -0
- polyfile/kaitai/parsers/apm_partition_table.py +196 -0
- polyfile/kaitai/parsers/apple_single_double.py +180 -0
- polyfile/kaitai/parsers/asn1_der.py +235 -0
- polyfile/kaitai/parsers/au.py +138 -0
- polyfile/kaitai/parsers/avantes_roh60.py +112 -0
- polyfile/kaitai/parsers/avi.py +296 -0
- polyfile/kaitai/parsers/bcd.py +111 -0
- polyfile/kaitai/parsers/bitcoin_transaction.py +210 -0
- polyfile/kaitai/parsers/blender_blend.py +334 -0
- polyfile/kaitai/parsers/bmp.py +780 -0
- polyfile/kaitai/parsers/bson.py +411 -0
- polyfile/kaitai/parsers/btrfs_stream.py +318 -0
- polyfile/kaitai/parsers/bytes_with_io.py +27 -0
- polyfile/kaitai/parsers/chrome_pak.py +194 -0
- polyfile/kaitai/parsers/code_6502.py +456 -0
- polyfile/kaitai/parsers/compressed_resource.py +217 -0
- polyfile/kaitai/parsers/cpio_old_le.py +154 -0
- polyfile/kaitai/parsers/cramfs.py +344 -0
- polyfile/kaitai/parsers/creative_voice_file.py +342 -0
- polyfile/kaitai/parsers/dbf.py +274 -0
- polyfile/kaitai/parsers/dcmp_0.py +664 -0
- polyfile/kaitai/parsers/dcmp_1.py +422 -0
- polyfile/kaitai/parsers/dcmp_2.py +312 -0
- polyfile/kaitai/parsers/dcmp_variable_length_integer.py +66 -0
- polyfile/kaitai/parsers/dex.py +1086 -0
- polyfile/kaitai/parsers/dicom.py +4370 -0
- polyfile/kaitai/parsers/dime_message.py +201 -0
- polyfile/kaitai/parsers/dns_packet.py +569 -0
- polyfile/kaitai/parsers/doom_wad.py +654 -0
- polyfile/kaitai/parsers/dos_datetime.py +191 -0
- polyfile/kaitai/parsers/dos_mz.py +172 -0
- polyfile/kaitai/parsers/ds_store.py +513 -0
- polyfile/kaitai/parsers/dtb.py +310 -0
- polyfile/kaitai/parsers/dune_2_pak.py +126 -0
- polyfile/kaitai/parsers/edid.py +472 -0
- polyfile/kaitai/parsers/efivar_signature_list.py +331 -0
- polyfile/kaitai/parsers/elf.py +2482 -0
- polyfile/kaitai/parsers/ethernet_frame.py +114 -0
- polyfile/kaitai/parsers/exif.py +723 -0
- polyfile/kaitai/parsers/ext2.py +537 -0
- polyfile/kaitai/parsers/fallout2_dat.py +187 -0
- polyfile/kaitai/parsers/fallout_dat.py +156 -0
- polyfile/kaitai/parsers/fasttracker_xm_module.py +558 -0
- polyfile/kaitai/parsers/ftl_dat.py +90 -0
- polyfile/kaitai/parsers/genmidi_op2.py +161 -0
- polyfile/kaitai/parsers/gettext_mo.py +541 -0
- polyfile/kaitai/parsers/gif.py +492 -0
- polyfile/kaitai/parsers/gimp_brush.py +244 -0
- polyfile/kaitai/parsers/glibc_utmp.py +114 -0
- polyfile/kaitai/parsers/gltf_binary.py +132 -0
- polyfile/kaitai/parsers/google_protobuf.py +151 -0
- polyfile/kaitai/parsers/gpt_partition_table.py +175 -0
- polyfile/kaitai/parsers/gran_turismo_vol.py +140 -0
- polyfile/kaitai/parsers/grub2_font.py +337 -0
- polyfile/kaitai/parsers/gzip.py +232 -0
- polyfile/kaitai/parsers/hashcat_restore.py +60 -0
- polyfile/kaitai/parsers/hccap.py +111 -0
- polyfile/kaitai/parsers/hccapx.py +103 -0
- polyfile/kaitai/parsers/heaps_pak.py +177 -0
- polyfile/kaitai/parsers/heroes_of_might_and_magic_agg.py +116 -0
- polyfile/kaitai/parsers/heroes_of_might_and_magic_bmp.py +34 -0
- polyfile/kaitai/parsers/icmp_packet.py +136 -0
- polyfile/kaitai/parsers/ico.py +129 -0
- polyfile/kaitai/parsers/id3v1_1.py +220 -0
- polyfile/kaitai/parsers/id3v2_3.py +324 -0
- polyfile/kaitai/parsers/id3v2_4.py +423 -0
- polyfile/kaitai/parsers/ines.py +282 -0
- polyfile/kaitai/parsers/ipv4_packet.py +158 -0
- polyfile/kaitai/parsers/ipv6_packet.py +55 -0
- polyfile/kaitai/parsers/iso9660.py +544 -0
- polyfile/kaitai/parsers/java_class.py +1113 -0
- polyfile/kaitai/parsers/jpeg.py +361 -0
- polyfile/kaitai/parsers/luks.py +149 -0
- polyfile/kaitai/parsers/lzh.py +165 -0
- polyfile/kaitai/parsers/mac_os_resource_snd.py +493 -0
- polyfile/kaitai/parsers/mach_o.py +3033 -0
- polyfile/kaitai/parsers/mach_o_fat.py +92 -0
- polyfile/kaitai/parsers/magicavoxel_vox.py +391 -0
- polyfile/kaitai/parsers/manifest.json +1 -0
- polyfile/kaitai/parsers/mbr_partition_table.py +119 -0
- polyfile/kaitai/parsers/mcap.py +1015 -0
- polyfile/kaitai/parsers/microsoft_cfb.py +293 -0
- polyfile/kaitai/parsers/microsoft_network_monitor_v2.py +309 -0
- polyfile/kaitai/parsers/microsoft_pe.py +765 -0
- polyfile/kaitai/parsers/mifare_classic.py +706 -0
- polyfile/kaitai/parsers/minecraft_nbt.py +449 -0
- polyfile/kaitai/parsers/monomakh_sapr_chg.py +69 -0
- polyfile/kaitai/parsers/mozilla_mar.py +239 -0
- polyfile/kaitai/parsers/mp4.py +333 -0
- polyfile/kaitai/parsers/msgpack.py +467 -0
- polyfile/kaitai/parsers/nitf.py +1189 -0
- polyfile/kaitai/parsers/nt_mdt_pal.py +155 -0
- polyfile/kaitai/parsers/ogg.py +118 -0
- polyfile/kaitai/parsers/openpgp_message.py +993 -0
- polyfile/kaitai/parsers/packet_ppi.py +515 -0
- polyfile/kaitai/parsers/pcap.py +344 -0
- polyfile/kaitai/parsers/pcf_font.py +506 -0
- polyfile/kaitai/parsers/pcx.py +195 -0
- polyfile/kaitai/parsers/pcx_dcx.py +79 -0
- polyfile/kaitai/parsers/phar_without_stub.py +399 -0
- polyfile/kaitai/parsers/php_serialized_value.py +505 -0
- polyfile/kaitai/parsers/png.py +721 -0
- polyfile/kaitai/parsers/protocol_body.py +260 -0
- polyfile/kaitai/parsers/psx_tim.py +104 -0
- polyfile/kaitai/parsers/python_pickle.py +718 -0
- polyfile/kaitai/parsers/python_pyc_27.py +510 -0
- polyfile/kaitai/parsers/quake_mdl.py +441 -0
- polyfile/kaitai/parsers/quake_pak.py +112 -0
- polyfile/kaitai/parsers/quicktime_mov.py +634 -0
- polyfile/kaitai/parsers/rar.py +265 -0
- polyfile/kaitai/parsers/regf.py +569 -0
- polyfile/kaitai/parsers/renderware_binary_stream.py +877 -0
- polyfile/kaitai/parsers/resource_fork.py +611 -0
- polyfile/kaitai/parsers/respack.py +57 -0
- polyfile/kaitai/parsers/riff.py +409 -0
- polyfile/kaitai/parsers/rpm.py +964 -0
- polyfile/kaitai/parsers/rtcp_payload.py +579 -0
- polyfile/kaitai/parsers/rtp_packet.py +150 -0
- polyfile/kaitai/parsers/rtpdump.py +115 -0
- polyfile/kaitai/parsers/ruby_marshal.py +423 -0
- polyfile/kaitai/parsers/s3m.py +493 -0
- polyfile/kaitai/parsers/saints_row_2_vpp_pc.py +254 -0
- polyfile/kaitai/parsers/shapefile_index.py +174 -0
- polyfile/kaitai/parsers/shapefile_main.py +893 -0
- polyfile/kaitai/parsers/some_ip.py +209 -0
- polyfile/kaitai/parsers/some_ip_container.py +37 -0
- polyfile/kaitai/parsers/some_ip_sd.py +86 -0
- polyfile/kaitai/parsers/some_ip_sd_entries.py +160 -0
- polyfile/kaitai/parsers/some_ip_sd_options.py +374 -0
- polyfile/kaitai/parsers/specpr.py +404 -0
- polyfile/kaitai/parsers/sqlite3.py +472 -0
- polyfile/kaitai/parsers/ssh_public_key.py +252 -0
- polyfile/kaitai/parsers/standard_midi_file.py +390 -0
- polyfile/kaitai/parsers/stl.py +111 -0
- polyfile/kaitai/parsers/sudoers_ts.py +201 -0
- polyfile/kaitai/parsers/swf.py +406 -0
- polyfile/kaitai/parsers/systemd_journal.py +361 -0
- polyfile/kaitai/parsers/tcp_segment.py +57 -0
- polyfile/kaitai/parsers/tga.py +213 -0
- polyfile/kaitai/parsers/tls_client_hello.py +293 -0
- polyfile/kaitai/parsers/tr_dos_image.py +322 -0
- polyfile/kaitai/parsers/tsm.py +198 -0
- polyfile/kaitai/parsers/ttf.py +1847 -0
- polyfile/kaitai/parsers/udp_datagram.py +42 -0
- polyfile/kaitai/parsers/uefi_te.py +236 -0
- polyfile/kaitai/parsers/uimage.py +198 -0
- polyfile/kaitai/parsers/utf8_string.py +137 -0
- polyfile/kaitai/parsers/vfat.py +410 -0
- polyfile/kaitai/parsers/vlq_base128_be.py +104 -0
- polyfile/kaitai/parsers/vlq_base128_le.py +129 -0
- polyfile/kaitai/parsers/vmware_vmdk.py +167 -0
- polyfile/kaitai/parsers/vp8_ivf.py +112 -0
- polyfile/kaitai/parsers/warcraft_2_pud.py +423 -0
- polyfile/kaitai/parsers/wav.py +1014 -0
- polyfile/kaitai/parsers/websocket.py +167 -0
- polyfile/kaitai/parsers/windows_evt_log.py +304 -0
- polyfile/kaitai/parsers/windows_lnk_file.py +467 -0
- polyfile/kaitai/parsers/windows_minidump.py +575 -0
- polyfile/kaitai/parsers/windows_resource_file.py +243 -0
- polyfile/kaitai/parsers/windows_shell_items.py +190 -0
- polyfile/kaitai/parsers/windows_systemtime.py +52 -0
- polyfile/kaitai/parsers/wmf.py +502 -0
- polyfile/kaitai/parsers/xar.py +181 -0
- polyfile/kaitai/parsers/xwd.py +189 -0
- polyfile/kaitai/parsers/zip.py +685 -0
- polyfile/kaitai/parsers/zisofs.py +158 -0
- polyfile/kaitai/parsers/zx_spectrum_tap.py +184 -0
- polyfile/kaitaimatcher.py +113 -0
- polyfile/languagematcher.py +217 -0
- polyfile/logger.py +135 -0
- polyfile/magic.py +2983 -0
- polyfile/magic_defs/COPYING +29 -0
- polyfile/magic_defs/__init__.py +0 -0
- polyfile/magic_defs/acorn +102 -0
- polyfile/magic_defs/adi +13 -0
- polyfile/magic_defs/adventure +122 -0
- polyfile/magic_defs/aes +29 -0
- polyfile/magic_defs/algol68 +35 -0
- polyfile/magic_defs/allegro +9 -0
- polyfile/magic_defs/alliant +18 -0
- polyfile/magic_defs/alpha +32 -0
- polyfile/magic_defs/amanda +12 -0
- polyfile/magic_defs/amigaos +218 -0
- polyfile/magic_defs/android +259 -0
- polyfile/magic_defs/animation +1197 -0
- polyfile/magic_defs/aout +46 -0
- polyfile/magic_defs/apache +28 -0
- polyfile/magic_defs/apl +7 -0
- polyfile/magic_defs/apple +773 -0
- polyfile/magic_defs/application +7 -0
- polyfile/magic_defs/applix +13 -0
- polyfile/magic_defs/apt +52 -0
- polyfile/magic_defs/archive +2586 -0
- polyfile/magic_defs/aria +38 -0
- polyfile/magic_defs/arm +50 -0
- polyfile/magic_defs/asf +132 -0
- polyfile/magic_defs/assembler +18 -0
- polyfile/magic_defs/asterix +18 -0
- polyfile/magic_defs/att3b +41 -0
- polyfile/magic_defs/audio +1291 -0
- polyfile/magic_defs/avm +33 -0
- polyfile/magic_defs/basis +18 -0
- polyfile/magic_defs/beetle +7 -0
- polyfile/magic_defs/ber +65 -0
- polyfile/magic_defs/bflt +14 -0
- polyfile/magic_defs/bhl +10 -0
- polyfile/magic_defs/bioinformatics +178 -0
- polyfile/magic_defs/biosig +154 -0
- polyfile/magic_defs/blackberry +8 -0
- polyfile/magic_defs/blcr +25 -0
- polyfile/magic_defs/blender +50 -0
- polyfile/magic_defs/blit +24 -0
- polyfile/magic_defs/bm +10 -0
- polyfile/magic_defs/bout +11 -0
- polyfile/magic_defs/bsdi +33 -0
- polyfile/magic_defs/bsi +10 -0
- polyfile/magic_defs/btsnoop +13 -0
- polyfile/magic_defs/burp +7 -0
- polyfile/magic_defs/bytecode +41 -0
- polyfile/magic_defs/c-lang +110 -0
- polyfile/magic_defs/c64 +531 -0
- polyfile/magic_defs/cad +437 -0
- polyfile/magic_defs/cafebabe +107 -0
- polyfile/magic_defs/cbor +21 -0
- polyfile/magic_defs/ccf +14 -0
- polyfile/magic_defs/cddb +12 -0
- polyfile/magic_defs/chord +15 -0
- polyfile/magic_defs/cisco +12 -0
- polyfile/magic_defs/citrus +12 -0
- polyfile/magic_defs/clarion +27 -0
- polyfile/magic_defs/claris +48 -0
- polyfile/magic_defs/clipper +65 -0
- polyfile/magic_defs/clojure +30 -0
- polyfile/magic_defs/coff +98 -0
- polyfile/magic_defs/commands +201 -0
- polyfile/magic_defs/communications +22 -0
- polyfile/magic_defs/compress +461 -0
- polyfile/magic_defs/console +1213 -0
- polyfile/magic_defs/convex +69 -0
- polyfile/magic_defs/coverage +91 -0
- polyfile/magic_defs/cracklib +14 -0
- polyfile/magic_defs/crypto +31 -0
- polyfile/magic_defs/csv +8 -0
- polyfile/magic_defs/ctags +6 -0
- polyfile/magic_defs/ctf +23 -0
- polyfile/magic_defs/cubemap +8 -0
- polyfile/magic_defs/cups +56 -0
- polyfile/magic_defs/dact +11 -0
- polyfile/magic_defs/database +886 -0
- polyfile/magic_defs/dataone +47 -0
- polyfile/magic_defs/dbpf +15 -0
- polyfile/magic_defs/der +146 -0
- polyfile/magic_defs/diamond +12 -0
- polyfile/magic_defs/dif +33 -0
- polyfile/magic_defs/diff +41 -0
- polyfile/magic_defs/digital +59 -0
- polyfile/magic_defs/dolby +69 -0
- polyfile/magic_defs/dsf +25 -0
- polyfile/magic_defs/dump +96 -0
- polyfile/magic_defs/dwarfs +45 -0
- polyfile/magic_defs/dyadic +61 -0
- polyfile/magic_defs/ebml +8 -0
- polyfile/magic_defs/edid +11 -0
- polyfile/magic_defs/editors +43 -0
- polyfile/magic_defs/efi +15 -0
- polyfile/magic_defs/elf +379 -0
- polyfile/magic_defs/encore +22 -0
- polyfile/magic_defs/epoc +62 -0
- polyfile/magic_defs/erlang +21 -0
- polyfile/magic_defs/espressif +57 -0
- polyfile/magic_defs/esri +28 -0
- polyfile/magic_defs/etf +33 -0
- polyfile/magic_defs/fcs +9 -0
- polyfile/magic_defs/filesystems +2694 -0
- polyfile/magic_defs/finger +16 -0
- polyfile/magic_defs/firmware +133 -0
- polyfile/magic_defs/flash +62 -0
- polyfile/magic_defs/flif +36 -0
- polyfile/magic_defs/fonts +449 -0
- polyfile/magic_defs/forth +82 -0
- polyfile/magic_defs/fortran +9 -0
- polyfile/magic_defs/frame +62 -0
- polyfile/magic_defs/freebsd +164 -0
- polyfile/magic_defs/fsav +128 -0
- polyfile/magic_defs/fusecompress +12 -0
- polyfile/magic_defs/games +696 -0
- polyfile/magic_defs/gcc +17 -0
- polyfile/magic_defs/gconv +10 -0
- polyfile/magic_defs/gentoo +85 -0
- polyfile/magic_defs/geo +166 -0
- polyfile/magic_defs/geos +20 -0
- polyfile/magic_defs/gimp +77 -0
- polyfile/magic_defs/git +13 -0
- polyfile/magic_defs/glibc +21 -0
- polyfile/magic_defs/gnome +59 -0
- polyfile/magic_defs/gnu +173 -0
- polyfile/magic_defs/gnumeric +8 -0
- polyfile/magic_defs/gpt +240 -0
- polyfile/magic_defs/gpu +28 -0
- polyfile/magic_defs/grace +21 -0
- polyfile/magic_defs/graphviz +12 -0
- polyfile/magic_defs/gringotts +48 -0
- polyfile/magic_defs/guile +13 -0
- polyfile/magic_defs/hardware +12 -0
- polyfile/magic_defs/hitachi-sh +30 -0
- polyfile/magic_defs/hp +433 -0
- polyfile/magic_defs/human68k +26 -0
- polyfile/magic_defs/ibm370 +52 -0
- polyfile/magic_defs/ibm6000 +35 -0
- polyfile/magic_defs/icc +214 -0
- polyfile/magic_defs/iff +80 -0
- polyfile/magic_defs/images +4210 -0
- polyfile/magic_defs/inform +9 -0
- polyfile/magic_defs/intel +310 -0
- polyfile/magic_defs/interleaf +9 -0
- polyfile/magic_defs/island +10 -0
- polyfile/magic_defs/ispell +63 -0
- polyfile/magic_defs/isz +15 -0
- polyfile/magic_defs/java +52 -0
- polyfile/magic_defs/javascript +171 -0
- polyfile/magic_defs/jpeg +252 -0
- polyfile/magic_defs/json +8 -0
- polyfile/magic_defs/karma +9 -0
- polyfile/magic_defs/kde +11 -0
- polyfile/magic_defs/keepass +20 -0
- polyfile/magic_defs/kerberos +45 -0
- polyfile/magic_defs/kicad +85 -0
- polyfile/magic_defs/kml +34 -0
- polyfile/magic_defs/lammps +64 -0
- polyfile/magic_defs/lecter +6 -0
- polyfile/magic_defs/lex +12 -0
- polyfile/magic_defs/lif +50 -0
- polyfile/magic_defs/linux +557 -0
- polyfile/magic_defs/lisp +78 -0
- polyfile/magic_defs/llvm +22 -0
- polyfile/magic_defs/locoscript +12 -0
- polyfile/magic_defs/lua +31 -0
- polyfile/magic_defs/luks +126 -0
- polyfile/magic_defs/m4 +11 -0
- polyfile/magic_defs/mach +303 -0
- polyfile/magic_defs/macintosh +505 -0
- polyfile/magic_defs/macos +7 -0
- polyfile/magic_defs/magic +10 -0
- polyfile/magic_defs/magic.mgc +0 -0
- polyfile/magic_defs/mail.news +132 -0
- polyfile/magic_defs/make +21 -0
- polyfile/magic_defs/map +413 -0
- polyfile/magic_defs/maple +109 -0
- polyfile/magic_defs/marc21 +30 -0
- polyfile/magic_defs/mathcad +8 -0
- polyfile/magic_defs/mathematica +188 -0
- polyfile/magic_defs/matroska +17 -0
- polyfile/magic_defs/mcrypt +52 -0
- polyfile/magic_defs/measure +44 -0
- polyfile/magic_defs/mercurial +13 -0
- polyfile/magic_defs/metastore +8 -0
- polyfile/magic_defs/meteorological +53 -0
- polyfile/magic_defs/microfocus +21 -0
- polyfile/magic_defs/mime +9 -0
- polyfile/magic_defs/mips +120 -0
- polyfile/magic_defs/mirage +8 -0
- polyfile/magic_defs/misctools +140 -0
- polyfile/magic_defs/mkid +11 -0
- polyfile/magic_defs/mlssa +8 -0
- polyfile/magic_defs/mmdf +6 -0
- polyfile/magic_defs/modem +92 -0
- polyfile/magic_defs/modulefile +9 -0
- polyfile/magic_defs/motorola +71 -0
- polyfile/magic_defs/mozilla +37 -0
- polyfile/magic_defs/msdos +2304 -0
- polyfile/magic_defs/msooxml +68 -0
- polyfile/magic_defs/msvc +222 -0
- polyfile/magic_defs/msx +309 -0
- polyfile/magic_defs/mup +24 -0
- polyfile/magic_defs/music +17 -0
- polyfile/magic_defs/nasa +7 -0
- polyfile/magic_defs/natinst +24 -0
- polyfile/magic_defs/ncr +49 -0
- polyfile/magic_defs/neko +12 -0
- polyfile/magic_defs/netbsd +251 -0
- polyfile/magic_defs/netscape +26 -0
- polyfile/magic_defs/netware +11 -0
- polyfile/magic_defs/news +13 -0
- polyfile/magic_defs/nifty +202 -0
- polyfile/magic_defs/nim-lang +29 -0
- polyfile/magic_defs/nitpicker +14 -0
- polyfile/magic_defs/numpy +9 -0
- polyfile/magic_defs/oasis +12 -0
- polyfile/magic_defs/ocaml +14 -0
- polyfile/magic_defs/octave +6 -0
- polyfile/magic_defs/ole2compounddocs +760 -0
- polyfile/magic_defs/olf +98 -0
- polyfile/magic_defs/openfst +17 -0
- polyfile/magic_defs/opentimestamps +16 -0
- polyfile/magic_defs/oric +16 -0
- polyfile/magic_defs/os2 +186 -0
- polyfile/magic_defs/os400 +39 -0
- polyfile/magic_defs/os9 +80 -0
- polyfile/magic_defs/osf1 +10 -0
- polyfile/magic_defs/palm +156 -0
- polyfile/magic_defs/parix +13 -0
- polyfile/magic_defs/parrot +22 -0
- polyfile/magic_defs/pascal +39 -0
- polyfile/magic_defs/pbf +11 -0
- polyfile/magic_defs/pbm +8 -0
- polyfile/magic_defs/pc88 +24 -0
- polyfile/magic_defs/pc98 +77 -0
- polyfile/magic_defs/pci_ids +116 -0
- polyfile/magic_defs/pcjr +8 -0
- polyfile/magic_defs/pdf +51 -0
- polyfile/magic_defs/pdp +42 -0
- polyfile/magic_defs/perl +100 -0
- polyfile/magic_defs/pgf +52 -0
- polyfile/magic_defs/pgp +581 -0
- polyfile/magic_defs/pgp-binary-keys +388 -0
- polyfile/magic_defs/pkgadd +7 -0
- polyfile/magic_defs/plan9 +25 -0
- polyfile/magic_defs/playdate +57 -0
- polyfile/magic_defs/plus5 +18 -0
- polyfile/magic_defs/pmem +46 -0
- polyfile/magic_defs/polyfile_zip +5 -0
- polyfile/magic_defs/polyml +23 -0
- polyfile/magic_defs/printer +269 -0
- polyfile/magic_defs/project +10 -0
- polyfile/magic_defs/psdbms +14 -0
- polyfile/magic_defs/psl +14 -0
- polyfile/magic_defs/pulsar +13 -0
- polyfile/magic_defs/puzzle +17 -0
- polyfile/magic_defs/pwsafe +14 -0
- polyfile/magic_defs/pyramid +12 -0
- polyfile/magic_defs/python +305 -0
- polyfile/magic_defs/qt +30 -0
- polyfile/magic_defs/revision +66 -0
- polyfile/magic_defs/riff +840 -0
- polyfile/magic_defs/rinex +44 -0
- polyfile/magic_defs/ringdove +45 -0
- polyfile/magic_defs/rpi +52 -0
- polyfile/magic_defs/rpm +45 -0
- polyfile/magic_defs/rpmsg +7 -0
- polyfile/magic_defs/rst +11 -0
- polyfile/magic_defs/rtf +94 -0
- polyfile/magic_defs/ruby +55 -0
- polyfile/magic_defs/rust +21 -0
- polyfile/magic_defs/sc +7 -0
- polyfile/magic_defs/sccs +24 -0
- polyfile/magic_defs/scientific +144 -0
- polyfile/magic_defs/securitycerts +6 -0
- polyfile/magic_defs/selinux +24 -0
- polyfile/magic_defs/sendmail +37 -0
- polyfile/magic_defs/sequent +42 -0
- polyfile/magic_defs/sereal +35 -0
- polyfile/magic_defs/sgi +144 -0
- polyfile/magic_defs/sgml +161 -0
- polyfile/magic_defs/sharc +23 -0
- polyfile/magic_defs/sinclair +40 -0
- polyfile/magic_defs/sisu +18 -0
- polyfile/magic_defs/sketch +6 -0
- polyfile/magic_defs/smalltalk +25 -0
- polyfile/magic_defs/smile +34 -0
- polyfile/magic_defs/sniffer +482 -0
- polyfile/magic_defs/softquad +40 -0
- polyfile/magic_defs/sosi +40 -0
- polyfile/magic_defs/spec +21 -0
- polyfile/magic_defs/spectrum +184 -0
- polyfile/magic_defs/sql +288 -0
- polyfile/magic_defs/ssh +39 -0
- polyfile/magic_defs/ssl +20 -0
- polyfile/magic_defs/statistics +45 -0
- polyfile/magic_defs/subtitle +38 -0
- polyfile/magic_defs/sun +141 -0
- polyfile/magic_defs/svf +5 -0
- polyfile/magic_defs/sylk +36 -0
- polyfile/magic_defs/symbos +42 -0
- polyfile/magic_defs/sysex +429 -0
- polyfile/magic_defs/tcl +29 -0
- polyfile/magic_defs/teapot +6 -0
- polyfile/magic_defs/terminfo +63 -0
- polyfile/magic_defs/tex +141 -0
- polyfile/magic_defs/tgif +7 -0
- polyfile/magic_defs/ti-8x +239 -0
- polyfile/magic_defs/timezone +42 -0
- polyfile/magic_defs/tplink +95 -0
- polyfile/magic_defs/troff +38 -0
- polyfile/magic_defs/tuxedo +8 -0
- polyfile/magic_defs/typeset +8 -0
- polyfile/magic_defs/uf2 +72 -0
- polyfile/magic_defs/unicode +15 -0
- polyfile/magic_defs/unisig +12 -0
- polyfile/magic_defs/unknown +34 -0
- polyfile/magic_defs/usd +21 -0
- polyfile/magic_defs/uterus +16 -0
- polyfile/magic_defs/uuencode +28 -0
- polyfile/magic_defs/vacuum-cleaner +54 -0
- polyfile/magic_defs/varied.out +46 -0
- polyfile/magic_defs/varied.script +21 -0
- polyfile/magic_defs/vax +32 -0
- polyfile/magic_defs/vicar +17 -0
- polyfile/magic_defs/virtual +307 -0
- polyfile/magic_defs/virtutech +12 -0
- polyfile/magic_defs/visx +32 -0
- polyfile/magic_defs/vms +30 -0
- polyfile/magic_defs/vmware +6 -0
- polyfile/magic_defs/vorbis +155 -0
- polyfile/magic_defs/vxl +14 -0
- polyfile/magic_defs/warc +16 -0
- polyfile/magic_defs/weak +16 -0
- polyfile/magic_defs/web +18 -0
- polyfile/magic_defs/webassembly +17 -0
- polyfile/magic_defs/windows +1811 -0
- polyfile/magic_defs/wireless +7 -0
- polyfile/magic_defs/wordprocessors +630 -0
- polyfile/magic_defs/wsdl +23 -0
- polyfile/magic_defs/x68000 +25 -0
- polyfile/magic_defs/xdelta +13 -0
- polyfile/magic_defs/xenix +106 -0
- polyfile/magic_defs/xilinx +58 -0
- polyfile/magic_defs/xo65 +37 -0
- polyfile/magic_defs/xwindows +43 -0
- polyfile/magic_defs/yara +17 -0
- polyfile/magic_defs/zfs +96 -0
- polyfile/magic_defs/zilog +12 -0
- polyfile/magic_defs/zip +126 -0
- polyfile/magic_defs/zyxel +17 -0
- polyfile/nes.py +144 -0
- polyfile/nitf.py +15 -0
- polyfile/pdf.py +1264 -0
- polyfile/pickles.py +45 -0
- polyfile/polyfile.py +409 -0
- polyfile/profiling.py +115 -0
- polyfile/repl.py +624 -0
- polyfile/search.py +310 -0
- polyfile/serialization.py +323 -0
- polyfile/structmatcher.py +46 -0
- polyfile/structs.py +281 -0
- polyfile/templates/download.js +162 -0
- polyfile/templates/hexdump.css +268 -0
- polyfile/templates/hexdump.js +756 -0
- polyfile/templates/jquery-3.4.1.min.js +2 -0
- polyfile/templates/template.html +119 -0
- polyfile/wildcards.py +62 -0
- polyfile/zipmatcher.py +183 -0
- polyfile_weave-0.5.5.dist-info/METADATA +173 -0
- polyfile_weave-0.5.5.dist-info/RECORD +585 -0
- polyfile_weave-0.5.5.dist-info/WHEEL +5 -0
- polyfile_weave-0.5.5.dist-info/entry_points.txt +2 -0
- polyfile_weave-0.5.5.dist-info/licenses/LICENSE +202 -0
- polyfile_weave-0.5.5.dist-info/top_level.txt +2 -0
- polymerge/__init__.py +1 -0
- polymerge/__main__.py +296 -0
- polymerge/cfg.py +127 -0
- polymerge/polymerge.py +227 -0
- polymerge/polytracker.py +190 -0
polyfile/magic_defs/olf
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: olf,v 1.4 2009/09/19 16:28:11 christos Exp $
|
|
4
|
+
# olf: file(1) magic for OLF executables
|
|
5
|
+
#
|
|
6
|
+
# We have to check the byte order flag to see what byte order all the
|
|
7
|
+
# other stuff in the header is in.
|
|
8
|
+
#
|
|
9
|
+
# MIPS R3000 may also be for MIPS R2000.
|
|
10
|
+
# What're the correct byte orders for the nCUBE and the Fujitsu VPP500?
|
|
11
|
+
#
|
|
12
|
+
# Created by Erik Theisen <etheisen@openbsd.org>
|
|
13
|
+
# Based on elf from Daniel Quinlan <quinlan@yggdrasil.com>
|
|
14
|
+
0 string \177OLF OLF
|
|
15
|
+
>4 byte 0 invalid class
|
|
16
|
+
>4 byte 1 32-bit
|
|
17
|
+
>4 byte 2 64-bit
|
|
18
|
+
>7 byte 0 invalid os
|
|
19
|
+
>7 byte 1 OpenBSD
|
|
20
|
+
>7 byte 2 NetBSD
|
|
21
|
+
>7 byte 3 FreeBSD
|
|
22
|
+
>7 byte 4 4.4BSD
|
|
23
|
+
>7 byte 5 Linux
|
|
24
|
+
>7 byte 6 SVR4
|
|
25
|
+
>7 byte 7 esix
|
|
26
|
+
>7 byte 8 Solaris
|
|
27
|
+
>7 byte 9 Irix
|
|
28
|
+
>7 byte 10 SCO
|
|
29
|
+
>7 byte 11 Dell
|
|
30
|
+
>7 byte 12 NCR
|
|
31
|
+
>5 byte 0 invalid byte order
|
|
32
|
+
>5 byte 1 LSB
|
|
33
|
+
>>16 leshort 0 no file type,
|
|
34
|
+
>>16 leshort 1 relocatable,
|
|
35
|
+
>>16 leshort 2 executable,
|
|
36
|
+
>>16 leshort 3 shared object,
|
|
37
|
+
# Core handling from Peter Tobias <tobias@server.et-inf.fho-emden.de>
|
|
38
|
+
# corrections by Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
|
|
39
|
+
>>16 leshort 4 core file
|
|
40
|
+
>>>(0x38+0xcc) string >\0 of '%s'
|
|
41
|
+
>>>(0x38+0x10) lelong >0 (signal %d),
|
|
42
|
+
>>16 leshort &0xff00 processor-specific,
|
|
43
|
+
>>18 leshort 0 no machine,
|
|
44
|
+
>>18 leshort 1 AT&T WE32100 - invalid byte order,
|
|
45
|
+
>>18 leshort 2 SPARC - invalid byte order,
|
|
46
|
+
>>18 leshort 3 Intel 80386,
|
|
47
|
+
>>18 leshort 4 Motorola 68000 - invalid byte order,
|
|
48
|
+
>>18 leshort 5 Motorola 88000 - invalid byte order,
|
|
49
|
+
>>18 leshort 6 Intel 80486,
|
|
50
|
+
>>18 leshort 7 Intel 80860,
|
|
51
|
+
>>18 leshort 8 MIPS R3000_BE - invalid byte order,
|
|
52
|
+
>>18 leshort 9 Amdahl - invalid byte order,
|
|
53
|
+
>>18 leshort 10 MIPS R3000_LE,
|
|
54
|
+
>>18 leshort 11 RS6000 - invalid byte order,
|
|
55
|
+
>>18 leshort 15 PA-RISC - invalid byte order,
|
|
56
|
+
>>18 leshort 16 nCUBE,
|
|
57
|
+
>>18 leshort 17 VPP500,
|
|
58
|
+
>>18 leshort 18 SPARC32PLUS,
|
|
59
|
+
>>18 leshort 20 PowerPC,
|
|
60
|
+
>>18 leshort 0x9026 Alpha,
|
|
61
|
+
>>20 lelong 0 invalid version
|
|
62
|
+
>>20 lelong 1 version 1
|
|
63
|
+
>>36 lelong 1 MathCoPro/FPU/MAU Required
|
|
64
|
+
>8 string >\0 (%s)
|
|
65
|
+
>5 byte 2 MSB
|
|
66
|
+
>>16 beshort 0 no file type,
|
|
67
|
+
>>16 beshort 1 relocatable,
|
|
68
|
+
>>16 beshort 2 executable,
|
|
69
|
+
>>16 beshort 3 shared object,
|
|
70
|
+
>>16 beshort 4 core file,
|
|
71
|
+
>>>(0x38+0xcc) string >\0 of '%s'
|
|
72
|
+
>>>(0x38+0x10) belong >0 (signal %d),
|
|
73
|
+
>>16 beshort &0xff00 processor-specific,
|
|
74
|
+
>>18 beshort 0 no machine,
|
|
75
|
+
>>18 beshort 1 AT&T WE32100,
|
|
76
|
+
>>18 beshort 2 SPARC,
|
|
77
|
+
>>18 beshort 3 Intel 80386 - invalid byte order,
|
|
78
|
+
>>18 beshort 4 Motorola 68000,
|
|
79
|
+
>>18 beshort 5 Motorola 88000,
|
|
80
|
+
>>18 beshort 6 Intel 80486 - invalid byte order,
|
|
81
|
+
>>18 beshort 7 Intel 80860,
|
|
82
|
+
>>18 beshort 8 MIPS R3000_BE,
|
|
83
|
+
>>18 beshort 9 Amdahl,
|
|
84
|
+
>>18 beshort 10 MIPS R3000_LE - invalid byte order,
|
|
85
|
+
>>18 beshort 11 RS6000,
|
|
86
|
+
>>18 beshort 15 PA-RISC,
|
|
87
|
+
>>18 beshort 16 nCUBE,
|
|
88
|
+
>>18 beshort 17 VPP500,
|
|
89
|
+
>>18 beshort 18 SPARC32PLUS,
|
|
90
|
+
>>18 beshort 20 PowerPC or cisco 4500,
|
|
91
|
+
>>18 beshort 21 cisco 7500,
|
|
92
|
+
>>18 beshort 24 cisco SVIP,
|
|
93
|
+
>>18 beshort 25 cisco 7200,
|
|
94
|
+
>>18 beshort 36 cisco 12000,
|
|
95
|
+
>>18 beshort 0x9026 Alpha,
|
|
96
|
+
>>20 belong 0 invalid version
|
|
97
|
+
>>20 belong 1 version 1
|
|
98
|
+
>>36 belong 1 MathCoPro/FPU/MAU Required
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: openfst,v 1.1 2019/09/30 15:58:24 christos Exp $
|
|
4
|
+
# openfs: file(1) magic for OpenFST (Weighted finite-state tranducer library)
|
|
5
|
+
|
|
6
|
+
0 long 0x7eb2fdd6 OpenFst binary FST data
|
|
7
|
+
>&0 pstring/l x \b, fst type: %s
|
|
8
|
+
>>&0 pstring/l x \b, arc type: %s
|
|
9
|
+
>>>&0 long x \b, version: %d
|
|
10
|
+
>>>>&20 quad x \b, num states: %lld
|
|
11
|
+
>>>>>&0 quad >0 \b, num arcs: %lld
|
|
12
|
+
|
|
13
|
+
0 long 0x56515c OpenFst binary FAR data, far type: stlist
|
|
14
|
+
>4 long x \b, version: %d
|
|
15
|
+
|
|
16
|
+
0 long 0x7eb2f35c OpenFst binary FAR data, far type: sttable
|
|
17
|
+
>4 long x \b, version: %d
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------
|
|
3
|
+
# $File: opentimestamps,v 1.1 2019/05/27 01:27:31 christos Exp $
|
|
4
|
+
# OpenTimestamps related magic entries
|
|
5
|
+
# https://opentimestamps.org/
|
|
6
|
+
# https://en.wikipedia.org/wiki/OpenTimestamps
|
|
7
|
+
# "Emanuele Cisbani" <emanuele.cisbani@gmail.com>
|
|
8
|
+
#------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
# OpenTimestamps Proof .ots format.
|
|
11
|
+
# Magic is defined here:
|
|
12
|
+
# https://github.com/opentimestamps/python-opentimestamps/\
|
|
13
|
+
# blob/master/opentimestamps/core/timestamp.py#L273
|
|
14
|
+
|
|
15
|
+
0 string \x00\x4f\x70\x65\x6e\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x73\x00 OpenTimestamps
|
|
16
|
+
>16 string \x00\x50\x72\x6f\x6f\x66\x00\xbf\x89\xe2\xe8\x84\xe8\x92\x94\x01 Proof
|
polyfile/magic_defs/oric
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: oric,v 1.2 2022/04/25 17:28:20 christos Exp $
|
|
4
|
+
# Oric tape files
|
|
5
|
+
# From: Stefan A. Haubenthal <polluks@sdf.lonestar.org>
|
|
6
|
+
# References:
|
|
7
|
+
# http://fileformats.archiveteam.org/wiki/TAP_(Oric)
|
|
8
|
+
# http://fileformats.archiveteam.org/wiki/DSK_(Oric)
|
|
9
|
+
0 string \x16\x16\x16\x24 Oric tape,
|
|
10
|
+
>6 byte =0x00 BASIC,
|
|
11
|
+
>6 byte =0x80 memory block,
|
|
12
|
+
>7 byte >0x00 autorun,
|
|
13
|
+
>13 string x "%.15s"
|
|
14
|
+
|
|
15
|
+
0 string ORICDISK Oric Image
|
|
16
|
+
0 string MFM_DISK Oric Image
|
polyfile/magic_defs/os2
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: os2,v 1.14 2022/03/21 21:25:50 christos Exp $
|
|
4
|
+
# os2: file(1) magic for OS/2 files
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
# Provided 1998/08/22 by
|
|
8
|
+
# David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
|
|
9
|
+
1 search/100 InternetShortcut MS Windows 95 Internet shortcut text
|
|
10
|
+
!:mime application/x-mswinurl
|
|
11
|
+
!:ext url
|
|
12
|
+
>17 search/100 URL= (URL=<
|
|
13
|
+
>>&0 string x \b%s>)
|
|
14
|
+
|
|
15
|
+
# OS/2 URL objects
|
|
16
|
+
# Provided 1998/08/22 by
|
|
17
|
+
# David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
|
|
18
|
+
#0 string http: OS/2 URL object text
|
|
19
|
+
#>5 string >\ (WWW) <http:%s>
|
|
20
|
+
#0 string mailto: OS/2 URL object text
|
|
21
|
+
#>7 string >\ (email) <%s>
|
|
22
|
+
#0 string news: OS/2 URL object text
|
|
23
|
+
#>5 string >\ (Usenet) <%s>
|
|
24
|
+
#0 string ftp: OS/2 URL object text
|
|
25
|
+
#>4 string >\ (FTP) <ftp:%s>
|
|
26
|
+
#0 string file: OS/2 URL object text
|
|
27
|
+
#>5 string >\ (Local file) <%s>
|
|
28
|
+
|
|
29
|
+
# >>>>> OS/2 INF/HLP <<<<< (source: Daniel Dissett ddissett@netcom.com)
|
|
30
|
+
# URL: http://fileformats.archiveteam.org/wiki/INF/HLP_(OS/2)
|
|
31
|
+
# Reference: http://www.edm2.com/0308/inf.html
|
|
32
|
+
# Carl Hauser (chauser.parc@xerox.com) and
|
|
33
|
+
# Marcus Groeber (marcusg@ph-cip.uni-koeln.de)
|
|
34
|
+
# list the following header format in inf02a.doc:
|
|
35
|
+
#
|
|
36
|
+
# int16 ID; // ID magic word (5348h = "HS")
|
|
37
|
+
# int8 unknown1; // unknown purpose, could be third letter of ID
|
|
38
|
+
# int8 flags; // probably a flag word...
|
|
39
|
+
# // bit 0: set if INF style file
|
|
40
|
+
# // bit 4: set if HLP style file
|
|
41
|
+
# // patching this byte allows reading HLP files
|
|
42
|
+
# // using the VIEW command, while help files
|
|
43
|
+
# // seem to work with INF settings here as well.
|
|
44
|
+
# int16 hdrsize; // total size of header
|
|
45
|
+
# int16 unknown2; // unknown purpose
|
|
46
|
+
#
|
|
47
|
+
0 string HSP\x01\x9b\x00 OS/2 INF
|
|
48
|
+
!:mime application/x-os2-inf
|
|
49
|
+
!:ext inf
|
|
50
|
+
>107 string >0 (%s)
|
|
51
|
+
0 string HSP\x10\x9b\x00 OS/2 HLP
|
|
52
|
+
!:mime application/x-os2-hlp
|
|
53
|
+
!:ext hlp
|
|
54
|
+
>107 string >0 (%s)
|
|
55
|
+
|
|
56
|
+
# From: Joerg Jenderek
|
|
57
|
+
# URL: http://fileformats.archiveteam.org/wiki/MSG_(OS/2)
|
|
58
|
+
# Reference: https://github.com/OS2World/UTIL-SYSTEM-MKMSGF/blob/master/mkmsgf.h
|
|
59
|
+
# Note: created by MKMSGF.EXE. Text source can be recreated by E_MSGF
|
|
60
|
+
# example like OS001H.MSG
|
|
61
|
+
0 string \xffMKMSGF\0 OS/2 help message
|
|
62
|
+
!:mime application/x-os2-msg
|
|
63
|
+
!:ext msg
|
|
64
|
+
# identifier[3] like: DOS NET REX SYS ...
|
|
65
|
+
>8 string x '%.3s'
|
|
66
|
+
# msgnumber: number of messages
|
|
67
|
+
>11 uleshort x \b, %u messages
|
|
68
|
+
# firstmsgnumber; number of the first message like: some times 0 often 1 169 1000 3502
|
|
69
|
+
>13 uleshort >1 \b, 1st number %u
|
|
70
|
+
# offset16bit; 1~Index table has 16-bit offsets (files<64k) 0~Index table has 32-bit offsets
|
|
71
|
+
>15 ubyte =0 \b, 32-bit
|
|
72
|
+
#>15 ubyte =1 \b, 16-bit
|
|
73
|
+
# version; file version: 2~new 0~old
|
|
74
|
+
>16 uleshort !2 \b, version %u
|
|
75
|
+
# indextaboffset; offset of index table: 1F~after header 0~no index table for version 0?
|
|
76
|
+
>18 uleshort >0
|
|
77
|
+
>>18 uleshort !0x1f \b, at %#x index
|
|
78
|
+
# 32-bit offset
|
|
79
|
+
>>15 ubyte =0
|
|
80
|
+
# offset with message table
|
|
81
|
+
>>>(18.s) ulelong x \b, at %#x
|
|
82
|
+
# 1st message
|
|
83
|
+
# http://www.os2museum.com/files/docs/os210ptk/os2-1.0-ptk-tools-1988.pdf
|
|
84
|
+
# message type: E~Error H~Help I~Information P~Prompt W~Warning ?
|
|
85
|
+
>>>>(&-4.l) ubyte x %c-type
|
|
86
|
+
>>>>>&0 string x %s
|
|
87
|
+
# 16-bit offset
|
|
88
|
+
>>15 ubyte =1
|
|
89
|
+
# msgnum; message number
|
|
90
|
+
>>>(18.s) uleshort x \b, number %u
|
|
91
|
+
# msgindex; offset of message from begin of file
|
|
92
|
+
>>>(18.s+2) uleshort x at %#x
|
|
93
|
+
# message type E H I P W ?
|
|
94
|
+
>>>>(&-2.s) ubyte x %c-type
|
|
95
|
+
# skip newline carriage return
|
|
96
|
+
>>>>>&0 ubeshort =0x0D0a
|
|
97
|
+
>>>>>>&0 string x %s
|
|
98
|
+
>>>>>&0 ubeshort !0x0D0a
|
|
99
|
+
>>>>>>&-2 string x %s
|
|
100
|
+
# for version 0 index table apparently at offset 1F
|
|
101
|
+
>16 uleshort 0
|
|
102
|
+
>>15 ubyte 1
|
|
103
|
+
# 1st message 16-bit
|
|
104
|
+
>>>0x1F uleshort x \b, at %#x
|
|
105
|
+
# message type: E~Error H~Help I~Information P~Prompt W~Warning ?
|
|
106
|
+
>>>>(0x1F.s) ubyte x %c-type
|
|
107
|
+
>>>>>&0 string x %s
|
|
108
|
+
# 2nd message 16-bit
|
|
109
|
+
>>>0x21 uleshort x \b, at %#x
|
|
110
|
+
>>>>(0x21.s) ubyte x %c-type
|
|
111
|
+
>>>>>&0 string x %s
|
|
112
|
+
# 3rd message 16-bit
|
|
113
|
+
>>>0x23 uleshort x \b, at %#x
|
|
114
|
+
>>>>(0x23.s) ubyte x %c-type
|
|
115
|
+
>>>>>&0 string x %s
|
|
116
|
+
# version 0 32-bit
|
|
117
|
+
>>15 ubyte 0
|
|
118
|
+
# 1st message 32-bit
|
|
119
|
+
>>>0x1f ulelong x \b, at %#x
|
|
120
|
+
>>>>(0x1F.l) ubyte x %c-type
|
|
121
|
+
>>>>>&0 string x %s
|
|
122
|
+
# 2nd message 32-bit
|
|
123
|
+
>>>0x23 ulelong x \b, at %#x
|
|
124
|
+
>>>>(0x23.l) ubyte x %c-type
|
|
125
|
+
>>>>>&0 string x %s
|
|
126
|
+
# 3rd message 32-bit
|
|
127
|
+
>>>0x27 ulelong x \b, AT %#x
|
|
128
|
+
>>>>(0x27.l) ubyte x %c-type
|
|
129
|
+
>>>>>&0 string x %s
|
|
130
|
+
# countryinfo; offset of country info block: 0 for version 0
|
|
131
|
+
>20 uleshort !0 \b, at %#x countryinfo
|
|
132
|
+
# nextcoutryinfo
|
|
133
|
+
>>22 uleshort >0 \b, at %#x next
|
|
134
|
+
# reserved[5]; Must be 0
|
|
135
|
+
>>25 ulelong !0 \b, RESERVED %#x
|
|
136
|
+
>>(20.s) use os2-msg-info
|
|
137
|
+
# display country info block of MKMSGF message file
|
|
138
|
+
0 name os2-msg-info
|
|
139
|
+
# bytesperchar; bytes per char: 1~SBCS 2~DBCS
|
|
140
|
+
>0 ubyte >1 \b, %u bytes/char
|
|
141
|
+
# reserved; Not known
|
|
142
|
+
>1 uleshort !0 \b, reserved %#x
|
|
143
|
+
# langfamilyID; language family ID like: 0~? 1~Arabic ... 7~German ... 9~English ... 34~Slovene
|
|
144
|
+
>3 uleshort >0 \b, language %u
|
|
145
|
+
# langversionID; like: 7_1~German 7_2~Swiss German 12_1~French 12_3~Canadian French
|
|
146
|
+
>>5 uleshort x \b_%u
|
|
147
|
+
# langfamilyID too high. This should not happen
|
|
148
|
+
>3 uleshort >34 (invalid language)
|
|
149
|
+
# codepagesnumber; number of codepages like: 1 2 ... 16
|
|
150
|
+
>7 uleshort x \b, %u code page
|
|
151
|
+
# plural s
|
|
152
|
+
>7 uleshort >1 \bs
|
|
153
|
+
# too many number of codepages. This should not happen
|
|
154
|
+
>7 uleshort >16 (Too many)
|
|
155
|
+
# codepages[16]; codepages list like 437 850 ...
|
|
156
|
+
>7 uleshort <17
|
|
157
|
+
# 1st code page
|
|
158
|
+
>>9 uleshort >0 %u
|
|
159
|
+
# possible 2nd code page number
|
|
160
|
+
>>>7 uleshort >1
|
|
161
|
+
>>>>11 uleshort x %u
|
|
162
|
+
# filename[260]; name of file like: dbaseos2.msg dde4c01e.msg os2ldr.mgr xdfh.msg ...
|
|
163
|
+
>41 string x \b, %s
|
|
164
|
+
|
|
165
|
+
# OS/2 INI (this is a guess)
|
|
166
|
+
0 string \xff\xff\xff\xff\x14\0\0\0 OS/2 INI
|
|
167
|
+
!:mime application/x-os2-ini
|
|
168
|
+
!:ext ini
|
|
169
|
+
|
|
170
|
+
# From: Joerg Jenderek
|
|
171
|
+
# URL: http://warpin.netlabs.org/
|
|
172
|
+
# Reference: http://mark0.net/download/triddefs_xml.7z/defs/a/ark-wpi.trid.xml
|
|
173
|
+
# Note: called by TrID "WarpIN Installer"
|
|
174
|
+
# probably magic at the beginning
|
|
175
|
+
0 ubelong =0x770402BE WarpIN Installer
|
|
176
|
+
#>4 ubelong =0x03000000
|
|
177
|
+
#!:mime application/octet-stream
|
|
178
|
+
!:mime application/x-os2-wpi
|
|
179
|
+
!:ext wpi
|
|
180
|
+
# creator program name like: "reserved" or "WIC x.y.z"
|
|
181
|
+
>0x106 string x \b, created by %s
|
|
182
|
+
# name like: "reserved" or "OS/2 Netlabs"
|
|
183
|
+
>0x146 string x \b, '%s'
|
|
184
|
+
# name like: "N/A" "http://warpin.netlabs.org"
|
|
185
|
+
>0x186 string x \b, URL %s
|
|
186
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: os400,v 1.5 2009/09/19 16:28:11 christos Exp $
|
|
4
|
+
# os400: file(1) magic for IBM OS/400 files
|
|
5
|
+
#
|
|
6
|
+
# IBM OS/400 (i5/OS) Save file (SAVF) - gerardo.cacciari@gmail.com
|
|
7
|
+
# In spite of its quite variable format (due to internal memory page
|
|
8
|
+
# length differences between CISC and RISC versions of the OS) the
|
|
9
|
+
# SAVF structure hasn't suitable offsets to identify the catalog
|
|
10
|
+
# header in the first descriptor where there are some useful infos,
|
|
11
|
+
# so we must search in a somewhat large area for a particular string
|
|
12
|
+
# that represents the EBCDIC encoding of 'QSRDSSPC' (save/restore
|
|
13
|
+
# descriptor space) preceded by a two byte constant.
|
|
14
|
+
#
|
|
15
|
+
1090 search/7393 \x19\xDB\xD8\xE2\xD9\xC4\xE2\xE2\xD7\xC3 IBM OS/400 save file data
|
|
16
|
+
>&212 byte 0x01 \b, created with SAVOBJ
|
|
17
|
+
>&212 byte 0x02 \b, created with SAVLIB
|
|
18
|
+
>&212 byte 0x07 \b, created with SAVCFG
|
|
19
|
+
>&212 byte 0x08 \b, created with SAVSECDTA
|
|
20
|
+
>&212 byte 0x0A \b, created with SAVSECDTA
|
|
21
|
+
>&212 byte 0x0B \b, created with SAVDLO
|
|
22
|
+
>&212 byte 0x0D \b, created with SAVLICPGM
|
|
23
|
+
>&212 byte 0x11 \b, created with SAVCHGOBJ
|
|
24
|
+
>&213 byte 0x44 \b, at least V5R4 to open
|
|
25
|
+
>&213 byte 0x43 \b, at least V5R3 to open
|
|
26
|
+
>&213 byte 0x42 \b, at least V5R2 to open
|
|
27
|
+
>&213 byte 0x41 \b, at least V5R1 to open
|
|
28
|
+
>&213 byte 0x40 \b, at least V4R5 to open
|
|
29
|
+
>&213 byte 0x3F \b, at least V4R4 to open
|
|
30
|
+
>&213 byte 0x3E \b, at least V4R3 to open
|
|
31
|
+
>&213 byte 0x3C \b, at least V4R2 to open
|
|
32
|
+
>&213 byte 0x3D \b, at least V4R1M4 to open
|
|
33
|
+
>&213 byte 0x3B \b, at least V4R1 to open
|
|
34
|
+
>&213 byte 0x3A \b, at least V3R7 to open
|
|
35
|
+
>&213 byte 0x35 \b, at least V3R6 to open
|
|
36
|
+
>&213 byte 0x36 \b, at least V3R2 to open
|
|
37
|
+
>&213 byte 0x34 \b, at least V3R1 to open
|
|
38
|
+
>&213 byte 0x31 \b, at least V3R0M5 to open
|
|
39
|
+
>&213 byte 0x30 \b, at least V2R3 to open
|
polyfile/magic_defs/os9
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: os9,v 1.8 2017/03/17 21:35:28 christos Exp $
|
|
4
|
+
#
|
|
5
|
+
# Copyright (c) 1996 Ignatios Souvatzis. All rights reserved.
|
|
6
|
+
#
|
|
7
|
+
# Redistribution and use in source and binary forms, with or without
|
|
8
|
+
# modification, are permitted provided that the following conditions
|
|
9
|
+
# are met:
|
|
10
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer.
|
|
12
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
13
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
14
|
+
# documentation and/or other materials provided with the distribution.
|
|
15
|
+
#
|
|
16
|
+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
17
|
+
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
18
|
+
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
19
|
+
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
20
|
+
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
21
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
22
|
+
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
23
|
+
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
24
|
+
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
25
|
+
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
+
#
|
|
27
|
+
#
|
|
28
|
+
#
|
|
29
|
+
# OS9/6809 module descriptions:
|
|
30
|
+
#
|
|
31
|
+
0 beshort 0x87CD OS9/6809 module:
|
|
32
|
+
#
|
|
33
|
+
>6 byte&0x0f 0x00 non-executable
|
|
34
|
+
>6 byte&0x0f 0x01 machine language
|
|
35
|
+
>6 byte&0x0f 0x02 BASIC I-code
|
|
36
|
+
>6 byte&0x0f 0x03 Pascal P-code
|
|
37
|
+
>6 byte&0x0f 0x04 C I-code
|
|
38
|
+
>6 byte&0x0f 0x05 COBOL I-code
|
|
39
|
+
>6 byte&0x0f 0x06 Fortran I-code
|
|
40
|
+
#
|
|
41
|
+
>6 byte&0xf0 0x10 program executable
|
|
42
|
+
>6 byte&0xf0 0x20 subroutine
|
|
43
|
+
>6 byte&0xf0 0x30 multi-module
|
|
44
|
+
>6 byte&0xf0 0x40 data module
|
|
45
|
+
#
|
|
46
|
+
>6 byte&0xf0 0xC0 system module
|
|
47
|
+
>6 byte&0xf0 0xD0 file manager
|
|
48
|
+
>6 byte&0xf0 0xE0 device driver
|
|
49
|
+
>6 byte&0xf0 0xF0 device descriptor
|
|
50
|
+
#
|
|
51
|
+
# OS9/m68k stuff (to be continued)
|
|
52
|
+
#
|
|
53
|
+
0 beshort 0x4AFC OS9/68K module:
|
|
54
|
+
#
|
|
55
|
+
# attr
|
|
56
|
+
>0x14 byte&0x80 0x80 re-entrant
|
|
57
|
+
>0x14 byte&0x40 0x40 ghost
|
|
58
|
+
>0x14 byte&0x20 0x20 system-state
|
|
59
|
+
#
|
|
60
|
+
# lang:
|
|
61
|
+
#
|
|
62
|
+
>0x13 byte 1 machine language
|
|
63
|
+
>0x13 byte 2 BASIC I-code
|
|
64
|
+
>0x13 byte 3 Pascal P-code
|
|
65
|
+
>0x13 byte 4 C I-code
|
|
66
|
+
>0x13 byte 5 COBOL I-code
|
|
67
|
+
>0x13 byte 6 Fortran I-code
|
|
68
|
+
#
|
|
69
|
+
#
|
|
70
|
+
# type:
|
|
71
|
+
#
|
|
72
|
+
>0x12 byte 1 program executable
|
|
73
|
+
>0x12 byte 2 subroutine
|
|
74
|
+
>0x12 byte 3 multi-module
|
|
75
|
+
>0x12 byte 4 data module
|
|
76
|
+
>0x12 byte 11 trap library
|
|
77
|
+
>0x12 byte 12 system module
|
|
78
|
+
>0x12 byte 13 file manager
|
|
79
|
+
>0x12 byte 14 device driver
|
|
80
|
+
>0x12 byte 15 device descriptor
|
polyfile/magic_defs/osf1
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: osf1,v 1.7 2009/09/19 16:28:11 christos Exp $
|
|
4
|
+
#
|
|
5
|
+
# Mach magic number info
|
|
6
|
+
#
|
|
7
|
+
0 long 0xefbe OSF/Rose object
|
|
8
|
+
# I386 magic number info
|
|
9
|
+
#
|
|
10
|
+
0 short 0565 i386 COFF object
|
polyfile/magic_defs/palm
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: palm,v 1.15 2021/12/16 21:50:06 christos Exp $
|
|
4
|
+
# palm: file(1) magic for PalmOS {.prc,.pdb}: applications, docfiles, and hacks
|
|
5
|
+
#
|
|
6
|
+
# Brian Lalor <blalor@hcirisc.cs.binghamton.edu>
|
|
7
|
+
|
|
8
|
+
# These are weak, byte 59 is not guaranteed to be 0 and there are
|
|
9
|
+
# 8 character identifiers at byte 60, one I found for appl is BIGb.
|
|
10
|
+
# What are the possibilities and where is this documented?
|
|
11
|
+
|
|
12
|
+
# The common header format for PalmOS .pdb/.prc files is
|
|
13
|
+
# {
|
|
14
|
+
# char name[ 32 ];
|
|
15
|
+
# Word attributes;
|
|
16
|
+
# Word version;
|
|
17
|
+
# DWord creationDate;
|
|
18
|
+
# DWord modificationDate;
|
|
19
|
+
# DWord lastBackupDate;
|
|
20
|
+
# DWord modificationNumber;
|
|
21
|
+
# DWord appInfoID;
|
|
22
|
+
# DWord sortInfoID;
|
|
23
|
+
# char type[4];
|
|
24
|
+
# char creator[4];
|
|
25
|
+
# DWord uniqueIDSeed;
|
|
26
|
+
# RecordListType recordList;
|
|
27
|
+
# };
|
|
28
|
+
#
|
|
29
|
+
# Datestamps are unsigned seconds since the MacOS epoch (Jan 1, 1904),
|
|
30
|
+
# or Unix/POSIX time + 2082844800.
|
|
31
|
+
|
|
32
|
+
0 name aportisdoc
|
|
33
|
+
# date is supposed to be big-endian seconds since 1 Jan 1904, but many
|
|
34
|
+
# files contain the timestamp in little-endian or a completely
|
|
35
|
+
# nonsensical value...
|
|
36
|
+
#>36 bedate-2082844800 >0 \b, created %s
|
|
37
|
+
# compression: 1=uncomp, 2=orig, 0x4448=HuffDic
|
|
38
|
+
>(78.L) beshort =1 \b, uncompressed
|
|
39
|
+
# compressed
|
|
40
|
+
>(78.L) beshort >1
|
|
41
|
+
>>(78.L+4) belong x \b, %d bytes uncompressed
|
|
42
|
+
|
|
43
|
+
# appl
|
|
44
|
+
#60 string appl PalmOS application
|
|
45
|
+
#>0 string >\0 "%s"
|
|
46
|
+
|
|
47
|
+
# HACK
|
|
48
|
+
#60 string HACK HackMaster hack
|
|
49
|
+
#>0 string >\0 "%s"
|
|
50
|
+
|
|
51
|
+
# iSiloX e-book
|
|
52
|
+
60 string SDocSilX iSiloX E-book
|
|
53
|
+
>0 string >\0 "%s"
|
|
54
|
+
|
|
55
|
+
# Mobipocket (www.mobipocket.com), donated by Carl Witty
|
|
56
|
+
# expanded by Ralf Brown
|
|
57
|
+
60 string BOOKMOBI Mobipocket E-book
|
|
58
|
+
!:mime application/x-mobipocket-ebook
|
|
59
|
+
# MobiPocket stores a full title, pointed at by the belong at offset
|
|
60
|
+
# 0x54 in its header at (78.L), with length given by the belong at
|
|
61
|
+
# offset 0x58.
|
|
62
|
+
# there's no guarantee that the title string is null-terminated, but
|
|
63
|
+
# we currently can't specify a variable-length string where the length
|
|
64
|
+
# field is not at the start of the string; in practice, the data
|
|
65
|
+
# following the string always seems to start with a zero byte
|
|
66
|
+
>(78.L) belong x
|
|
67
|
+
>>&(&0x50.L-4) string >\0 "%s"
|
|
68
|
+
>0 use aportisdoc
|
|
69
|
+
>>(78.L+0x68) belong >0 \b, version %d
|
|
70
|
+
>>(78.L+0x1C) belong !0 \b, codepage %d
|
|
71
|
+
>>(78.L+0x0C) beshort >0 \b, encrypted (type %d)
|
|
72
|
+
|
|
73
|
+
# AportisDoc/PalmDOC
|
|
74
|
+
60 string TEXtREAd AportisDoc/PalmDOC E-book
|
|
75
|
+
>0 string >\0 "%s"
|
|
76
|
+
>0 use aportisdoc
|
|
77
|
+
|
|
78
|
+
# Variety of PalmOS document types
|
|
79
|
+
# Michael-John Turner <mj@debian.org>
|
|
80
|
+
# Thanks to Hasan Umit Ezerce <humit@tr-net.net.tr> for his DocType
|
|
81
|
+
60 string BVokBDIC BDicty PalmOS document
|
|
82
|
+
>0 string >\0 "%s"
|
|
83
|
+
60 string DB99DBOS DB PalmOS document
|
|
84
|
+
>0 string >\0 "%s"
|
|
85
|
+
60 string vIMGView FireViewer/ImageViewer PalmOS document
|
|
86
|
+
>0 string >\0 "%s"
|
|
87
|
+
60 string PmDBPmDB HanDBase PalmOS document
|
|
88
|
+
>0 string >\0 "%s"
|
|
89
|
+
60 string InfoINDB InfoView PalmOS document
|
|
90
|
+
>0 string >\0 "%s"
|
|
91
|
+
60 string ToGoToGo iSilo PalmOS document
|
|
92
|
+
>0 string >\0 "%s"
|
|
93
|
+
60 string JfDbJBas JFile PalmOS document
|
|
94
|
+
>0 string >\0 "%s"
|
|
95
|
+
60 string JfDbJFil JFile Pro PalmOS document
|
|
96
|
+
>0 string >\0 "%s"
|
|
97
|
+
60 string DATALSdb List PalmOS document
|
|
98
|
+
>0 string >\0 "%s"
|
|
99
|
+
60 string Mdb1Mdb1 MobileDB PalmOS document
|
|
100
|
+
>0 string >\0 "%s"
|
|
101
|
+
60 string PNRdPPrs PeanutPress PalmOS document
|
|
102
|
+
>0 string >\0 "%s"
|
|
103
|
+
60 string DataPlkr Plucker PalmOS document
|
|
104
|
+
>0 string >\0 "%s"
|
|
105
|
+
60 string DataSprd QuickSheet PalmOS document
|
|
106
|
+
>0 string >\0 "%s"
|
|
107
|
+
60 string SM01SMem SuperMemo PalmOS document
|
|
108
|
+
>0 string >\0 "%s"
|
|
109
|
+
60 string TEXtTlDc TealDoc PalmOS document
|
|
110
|
+
>0 string >\0 "%s"
|
|
111
|
+
60 string InfoTlIf TealInfo PalmOS document
|
|
112
|
+
>0 string >\0 "%s"
|
|
113
|
+
60 string DataTlMl TealMeal PalmOS document
|
|
114
|
+
>0 string >\0 "%s"
|
|
115
|
+
60 string DataTlPt TealPaint PalmOS document
|
|
116
|
+
>0 string >\0 "%s"
|
|
117
|
+
60 string dataTDBP ThinkDB PalmOS document
|
|
118
|
+
>0 string >\0 "%s"
|
|
119
|
+
60 string TdatTide Tides PalmOS document
|
|
120
|
+
>0 string >\0 "%s"
|
|
121
|
+
60 string ToRaTRPW TomeRaider PalmOS document
|
|
122
|
+
>0 string >\0 "%s"
|
|
123
|
+
|
|
124
|
+
# A GutenPalm zTXT etext for use on Palm Pilots (http://gutenpalm.sf.net)
|
|
125
|
+
# For version 1.xx zTXTs, outputs version and numbers of bookmarks and
|
|
126
|
+
# annotations.
|
|
127
|
+
# For other versions, just outputs version.
|
|
128
|
+
#
|
|
129
|
+
60 string zTXT A GutenPalm zTXT e-book
|
|
130
|
+
>0 string >\0 "%s"
|
|
131
|
+
>(0x4E.L) byte 0
|
|
132
|
+
>>(0x4E.L+1) byte x (v0.%02d)
|
|
133
|
+
>(0x4E.L) byte 1
|
|
134
|
+
>>(0x4E.L+1) byte x (v1.%02d)
|
|
135
|
+
>>>(0x4E.L+10) beshort >0
|
|
136
|
+
>>>>(0x4E.L+10) beshort <2 - 1 bookmark
|
|
137
|
+
>>>>(0x4E.L+10) beshort >1 - %d bookmarks
|
|
138
|
+
>>>(0x4E.L+14) beshort >0
|
|
139
|
+
>>>>(0x4E.L+14) beshort <2 - 1 annotation
|
|
140
|
+
>>>>(0x4E.L+14) beshort >1 - %d annotations
|
|
141
|
+
>(0x4E.L) byte >1 (v%d.
|
|
142
|
+
>>(0x4E.L+1) byte x %02d)
|
|
143
|
+
|
|
144
|
+
# Palm OS .prc file types
|
|
145
|
+
60 string libr
|
|
146
|
+
# flags, only bit 0 or bit 6
|
|
147
|
+
# https://en.wikipedia.org/wiki/PRC_%28Palm_OS%29
|
|
148
|
+
# https://web.mit.edu/tytso/www/pilot/prc-format.html
|
|
149
|
+
>0x20 beshort&0xffbe 0
|
|
150
|
+
>>0 string >\0 Palm OS dynamic library data "%s"
|
|
151
|
+
60 string ptch Palm OS operating system patch data
|
|
152
|
+
>0 string >\0 "%s"
|
|
153
|
+
|
|
154
|
+
# Mobipocket (www.mobipocket.com), donated by Carl Witty
|
|
155
|
+
60 string BOOKMOBI Mobipocket E-book
|
|
156
|
+
>0 string >\0 "%s"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: parix,v 1.5 2020/03/08 22:18:32 christos Exp $
|
|
4
|
+
#
|
|
5
|
+
# Parix COFF executables
|
|
6
|
+
# From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
|
|
7
|
+
#
|
|
8
|
+
0 beshort&0xefff 0x8ACE PARIX
|
|
9
|
+
>0 byte&0xf0 0x80 T800
|
|
10
|
+
>0 byte&0xf0 0x90 T9000
|
|
11
|
+
>19 byte&0x02 0x02 executable
|
|
12
|
+
>19 byte&0x02 0x00 object
|
|
13
|
+
>19 byte&0x0c 0x00 not stripped
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#------------------------------------------------------------------------------
|
|
2
|
+
# $File: parrot,v 1.2 2019/04/19 00:42:27 christos Exp $
|
|
3
|
+
# parrot: file(1) magic for Parrot Virtual Machine
|
|
4
|
+
# URL: https://www.lua.org/
|
|
5
|
+
# From: Lubomir Rintel <lkundrak@v3.sk>
|
|
6
|
+
|
|
7
|
+
# Compiled Parrot byte code
|
|
8
|
+
0 string \376PBC\r\n\032\n Parrot bytecode
|
|
9
|
+
>64 byte x %d.
|
|
10
|
+
>72 byte x \b%d,
|
|
11
|
+
>8 byte >0 %d byte words,
|
|
12
|
+
>16 byte 0 little-endian,
|
|
13
|
+
>16 byte 1 big-endian,
|
|
14
|
+
>32 byte 0 IEEE-754 8 byte double floats,
|
|
15
|
+
>32 byte 1 x86 12 byte long double floats,
|
|
16
|
+
>32 byte 2 IEEE-754 16 byte long double floats,
|
|
17
|
+
>32 byte 3 MIPS 16 byte long double floats,
|
|
18
|
+
>32 byte 4 AIX 16 byte long double floats,
|
|
19
|
+
>32 byte 5 4-byte floats,
|
|
20
|
+
>40 byte x Parrot %d.
|
|
21
|
+
>48 byte x \b%d.
|
|
22
|
+
>56 byte x \b%d
|