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/hp
ADDED
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: hp,v 1.25 2019/01/13 00:32:38 christos Exp $
|
|
4
|
+
# hp: file(1) magic for Hewlett Packard machines (see also "printer")
|
|
5
|
+
#
|
|
6
|
+
# XXX - somebody should figure out whether any byte order needs to be
|
|
7
|
+
# applied to the "TML" stuff; I'm assuming the Apollo stuff is
|
|
8
|
+
# big-endian as it was mostly 68K-based.
|
|
9
|
+
#
|
|
10
|
+
# I think the 500 series was the old stack-based machines, running a
|
|
11
|
+
# UNIX environment atop the "SUN kernel"; dunno whether it was
|
|
12
|
+
# big-endian or little-endian.
|
|
13
|
+
#
|
|
14
|
+
# Daniel Quinlan (quinlan@yggdrasil.com): hp200 machines are 68010 based;
|
|
15
|
+
# hp300 are 68020+68881 based; hp400 are also 68k. The following basic
|
|
16
|
+
# HP magic is useful for reference, but using "long" magic is a better
|
|
17
|
+
# practice in order to avoid collisions.
|
|
18
|
+
#
|
|
19
|
+
# Guy Harris (guy@netapp.com): some additions to this list came from
|
|
20
|
+
# HP-UX 10.0's "/usr/include/sys/unistd.h" (68030, 68040, PA-RISC 1.1,
|
|
21
|
+
# 1.2, and 2.0). The 1.2 and 2.0 stuff isn't in the HP-UX 10.0
|
|
22
|
+
# "/etc/magic", though, except for the "archive file relocatable library"
|
|
23
|
+
# stuff, and the 68030 and 68040 stuff isn't there at all - are they not
|
|
24
|
+
# used in executables, or have they just not yet updated "/etc/magic"
|
|
25
|
+
# completely?
|
|
26
|
+
#
|
|
27
|
+
# 0 beshort 200 hp200 (68010) BSD binary
|
|
28
|
+
# 0 beshort 300 hp300 (68020+68881) BSD binary
|
|
29
|
+
# 0 beshort 0x20c hp200/300 HP-UX binary
|
|
30
|
+
# 0 beshort 0x20d hp400 (68030) HP-UX binary
|
|
31
|
+
# 0 beshort 0x20e hp400 (68040?) HP-UX binary
|
|
32
|
+
# 0 beshort 0x20b PA-RISC1.0 HP-UX binary
|
|
33
|
+
# 0 beshort 0x210 PA-RISC1.1 HP-UX binary
|
|
34
|
+
# 0 beshort 0x211 PA-RISC1.2 HP-UX binary
|
|
35
|
+
# 0 beshort 0x214 PA-RISC2.0 HP-UX binary
|
|
36
|
+
|
|
37
|
+
#
|
|
38
|
+
# The "misc" stuff needs a byte order; the archives look suspiciously
|
|
39
|
+
# like the old 177545 archives (0xff65 = 0177545).
|
|
40
|
+
#
|
|
41
|
+
#### Old Apollo stuff
|
|
42
|
+
0 beshort 0627 Apollo m68k COFF executable
|
|
43
|
+
>18 beshort ^040000 not stripped
|
|
44
|
+
>22 beshort >0 - version %d
|
|
45
|
+
0 beshort 0624 apollo a88k COFF executable
|
|
46
|
+
>18 beshort ^040000 not stripped
|
|
47
|
+
>22 beshort >0 - version %d
|
|
48
|
+
0 long 01203604016 TML 0123 byte-order format
|
|
49
|
+
0 long 01702407010 TML 1032 byte-order format
|
|
50
|
+
0 long 01003405017 TML 2301 byte-order format
|
|
51
|
+
0 long 01602007412 TML 3210 byte-order format
|
|
52
|
+
#### PA-RISC 1.1
|
|
53
|
+
0 belong 0x02100106 PA-RISC1.1 relocatable object
|
|
54
|
+
0 belong 0x02100107 PA-RISC1.1 executable
|
|
55
|
+
>168 belong &0x00000004 dynamically linked
|
|
56
|
+
>(144) belong 0x054ef630 dynamically linked
|
|
57
|
+
>96 belong >0 - not stripped
|
|
58
|
+
|
|
59
|
+
0 belong 0x02100108 PA-RISC1.1 shared executable
|
|
60
|
+
>168 belong&0x4 0x4 dynamically linked
|
|
61
|
+
>(144) belong 0x054ef630 dynamically linked
|
|
62
|
+
>96 belong >0 - not stripped
|
|
63
|
+
|
|
64
|
+
0 belong 0x0210010b PA-RISC1.1 demand-load executable
|
|
65
|
+
>168 belong&0x4 0x4 dynamically linked
|
|
66
|
+
>(144) belong 0x054ef630 dynamically linked
|
|
67
|
+
>96 belong >0 - not stripped
|
|
68
|
+
|
|
69
|
+
0 belong 0x0210010e PA-RISC1.1 shared library
|
|
70
|
+
>96 belong >0 - not stripped
|
|
71
|
+
|
|
72
|
+
0 belong 0x0210010d PA-RISC1.1 dynamic load library
|
|
73
|
+
>96 belong >0 - not stripped
|
|
74
|
+
|
|
75
|
+
#### PA-RISC 2.0
|
|
76
|
+
0 belong 0x02140106 PA-RISC2.0 relocatable object
|
|
77
|
+
|
|
78
|
+
0 belong 0x02140107 PA-RISC2.0 executable
|
|
79
|
+
>168 belong &0x00000004 dynamically linked
|
|
80
|
+
>(144) belong 0x054ef630 dynamically linked
|
|
81
|
+
>96 belong >0 - not stripped
|
|
82
|
+
|
|
83
|
+
0 belong 0x02140108 PA-RISC2.0 shared executable
|
|
84
|
+
>168 belong &0x00000004 dynamically linked
|
|
85
|
+
>(144) belong 0x054ef630 dynamically linked
|
|
86
|
+
>96 belong >0 - not stripped
|
|
87
|
+
|
|
88
|
+
0 belong 0x0214010b PA-RISC2.0 demand-load executable
|
|
89
|
+
>168 belong &0x00000004 dynamically linked
|
|
90
|
+
>(144) belong 0x054ef630 dynamically linked
|
|
91
|
+
>96 belong >0 - not stripped
|
|
92
|
+
|
|
93
|
+
0 belong 0x0214010e PA-RISC2.0 shared library
|
|
94
|
+
>96 belong >0 - not stripped
|
|
95
|
+
|
|
96
|
+
0 belong 0x0214010d PA-RISC2.0 dynamic load library
|
|
97
|
+
>96 belong >0 - not stripped
|
|
98
|
+
|
|
99
|
+
#### 800
|
|
100
|
+
0 belong 0x020b0106 PA-RISC1.0 relocatable object
|
|
101
|
+
|
|
102
|
+
0 belong 0x020b0107 PA-RISC1.0 executable
|
|
103
|
+
>168 belong&0x4 0x4 dynamically linked
|
|
104
|
+
>(144) belong 0x054ef630 dynamically linked
|
|
105
|
+
>96 belong >0 - not stripped
|
|
106
|
+
|
|
107
|
+
0 belong 0x020b0108 PA-RISC1.0 shared executable
|
|
108
|
+
>168 belong&0x4 0x4 dynamically linked
|
|
109
|
+
>(144) belong 0x054ef630 dynamically linked
|
|
110
|
+
>96 belong >0 - not stripped
|
|
111
|
+
|
|
112
|
+
0 belong 0x020b010b PA-RISC1.0 demand-load executable
|
|
113
|
+
>168 belong&0x4 0x4 dynamically linked
|
|
114
|
+
>(144) belong 0x054ef630 dynamically linked
|
|
115
|
+
>96 belong >0 - not stripped
|
|
116
|
+
|
|
117
|
+
0 belong 0x020b010e PA-RISC1.0 shared library
|
|
118
|
+
>96 belong >0 - not stripped
|
|
119
|
+
|
|
120
|
+
0 belong 0x020b010d PA-RISC1.0 dynamic load library
|
|
121
|
+
>96 belong >0 - not stripped
|
|
122
|
+
|
|
123
|
+
#### 500
|
|
124
|
+
0 long 0x02080106 HP s500 relocatable executable
|
|
125
|
+
>16 long >0 - version %d
|
|
126
|
+
|
|
127
|
+
0 long 0x02080107 HP s500 executable
|
|
128
|
+
>16 long >0 - version %d
|
|
129
|
+
|
|
130
|
+
0 long 0x02080108 HP s500 pure executable
|
|
131
|
+
>16 long >0 - version %d
|
|
132
|
+
|
|
133
|
+
#### 200
|
|
134
|
+
0 belong 0x020c0108 HP s200 pure executable
|
|
135
|
+
>4 beshort >0 - version %d
|
|
136
|
+
>8 belong &0x80000000 save fp regs
|
|
137
|
+
>8 belong &0x40000000 dynamically linked
|
|
138
|
+
>8 belong &0x20000000 debuggable
|
|
139
|
+
>36 belong >0 not stripped
|
|
140
|
+
|
|
141
|
+
0 belong 0x020c0107 HP s200 executable
|
|
142
|
+
>4 beshort >0 - version %d
|
|
143
|
+
>8 belong &0x80000000 save fp regs
|
|
144
|
+
>8 belong &0x40000000 dynamically linked
|
|
145
|
+
>8 belong &0x20000000 debuggable
|
|
146
|
+
>36 belong >0 not stripped
|
|
147
|
+
|
|
148
|
+
0 belong 0x020c010b HP s200 demand-load executable
|
|
149
|
+
>4 beshort >0 - version %d
|
|
150
|
+
>8 belong &0x80000000 save fp regs
|
|
151
|
+
>8 belong &0x40000000 dynamically linked
|
|
152
|
+
>8 belong &0x20000000 debuggable
|
|
153
|
+
>36 belong >0 not stripped
|
|
154
|
+
|
|
155
|
+
0 belong 0x020c0106 HP s200 relocatable executable
|
|
156
|
+
>4 beshort >0 - version %d
|
|
157
|
+
>6 beshort >0 - highwater %d
|
|
158
|
+
>8 belong &0x80000000 save fp regs
|
|
159
|
+
>8 belong &0x20000000 debuggable
|
|
160
|
+
>8 belong &0x10000000 PIC
|
|
161
|
+
|
|
162
|
+
0 belong 0x020a0108 HP s200 (2.x release) pure executable
|
|
163
|
+
>4 beshort >0 - version %d
|
|
164
|
+
>36 belong >0 not stripped
|
|
165
|
+
|
|
166
|
+
0 belong 0x020a0107 HP s200 (2.x release) executable
|
|
167
|
+
>4 beshort >0 - version %d
|
|
168
|
+
>36 belong >0 not stripped
|
|
169
|
+
|
|
170
|
+
0 belong 0x020c010e HP s200 shared library
|
|
171
|
+
>4 beshort >0 - version %d
|
|
172
|
+
>6 beshort >0 - highwater %d
|
|
173
|
+
>36 belong >0 not stripped
|
|
174
|
+
|
|
175
|
+
0 belong 0x020c010d HP s200 dynamic load library
|
|
176
|
+
>4 beshort >0 - version %d
|
|
177
|
+
>6 beshort >0 - highwater %d
|
|
178
|
+
>36 belong >0 not stripped
|
|
179
|
+
|
|
180
|
+
#### MISC
|
|
181
|
+
0 long 0x0000ff65 HP old archive
|
|
182
|
+
0 long 0x020aff65 HP s200 old archive
|
|
183
|
+
0 long 0x020cff65 HP s200 old archive
|
|
184
|
+
0 long 0x0208ff65 HP s500 old archive
|
|
185
|
+
|
|
186
|
+
0 long 0x015821a6 HP core file
|
|
187
|
+
|
|
188
|
+
0 long 0x4da7eee8 HP-WINDOWS font
|
|
189
|
+
>8 byte >0 - version %d
|
|
190
|
+
0 string Bitmapfile HP Bitmapfile
|
|
191
|
+
|
|
192
|
+
0 string IMGfile CIS compimg HP Bitmapfile
|
|
193
|
+
# XXX - see "lif"
|
|
194
|
+
#0 short 0x8000 lif file
|
|
195
|
+
0 long 0x020c010c compiled Lisp
|
|
196
|
+
|
|
197
|
+
0 string msgcat01 HP NLS message catalog,
|
|
198
|
+
>8 long >0 %d messages
|
|
199
|
+
|
|
200
|
+
# Summary: HP-48/49 calculator
|
|
201
|
+
# Created by: phk@data.fls.dk
|
|
202
|
+
# Modified by (1): AMAKAWA Shuhei <sa264@cam.ac.uk>
|
|
203
|
+
# Modified by (2): Samuel Thibault <samuel.thibault@ens-lyon.org> (HP49 support)
|
|
204
|
+
0 string HPHP HP
|
|
205
|
+
>4 string 48 48 binary
|
|
206
|
+
>4 string 49 49 binary
|
|
207
|
+
>7 byte >64 - Rev %c
|
|
208
|
+
>8 leshort 0x2911 (ADR)
|
|
209
|
+
>8 leshort 0x2933 (REAL)
|
|
210
|
+
>8 leshort 0x2955 (LREAL)
|
|
211
|
+
>8 leshort 0x2977 (COMPLX)
|
|
212
|
+
>8 leshort 0x299d (LCOMPLX)
|
|
213
|
+
>8 leshort 0x29bf (CHAR)
|
|
214
|
+
>8 leshort 0x29e8 (ARRAY)
|
|
215
|
+
>8 leshort 0x2a0a (LNKARRAY)
|
|
216
|
+
>8 leshort 0x2a2c (STRING)
|
|
217
|
+
>8 leshort 0x2a4e (HXS)
|
|
218
|
+
>8 leshort 0x2a74 (LIST)
|
|
219
|
+
>8 leshort 0x2a96 (DIR)
|
|
220
|
+
>8 leshort 0x2ab8 (ALG)
|
|
221
|
+
>8 leshort 0x2ada (UNIT)
|
|
222
|
+
>8 leshort 0x2afc (TAGGED)
|
|
223
|
+
>8 leshort 0x2b1e (GROB)
|
|
224
|
+
>8 leshort 0x2b40 (LIB)
|
|
225
|
+
>8 leshort 0x2b62 (BACKUP)
|
|
226
|
+
>8 leshort 0x2b88 (LIBDATA)
|
|
227
|
+
>8 leshort 0x2d9d (PROG)
|
|
228
|
+
>8 leshort 0x2dcc (CODE)
|
|
229
|
+
>8 leshort 0x2e48 (GNAME)
|
|
230
|
+
>8 leshort 0x2e6d (LNAME)
|
|
231
|
+
>8 leshort 0x2e92 (XLIB)
|
|
232
|
+
|
|
233
|
+
0 string %%HP: HP text
|
|
234
|
+
>6 string T(0) - T(0)
|
|
235
|
+
>6 string T(1) - T(1)
|
|
236
|
+
>6 string T(2) - T(2)
|
|
237
|
+
>6 string T(3) - T(3)
|
|
238
|
+
>10 string A(D) A(D)
|
|
239
|
+
>10 string A(R) A(R)
|
|
240
|
+
>10 string A(G) A(G)
|
|
241
|
+
>14 string F(.) F(.);
|
|
242
|
+
>14 string F(,) F(,);
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
# Summary: HP-38/39 calculator
|
|
246
|
+
# Created by: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
|
247
|
+
0 string HP3
|
|
248
|
+
>3 string 8 HP 38
|
|
249
|
+
>3 string 9 HP 39
|
|
250
|
+
>4 string Bin binary
|
|
251
|
+
>4 string Asc ASCII
|
|
252
|
+
>7 string A (Directory List)
|
|
253
|
+
>7 string B (Zaplet)
|
|
254
|
+
>7 string C (Note)
|
|
255
|
+
>7 string D (Program)
|
|
256
|
+
>7 string E (Variable)
|
|
257
|
+
>7 string F (List)
|
|
258
|
+
>7 string G (Matrix)
|
|
259
|
+
>7 string H (Library)
|
|
260
|
+
>7 string I (Target List)
|
|
261
|
+
>7 string J (ASCII Vector specification)
|
|
262
|
+
>7 string K (wildcard)
|
|
263
|
+
|
|
264
|
+
# Summary: HP-38/39 calculator
|
|
265
|
+
# Created by: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
|
266
|
+
0 string HP3
|
|
267
|
+
>3 string 8 HP 38
|
|
268
|
+
>3 string 9 HP 39
|
|
269
|
+
>4 string Bin binary
|
|
270
|
+
>4 string Asc ASCII
|
|
271
|
+
>7 string A (Directory List)
|
|
272
|
+
>7 string B (Zaplet)
|
|
273
|
+
>7 string C (Note)
|
|
274
|
+
>7 string D (Program)
|
|
275
|
+
>7 string E (Variable)
|
|
276
|
+
>7 string F (List)
|
|
277
|
+
>7 string G (Matrix)
|
|
278
|
+
>7 string H (Library)
|
|
279
|
+
>7 string I (Target List)
|
|
280
|
+
>7 string J (ASCII Vector specification)
|
|
281
|
+
>7 string K (wildcard)
|
|
282
|
+
|
|
283
|
+
# hpBSD magic numbers
|
|
284
|
+
0 beshort 200 hp200 (68010) BSD
|
|
285
|
+
>2 beshort 0407 impure binary
|
|
286
|
+
>2 beshort 0410 read-only binary
|
|
287
|
+
>2 beshort 0413 demand paged binary
|
|
288
|
+
0 beshort 300 hp300 (68020+68881) BSD
|
|
289
|
+
>2 beshort 0407 impure binary
|
|
290
|
+
>2 beshort 0410 read-only binary
|
|
291
|
+
>2 beshort 0413 demand paged binary
|
|
292
|
+
#
|
|
293
|
+
# From David Gero <dgero@nortelnetworks.com>
|
|
294
|
+
# HP-UX 10.20 core file format from /usr/include/sys/core.h
|
|
295
|
+
# Unfortunately, HP-UX uses corehead blocks without specifying the order
|
|
296
|
+
# There are four we care about:
|
|
297
|
+
# CORE_KERNEL, which starts with the string "HP-UX"
|
|
298
|
+
# CORE_EXEC, which contains the name of the command
|
|
299
|
+
# CORE_PROC, which contains the signal number that caused the core dump
|
|
300
|
+
# CORE_FORMAT, which contains the version of the core file format (== 1)
|
|
301
|
+
# The only observed order in real core files is KERNEL, EXEC, FORMAT, PROC
|
|
302
|
+
# but we include all 6 variations of the order of the first 3, and
|
|
303
|
+
# assume that PROC will always be last
|
|
304
|
+
# Order 1: KERNEL, EXEC, FORMAT, PROC
|
|
305
|
+
0x10 string HP-UX
|
|
306
|
+
>0 belong 2
|
|
307
|
+
>>0xC belong 0x3C
|
|
308
|
+
>>>0x4C belong 0x100
|
|
309
|
+
>>>>0x58 belong 0x44
|
|
310
|
+
>>>>>0xA0 belong 1
|
|
311
|
+
>>>>>>0xAC belong 4
|
|
312
|
+
>>>>>>>0xB0 belong 1
|
|
313
|
+
>>>>>>>>0xB4 belong 4 core file
|
|
314
|
+
>>>>>>>>>0x90 string >\0 from '%s'
|
|
315
|
+
>>>>>>>>>0xC4 belong 3 - received SIGQUIT
|
|
316
|
+
>>>>>>>>>0xC4 belong 4 - received SIGILL
|
|
317
|
+
>>>>>>>>>0xC4 belong 5 - received SIGTRAP
|
|
318
|
+
>>>>>>>>>0xC4 belong 6 - received SIGABRT
|
|
319
|
+
>>>>>>>>>0xC4 belong 7 - received SIGEMT
|
|
320
|
+
>>>>>>>>>0xC4 belong 8 - received SIGFPE
|
|
321
|
+
>>>>>>>>>0xC4 belong 10 - received SIGBUS
|
|
322
|
+
>>>>>>>>>0xC4 belong 11 - received SIGSEGV
|
|
323
|
+
>>>>>>>>>0xC4 belong 12 - received SIGSYS
|
|
324
|
+
>>>>>>>>>0xC4 belong 33 - received SIGXCPU
|
|
325
|
+
>>>>>>>>>0xC4 belong 34 - received SIGXFSZ
|
|
326
|
+
# Order 2: KERNEL, FORMAT, EXEC, PROC
|
|
327
|
+
>>>0x4C belong 1
|
|
328
|
+
>>>>0x58 belong 4
|
|
329
|
+
>>>>>0x5C belong 1
|
|
330
|
+
>>>>>>0x60 belong 0x100
|
|
331
|
+
>>>>>>>0x6C belong 0x44
|
|
332
|
+
>>>>>>>>0xB4 belong 4 core file
|
|
333
|
+
>>>>>>>>>0xA4 string >\0 from '%s'
|
|
334
|
+
>>>>>>>>>0xC4 belong 3 - received SIGQUIT
|
|
335
|
+
>>>>>>>>>0xC4 belong 4 - received SIGILL
|
|
336
|
+
>>>>>>>>>0xC4 belong 5 - received SIGTRAP
|
|
337
|
+
>>>>>>>>>0xC4 belong 6 - received SIGABRT
|
|
338
|
+
>>>>>>>>>0xC4 belong 7 - received SIGEMT
|
|
339
|
+
>>>>>>>>>0xC4 belong 8 - received SIGFPE
|
|
340
|
+
>>>>>>>>>0xC4 belong 10 - received SIGBUS
|
|
341
|
+
>>>>>>>>>0xC4 belong 11 - received SIGSEGV
|
|
342
|
+
>>>>>>>>>0xC4 belong 12 - received SIGSYS
|
|
343
|
+
>>>>>>>>>0xC4 belong 33 - received SIGXCPU
|
|
344
|
+
>>>>>>>>>0xC4 belong 34 - received SIGXFSZ
|
|
345
|
+
# Order 3: FORMAT, KERNEL, EXEC, PROC
|
|
346
|
+
0x24 string HP-UX
|
|
347
|
+
>0 belong 1
|
|
348
|
+
>>0xC belong 4
|
|
349
|
+
>>>0x10 belong 1
|
|
350
|
+
>>>>0x14 belong 2
|
|
351
|
+
>>>>>0x20 belong 0x3C
|
|
352
|
+
>>>>>>0x60 belong 0x100
|
|
353
|
+
>>>>>>>0x6C belong 0x44
|
|
354
|
+
>>>>>>>>0xB4 belong 4 core file
|
|
355
|
+
>>>>>>>>>0xA4 string >\0 from '%s'
|
|
356
|
+
>>>>>>>>>0xC4 belong 3 - received SIGQUIT
|
|
357
|
+
>>>>>>>>>0xC4 belong 4 - received SIGILL
|
|
358
|
+
>>>>>>>>>0xC4 belong 5 - received SIGTRAP
|
|
359
|
+
>>>>>>>>>0xC4 belong 6 - received SIGABRT
|
|
360
|
+
>>>>>>>>>0xC4 belong 7 - received SIGEMT
|
|
361
|
+
>>>>>>>>>0xC4 belong 8 - received SIGFPE
|
|
362
|
+
>>>>>>>>>0xC4 belong 10 - received SIGBUS
|
|
363
|
+
>>>>>>>>>0xC4 belong 11 - received SIGSEGV
|
|
364
|
+
>>>>>>>>>0xC4 belong 12 - received SIGSYS
|
|
365
|
+
>>>>>>>>>0xC4 belong 33 - received SIGXCPU
|
|
366
|
+
>>>>>>>>>0xC4 belong 34 - received SIGXFSZ
|
|
367
|
+
# Order 4: EXEC, KERNEL, FORMAT, PROC
|
|
368
|
+
0x64 string HP-UX
|
|
369
|
+
>0 belong 0x100
|
|
370
|
+
>>0xC belong 0x44
|
|
371
|
+
>>>0x54 belong 2
|
|
372
|
+
>>>>0x60 belong 0x3C
|
|
373
|
+
>>>>>0xA0 belong 1
|
|
374
|
+
>>>>>>0xAC belong 4
|
|
375
|
+
>>>>>>>0xB0 belong 1
|
|
376
|
+
>>>>>>>>0xB4 belong 4 core file
|
|
377
|
+
>>>>>>>>>0x44 string >\0 from '%s'
|
|
378
|
+
>>>>>>>>>0xC4 belong 3 - received SIGQUIT
|
|
379
|
+
>>>>>>>>>0xC4 belong 4 - received SIGILL
|
|
380
|
+
>>>>>>>>>0xC4 belong 5 - received SIGTRAP
|
|
381
|
+
>>>>>>>>>0xC4 belong 6 - received SIGABRT
|
|
382
|
+
>>>>>>>>>0xC4 belong 7 - received SIGEMT
|
|
383
|
+
>>>>>>>>>0xC4 belong 8 - received SIGFPE
|
|
384
|
+
>>>>>>>>>0xC4 belong 10 - received SIGBUS
|
|
385
|
+
>>>>>>>>>0xC4 belong 11 - received SIGSEGV
|
|
386
|
+
>>>>>>>>>0xC4 belong 12 - received SIGSYS
|
|
387
|
+
>>>>>>>>>0xC4 belong 33 - received SIGXCPU
|
|
388
|
+
>>>>>>>>>0xC4 belong 34 - received SIGXFSZ
|
|
389
|
+
# Order 5: FORMAT, EXEC, KERNEL, PROC
|
|
390
|
+
0x78 string HP-UX
|
|
391
|
+
>0 belong 1
|
|
392
|
+
>>0xC belong 4
|
|
393
|
+
>>>0x10 belong 1
|
|
394
|
+
>>>>0x14 belong 0x100
|
|
395
|
+
>>>>>0x20 belong 0x44
|
|
396
|
+
>>>>>>0x68 belong 2
|
|
397
|
+
>>>>>>>0x74 belong 0x3C
|
|
398
|
+
>>>>>>>>0xB4 belong 4 core file
|
|
399
|
+
>>>>>>>>>0x58 string >\0 from '%s'
|
|
400
|
+
>>>>>>>>>0xC4 belong 3 - received SIGQUIT
|
|
401
|
+
>>>>>>>>>0xC4 belong 4 - received SIGILL
|
|
402
|
+
>>>>>>>>>0xC4 belong 5 - received SIGTRAP
|
|
403
|
+
>>>>>>>>>0xC4 belong 6 - received SIGABRT
|
|
404
|
+
>>>>>>>>>0xC4 belong 7 - received SIGEMT
|
|
405
|
+
>>>>>>>>>0xC4 belong 8 - received SIGFPE
|
|
406
|
+
>>>>>>>>>0xC4 belong 10 - received SIGBUS
|
|
407
|
+
>>>>>>>>>0xC4 belong 11 - received SIGSEGV
|
|
408
|
+
>>>>>>>>>0xC4 belong 12 - received SIGSYS
|
|
409
|
+
>>>>>>>>>0xC4 belong 33 - received SIGXCPU
|
|
410
|
+
>>>>>>>>>0xC4 belong 34 - received SIGXFSZ
|
|
411
|
+
# Order 6: EXEC, FORMAT, KERNEL, PROC
|
|
412
|
+
>0 belong 0x100
|
|
413
|
+
>>0xC belong 0x44
|
|
414
|
+
>>>0x54 belong 1
|
|
415
|
+
>>>>0x60 belong 4
|
|
416
|
+
>>>>>0x64 belong 1
|
|
417
|
+
>>>>>>0x68 belong 2
|
|
418
|
+
>>>>>>>0x74 belong 0x2C
|
|
419
|
+
>>>>>>>>0xB4 belong 4 core file
|
|
420
|
+
>>>>>>>>>0x44 string >\0 from '%s'
|
|
421
|
+
>>>>>>>>>0xC4 belong 3 - received SIGQUIT
|
|
422
|
+
>>>>>>>>>0xC4 belong 4 - received SIGILL
|
|
423
|
+
>>>>>>>>>0xC4 belong 5 - received SIGTRAP
|
|
424
|
+
>>>>>>>>>0xC4 belong 6 - received SIGABRT
|
|
425
|
+
>>>>>>>>>0xC4 belong 7 - received SIGEMT
|
|
426
|
+
>>>>>>>>>0xC4 belong 8 - received SIGFPE
|
|
427
|
+
>>>>>>>>>0xC4 belong 10 - received SIGBUS
|
|
428
|
+
>>>>>>>>>0xC4 belong 11 - received SIGSEGV
|
|
429
|
+
>>>>>>>>>0xC4 belong 12 - received SIGSYS
|
|
430
|
+
>>>>>>>>>0xC4 belong 33 - received SIGXCPU
|
|
431
|
+
>>>>>>>>>0xC4 belong 34 - received SIGXFSZ
|
|
432
|
+
|
|
433
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: human68k,v 1.6 2021/04/26 15:56:00 christos Exp $
|
|
4
|
+
# human68k: file(1) magic for Human68k (X680x0 DOS) binary formats
|
|
5
|
+
# Magic too short!
|
|
6
|
+
#0 string HU Human68k
|
|
7
|
+
#>68 string LZX LZX compressed
|
|
8
|
+
#>>72 string >\0 (version %s)
|
|
9
|
+
#>(8.L+74) string LZX LZX compressed
|
|
10
|
+
#>>(8.L+78) string >\0 (version %s)
|
|
11
|
+
#>60 belong >0 binded
|
|
12
|
+
#>(8.L+66) string #HUPAIR hupair
|
|
13
|
+
#>0 string HU X executable
|
|
14
|
+
#>(8.L+74) string #LIBCV1 - linked PD LIBC ver 1
|
|
15
|
+
#>4 belong >0 - base address %#x
|
|
16
|
+
#>28 belong >0 not stripped
|
|
17
|
+
#>32 belong >0 with debug information
|
|
18
|
+
#0 beshort 0x601a Human68k Z executable
|
|
19
|
+
#0 beshort 0x6000 Human68k object file
|
|
20
|
+
#0 belong 0xd1000000 Human68k ar binary archive
|
|
21
|
+
#0 belong 0xd1010000 Human68k ar ascii archive
|
|
22
|
+
#0 beshort 0x0068 Human68k lib archive
|
|
23
|
+
#4 string LZX Human68k LZX compressed
|
|
24
|
+
#>8 string >\0 (version %s)
|
|
25
|
+
#>4 string LZX R executable
|
|
26
|
+
#2 string #HUPAIR Human68k hupair R executable
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: ibm370,v 1.11 2021/03/14 16:51:45 christos Exp $
|
|
4
|
+
# ibm370: file(1) magic for IBM 370 and compatibles.
|
|
5
|
+
#
|
|
6
|
+
# "ibm370" said that 0x15d == 0535 was "ibm 370 pure executable".
|
|
7
|
+
# What the heck *is* "USS/370"?
|
|
8
|
+
# AIX 4.1's "/etc/magic" has
|
|
9
|
+
#
|
|
10
|
+
# 0 short 0535 370 sysV executable
|
|
11
|
+
# >12 long >0 not stripped
|
|
12
|
+
# >22 short >0 - version %d
|
|
13
|
+
# >30 long >0 - 5.2 format
|
|
14
|
+
# 0 short 0530 370 sysV pure executable
|
|
15
|
+
# >12 long >0 not stripped
|
|
16
|
+
# >22 short >0 - version %d
|
|
17
|
+
# >30 long >0 - 5.2 format
|
|
18
|
+
#
|
|
19
|
+
# instead of the "USS/370" versions of the same magic numbers.
|
|
20
|
+
#
|
|
21
|
+
0 beshort 0537 370 XA sysV executable
|
|
22
|
+
>12 belong >0 not stripped
|
|
23
|
+
>22 beshort >0 - version %d
|
|
24
|
+
>30 belong >0 - 5.2 format
|
|
25
|
+
0 beshort 0532 370 XA sysV pure executable
|
|
26
|
+
>12 belong >0 not stripped
|
|
27
|
+
>22 beshort >0 - version %d
|
|
28
|
+
>30 belong >0 - 5.2 format
|
|
29
|
+
0 beshort 054001 370 sysV pure executable
|
|
30
|
+
>12 belong >0 not stripped
|
|
31
|
+
0 beshort 055001 370 XA sysV pure executable
|
|
32
|
+
>12 belong >0 not stripped
|
|
33
|
+
0 beshort 056401 370 sysV executable
|
|
34
|
+
>12 belong >0 not stripped
|
|
35
|
+
0 beshort 057401 370 XA sysV executable
|
|
36
|
+
>12 belong >0 not stripped
|
|
37
|
+
0 beshort 0531 SVR2 executable (Amdahl-UTS)
|
|
38
|
+
>12 belong >0 not stripped
|
|
39
|
+
>24 belong >0 - version %d
|
|
40
|
+
0 beshort 0534 SVR2 pure executable (Amdahl-UTS)
|
|
41
|
+
>12 belong >0 not stripped
|
|
42
|
+
>24 belong >0 - version %d
|
|
43
|
+
0 beshort 0530 SVR2 pure executable (USS/370)
|
|
44
|
+
>12 belong >0 not stripped
|
|
45
|
+
>24 belong >0 - version %d
|
|
46
|
+
0 beshort 0535 SVR2 executable (USS/370)
|
|
47
|
+
>12 belong >0 not stripped
|
|
48
|
+
>24 belong >0 - version %d
|
|
49
|
+
|
|
50
|
+
# NETDATA (https://en.wikipedia.org/wiki/NETDATA)
|
|
51
|
+
# -\INMR01 In EBCDIC
|
|
52
|
+
0 string \x60\xe0\xc9\xd5\xd4\xd9\xf0\xf1 IBM NETDATA file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: ibm6000,v 1.15 2021/07/03 14:01:46 christos Exp $
|
|
4
|
+
# ibm6000: file(1) magic for RS/6000 and the RT PC.
|
|
5
|
+
#
|
|
6
|
+
0 beshort 0x01df executable (RISC System/6000 V3.1) or obj module
|
|
7
|
+
>12 belong >0 not stripped
|
|
8
|
+
# Breaks sun4 statically linked execs.
|
|
9
|
+
#0 beshort 0x0103 executable (RT Version 2) or obj module
|
|
10
|
+
#>2 byte 0x50 pure
|
|
11
|
+
#>28 belong >0 not stripped
|
|
12
|
+
#>6 beshort >0 - version %ld
|
|
13
|
+
# GRR: line below is too general as it matches also TTComp archive, ASCII, 1K handled by ./archive
|
|
14
|
+
0 beshort 0x0104 shared library
|
|
15
|
+
# GRR: line below is too general as it matches also TTComp archive, ASCII, 2K handled by ./archive
|
|
16
|
+
0 beshort 0x0105 ctab data
|
|
17
|
+
0 beshort 0xfe04 structured file
|
|
18
|
+
0 string 0xabcdef AIX message catalog
|
|
19
|
+
0 belong 0x000001f9 AIX compiled message catalog
|
|
20
|
+
0 string \<aiaff> archive
|
|
21
|
+
0 string \<bigaf> archive (big format)
|
|
22
|
+
0 belong 0x09006bea AIX backup/restore format file
|
|
23
|
+
0 belong 0x09006fea AIX backup/restore format file
|
|
24
|
+
|
|
25
|
+
0 beshort 0x01f7 64-bit XCOFF executable or object module
|
|
26
|
+
>20 belong 0 not stripped
|
|
27
|
+
# GRR: this test is still too general as it catches also many FATs of DOS filesystems
|
|
28
|
+
4 belong &0x0feeddb0
|
|
29
|
+
# real core dump could not be 32-bit and 64-bit together
|
|
30
|
+
>7 byte&0x03 !3 AIX core file
|
|
31
|
+
>>1 byte &0x01 fulldump
|
|
32
|
+
>>7 byte &0x01 32-bit
|
|
33
|
+
>>>0x6e0 string >\0 \b, %s
|
|
34
|
+
>>7 byte &0x02 64-bit
|
|
35
|
+
>>>0x524 string >\0 \b, %s
|