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/gpt
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: gpt,v 1.5 2020/12/12 20:01:47 christos Exp $
|
|
4
|
+
#
|
|
5
|
+
# GPT Partition table patterns.
|
|
6
|
+
# Author: Rogier Goossens (goossens.rogier@gmail.com)
|
|
7
|
+
# Note that a GPT-formatted disk must contain an MBR as well.
|
|
8
|
+
#
|
|
9
|
+
|
|
10
|
+
# The initial segment (up to >>>>>>>>422) was copied from the X86
|
|
11
|
+
# partition table code (aka MBR).
|
|
12
|
+
# This is kept separate, so that MBR partitions are not reported as well.
|
|
13
|
+
# (use -k if you do want them as well)
|
|
14
|
+
|
|
15
|
+
# First, detect the MBR partition table
|
|
16
|
+
# If more than one GPT protective MBR partition exists, don't print anything
|
|
17
|
+
# (the other MBR detection code will then just print the MBR partition table)
|
|
18
|
+
0x1FE leshort 0xAA55
|
|
19
|
+
>3 string !MS
|
|
20
|
+
>>3 string !SYSLINUX
|
|
21
|
+
>>>3 string !MTOOL
|
|
22
|
+
>>>>3 string !NEWLDR
|
|
23
|
+
>>>>>5 string !DOS
|
|
24
|
+
# not FAT (32 bit)
|
|
25
|
+
>>>>>>82 string !FAT32
|
|
26
|
+
#not Linux kernel
|
|
27
|
+
>>>>>>>514 string !HdrS
|
|
28
|
+
#not BeOS
|
|
29
|
+
>>>>>>>>422 string !Be\ Boot\ Loader
|
|
30
|
+
# GPT with protective MBR entry in partition 1 (only)
|
|
31
|
+
>>>>>>>>>450 ubyte 0xee
|
|
32
|
+
>>>>>>>>>>466 ubyte !0xee
|
|
33
|
+
>>>>>>>>>>>482 ubyte !0xee
|
|
34
|
+
>>>>>>>>>>>>498 ubyte !0xee
|
|
35
|
+
#>>>>>>>>>>>>>446 use gpt-mbr-partition
|
|
36
|
+
>>>>>>>>>>>>>(454.l*8192) string EFI\ PART GPT partition table
|
|
37
|
+
>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
38
|
+
>>>>>>>>>>>>>>&-8 use gpt-table
|
|
39
|
+
>>>>>>>>>>>>>>0 ubyte x of 8192 bytes
|
|
40
|
+
>>>>>>>>>>>>>(454.l*8192) string !EFI\ PART
|
|
41
|
+
>>>>>>>>>>>>>>(454.l*4096) string EFI\ PART GPT partition table
|
|
42
|
+
>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
43
|
+
>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
44
|
+
>>>>>>>>>>>>>>>0 ubyte x of 4096 bytes
|
|
45
|
+
>>>>>>>>>>>>>>(454.l*4096) string !EFI\ PART
|
|
46
|
+
>>>>>>>>>>>>>>>(454.l*2048) string EFI\ PART GPT partition table
|
|
47
|
+
>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
48
|
+
>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
49
|
+
>>>>>>>>>>>>>>>>0 ubyte x of 2048 bytes
|
|
50
|
+
>>>>>>>>>>>>>>>(454.l*2048) string !EFI\ PART
|
|
51
|
+
>>>>>>>>>>>>>>>>(454.l*1024) string EFI\ PART GPT partition table
|
|
52
|
+
>>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
53
|
+
>>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
54
|
+
>>>>>>>>>>>>>>>>>0 ubyte x of 1024 bytes
|
|
55
|
+
>>>>>>>>>>>>>>>>(454.l*1024) string !EFI\ PART
|
|
56
|
+
>>>>>>>>>>>>>>>>>(454.l*512) string EFI\ PART GPT partition table
|
|
57
|
+
>>>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
58
|
+
>>>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
59
|
+
>>>>>>>>>>>>>>>>>>0 ubyte x of 512 bytes
|
|
60
|
+
# GPT with protective MBR entry in partition 2 (only)
|
|
61
|
+
>>>>>>>>>450 ubyte !0xee
|
|
62
|
+
>>>>>>>>>>466 ubyte 0xee
|
|
63
|
+
>>>>>>>>>>>482 ubyte !0xee
|
|
64
|
+
>>>>>>>>>>>>498 ubyte !0xee
|
|
65
|
+
#>>>>>>>>>>>>>462 use gpt-mbr-partition
|
|
66
|
+
>>>>>>>>>>>>>(470.l*8192) string EFI\ PART GPT partition table
|
|
67
|
+
>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
68
|
+
>>>>>>>>>>>>>>&-8 use gpt-table
|
|
69
|
+
>>>>>>>>>>>>>>0 ubyte x of 8192 bytes
|
|
70
|
+
>>>>>>>>>>>>>(470.l*8192) string !EFI\ PART
|
|
71
|
+
>>>>>>>>>>>>>>(470.l*4096) string EFI\ PART GPT partition table
|
|
72
|
+
>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
73
|
+
>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
74
|
+
>>>>>>>>>>>>>>>0 ubyte x of 4096 bytes
|
|
75
|
+
>>>>>>>>>>>>>>(470.l*4096) string !EFI\ PART
|
|
76
|
+
>>>>>>>>>>>>>>>(470.l*2048) string EFI\ PART GPT partition table
|
|
77
|
+
>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
78
|
+
>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
79
|
+
>>>>>>>>>>>>>>>>0 ubyte x of 2048 bytes
|
|
80
|
+
>>>>>>>>>>>>>>>(470.l*2048) string !EFI\ PART
|
|
81
|
+
>>>>>>>>>>>>>>>>(470.l*1024) string EFI\ PART GPT partition table
|
|
82
|
+
>>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
83
|
+
>>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
84
|
+
>>>>>>>>>>>>>>>>>0 ubyte x of 1024 bytes
|
|
85
|
+
>>>>>>>>>>>>>>>>(470.l*1024) string !EFI\ PART
|
|
86
|
+
>>>>>>>>>>>>>>>>>(470.l*512) string EFI\ PART GPT partition table
|
|
87
|
+
>>>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
88
|
+
>>>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
89
|
+
>>>>>>>>>>>>>>>>>>0 ubyte x of 512 bytes
|
|
90
|
+
# GPT with protective MBR entry in partition 3 (only)
|
|
91
|
+
>>>>>>>>>450 ubyte !0xee
|
|
92
|
+
>>>>>>>>>>466 ubyte !0xee
|
|
93
|
+
>>>>>>>>>>>482 ubyte 0xee
|
|
94
|
+
>>>>>>>>>>>>498 ubyte !0xee
|
|
95
|
+
#>>>>>>>>>>>>>478 use gpt-mbr-partition
|
|
96
|
+
>>>>>>>>>>>>>(486.l*8192) string EFI\ PART GPT partition table
|
|
97
|
+
>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
98
|
+
>>>>>>>>>>>>>>&-8 use gpt-table
|
|
99
|
+
>>>>>>>>>>>>>>0 ubyte x of 8192 bytes
|
|
100
|
+
>>>>>>>>>>>>>(486.l*8192) string !EFI\ PART
|
|
101
|
+
>>>>>>>>>>>>>>(486.l*4096) string EFI\ PART GPT partition table
|
|
102
|
+
>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
103
|
+
>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
104
|
+
>>>>>>>>>>>>>>>0 ubyte x of 4096 bytes
|
|
105
|
+
>>>>>>>>>>>>>>(486.l*4096) string !EFI\ PART
|
|
106
|
+
>>>>>>>>>>>>>>>(486.l*2048) string EFI\ PART GPT partition table
|
|
107
|
+
>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
108
|
+
>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
109
|
+
>>>>>>>>>>>>>>>>0 ubyte x of 2048 bytes
|
|
110
|
+
>>>>>>>>>>>>>>>(486.l*2048) string !EFI\ PART
|
|
111
|
+
>>>>>>>>>>>>>>>>(486.l*1024) string EFI\ PART GPT partition table
|
|
112
|
+
>>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
113
|
+
>>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
114
|
+
>>>>>>>>>>>>>>>>>0 ubyte x of 1024 bytes
|
|
115
|
+
>>>>>>>>>>>>>>>>(486.l*1024) string !EFI\ PART
|
|
116
|
+
>>>>>>>>>>>>>>>>>(486.l*512) string EFI\ PART GPT partition table
|
|
117
|
+
>>>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
118
|
+
>>>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
119
|
+
>>>>>>>>>>>>>>>>>>0 ubyte x of 512 bytes
|
|
120
|
+
# GPT with protective MBR entry in partition 4 (only)
|
|
121
|
+
>>>>>>>>>450 ubyte !0xee
|
|
122
|
+
>>>>>>>>>>466 ubyte !0xee
|
|
123
|
+
>>>>>>>>>>>482 ubyte !0xee
|
|
124
|
+
>>>>>>>>>>>>498 ubyte 0xee
|
|
125
|
+
#>>>>>>>>>>>>>494 use gpt-mbr-partition
|
|
126
|
+
>>>>>>>>>>>>>(502.l*8192) string EFI\ PART GPT partition table
|
|
127
|
+
>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
128
|
+
>>>>>>>>>>>>>>&-8 use gpt-table
|
|
129
|
+
>>>>>>>>>>>>>>0 ubyte x of 8192 bytes
|
|
130
|
+
>>>>>>>>>>>>>(502.l*8192) string !EFI\ PART
|
|
131
|
+
>>>>>>>>>>>>>>(502.l*4096) string EFI\ PART GPT partition table
|
|
132
|
+
>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
133
|
+
>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
134
|
+
>>>>>>>>>>>>>>>0 ubyte x of 4096 bytes
|
|
135
|
+
>>>>>>>>>>>>>>(502.l*4096) string !EFI\ PART
|
|
136
|
+
>>>>>>>>>>>>>>>(502.l*2048) string EFI\ PART GPT partition table
|
|
137
|
+
>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
138
|
+
>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
139
|
+
>>>>>>>>>>>>>>>>0 ubyte x of 2048 bytes
|
|
140
|
+
>>>>>>>>>>>>>>>(502.l*2048) string !EFI\ PART
|
|
141
|
+
>>>>>>>>>>>>>>>>(502.l*1024) string EFI\ PART GPT partition table
|
|
142
|
+
>>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
143
|
+
>>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
144
|
+
>>>>>>>>>>>>>>>>>0 ubyte x of 1024 bytes
|
|
145
|
+
>>>>>>>>>>>>>>>>(502.l*1024) string !EFI\ PART
|
|
146
|
+
>>>>>>>>>>>>>>>>>(502.l*512) string EFI\ PART GPT partition table
|
|
147
|
+
>>>>>>>>>>>>>>>>>>0 use gpt-mbr-type
|
|
148
|
+
>>>>>>>>>>>>>>>>>>&-8 use gpt-table
|
|
149
|
+
>>>>>>>>>>>>>>>>>>0 ubyte x of 512 bytes
|
|
150
|
+
|
|
151
|
+
# The following code does GPT detection and processing, including
|
|
152
|
+
# sector size detection.
|
|
153
|
+
# It has to be duplicated above because the top-level pattern
|
|
154
|
+
# (i.e. not called using 'use') must print *something* for file
|
|
155
|
+
# to count it as a match. Text only printed in named patterns is
|
|
156
|
+
# not counted, and causes file to continue, and try and match
|
|
157
|
+
# other patterns.
|
|
158
|
+
#
|
|
159
|
+
# Unfortunately, when assuming sector sizes >=16k, if the sector size
|
|
160
|
+
# happens to be 512 instead, we may find confusing data after the GPT
|
|
161
|
+
# table... If the GPT table has less than 128 entries, this may even
|
|
162
|
+
# happen for assumed sector sizes as small as 4k
|
|
163
|
+
# This could be solved by checking for the presence of the backup GPT
|
|
164
|
+
# header as well, but that makes the logic extremely complex
|
|
165
|
+
##0 name gpt-mbr-partition
|
|
166
|
+
##>(8.l*8192) string EFI\ PART
|
|
167
|
+
##>>(8.l*8192) use gpt-mbr-type
|
|
168
|
+
##>>&-8 use gpt-table
|
|
169
|
+
##>>0 ubyte x of 8192 bytes
|
|
170
|
+
##>(8.l*8192) string !EFI\ PART
|
|
171
|
+
##>>(8.l*4096) string EFI\ PART GPT partition table
|
|
172
|
+
##>>>0 use gpt-mbr-type
|
|
173
|
+
##>>>&-8 use gpt-table
|
|
174
|
+
##>>>0 ubyte x of 4096 bytes
|
|
175
|
+
##>>(8.l*4096) string !EFI\ PART
|
|
176
|
+
##>>>(8.l*2048) string EFI\ PART GPT partition table
|
|
177
|
+
##>>>>0 use gpt-mbr-type
|
|
178
|
+
##>>>>&-8 use gpt-table
|
|
179
|
+
##>>>>0 ubyte x of 2048 bytes
|
|
180
|
+
##>>>(8.l*2048) string !EFI\ PART
|
|
181
|
+
##>>>>(8.l*1024) string EFI\ PART GPT partition table
|
|
182
|
+
##>>>>>0 use gpt-mbr-type
|
|
183
|
+
##>>>>>&-8 use gpt-table
|
|
184
|
+
##>>>>>0 ubyte x of 1024 bytes
|
|
185
|
+
##>>>>(8.l*1024) string !EFI\ PART
|
|
186
|
+
##>>>>>(8.l*512) string EFI\ PART GPT partition table
|
|
187
|
+
##>>>>>>0 use gpt-mbr-type
|
|
188
|
+
##>>>>>>&-8 use gpt-table
|
|
189
|
+
##>>>>>>0 ubyte x of 512 bytes
|
|
190
|
+
|
|
191
|
+
# Print details of MBR type for a GPT-disk
|
|
192
|
+
# Calling code ensures that there is only one 0xee partition.
|
|
193
|
+
0 name gpt-mbr-type
|
|
194
|
+
# GPT with protective MBR entry in partition 1
|
|
195
|
+
>450 ubyte 0xee
|
|
196
|
+
>>454 ulelong 1
|
|
197
|
+
>>>462 string !\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \b (with hybrid MBR)
|
|
198
|
+
>>454 ulelong !1 \b (nonstandard: not at LBA 1)
|
|
199
|
+
# GPT with protective MBR entry in partition 2
|
|
200
|
+
>466 ubyte 0xee
|
|
201
|
+
>>470 ulelong 1
|
|
202
|
+
>>>478 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
|
|
203
|
+
>>>>446 string !\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \b (with hybrid MBR)
|
|
204
|
+
>>>478 string !\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \b (with hybrid MBR)
|
|
205
|
+
>>470 ulelong !1 \b (nonstandard: not at LBA 1)
|
|
206
|
+
# GPT with protective MBR entry in partition 3
|
|
207
|
+
>482 ubyte 0xee
|
|
208
|
+
>>486 ulelong 1
|
|
209
|
+
>>>494 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
|
|
210
|
+
>>>>446 string !\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \b (with hybrid MBR)
|
|
211
|
+
>>>494 string !\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \b (with hybrid MBR)
|
|
212
|
+
>>486 ulelong !1 \b (nonstandard: not at LBA 1)
|
|
213
|
+
# GPT with protective MBR entry in partition 4
|
|
214
|
+
>498 ubyte 0xee
|
|
215
|
+
>>502 ulelong 1
|
|
216
|
+
>>>446 string !\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \b (with hybrid MBR)
|
|
217
|
+
>>502 ulelong !1 \b (nonstandard: not at LBA 1)
|
|
218
|
+
|
|
219
|
+
# Print the information from a GPT partition table structure
|
|
220
|
+
0 name gpt-table
|
|
221
|
+
>10 uleshort x \b, version %u
|
|
222
|
+
>8 uleshort x \b.%u
|
|
223
|
+
>56 ulelong x \b, GUID: %08x
|
|
224
|
+
>60 uleshort x \b-%04x
|
|
225
|
+
>62 uleshort x \b-%04x
|
|
226
|
+
>64 ubeshort x \b-%04x
|
|
227
|
+
>66 ubeshort x \b-%04x
|
|
228
|
+
>68 ubelong x \b%08x
|
|
229
|
+
#>80 uleshort x \b, %d partition entries
|
|
230
|
+
>32 ulequad+1 x \b, disk size: %lld sectors
|
|
231
|
+
|
|
232
|
+
# In case a GPT data-structure is at LBA 0, report it as well
|
|
233
|
+
# This covers systems which are not GPT-aware, and which show
|
|
234
|
+
# and allow access to the protective partition. This code will
|
|
235
|
+
# detect the contents of such a partition.
|
|
236
|
+
0 string EFI\ PART GPT data structure (nonstandard: at LBA 0)
|
|
237
|
+
>0 use gpt-table
|
|
238
|
+
>0 ubyte x (sector size unknown)
|
|
239
|
+
|
|
240
|
+
|
polyfile/magic_defs/gpu
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: gpu,v 1.3 2021/04/26 15:56:00 christos Exp $
|
|
4
|
+
# gpu: file(1) magic for GPU input files
|
|
5
|
+
|
|
6
|
+
# Standard Portable Intermediate Representation (SPIR)
|
|
7
|
+
# Documentation: https://www.khronos.org/spir
|
|
8
|
+
# Typical file extension: .spv
|
|
9
|
+
|
|
10
|
+
0 belong 0x07230203 Khronos SPIR-V binary, big-endian
|
|
11
|
+
>4 belong x \b, version %#08x
|
|
12
|
+
>8 belong x \b, generator %#08x
|
|
13
|
+
|
|
14
|
+
0 lelong 0x07230203 Khronos SPIR-V binary, little-endian
|
|
15
|
+
>4 lelong x \b, version %#08x
|
|
16
|
+
>8 lelong x \b, generator %#08x
|
|
17
|
+
|
|
18
|
+
# Vulkan Trace file
|
|
19
|
+
# Documentation:
|
|
20
|
+
# https://github.com/LunarG/VulkanTools/blob/master/vktrace/vktrace_common/\
|
|
21
|
+
# vktrace_trace_packet_identifiers.h
|
|
22
|
+
# Typical file extension: .vktrace
|
|
23
|
+
|
|
24
|
+
8 lequad 0xABADD068ADEAFD0C Vulkan trace file, little-endian
|
|
25
|
+
>0 leshort x \b, version %d
|
|
26
|
+
|
|
27
|
+
8 bequad 0xABADD068ADEAFD0C Vulkan trace file, big-endian
|
|
28
|
+
>0 beshort x \b, version %d
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: grace,v 1.4 2009/09/19 16:28:09 christos Exp $
|
|
4
|
+
# ACE/gr and Grace type files - PLEASE DO NOT REMOVE THIS LINE
|
|
5
|
+
#
|
|
6
|
+
# ACE/gr binary
|
|
7
|
+
0 string \000\000\0001\000\000\0000\000\000\0000\000\000\0002\000\000\0000\000\000\0000\000\000\0003 old ACE/gr binary file
|
|
8
|
+
>39 byte >0 - version %c
|
|
9
|
+
# ACE/gr ascii
|
|
10
|
+
0 string #\ xvgr\ parameter\ file ACE/gr ascii file
|
|
11
|
+
0 string #\ xmgr\ parameter\ file ACE/gr ascii file
|
|
12
|
+
0 string #\ ACE/gr\ parameter\ file ACE/gr ascii file
|
|
13
|
+
# Grace projects
|
|
14
|
+
0 string #\ Grace\ project\ file Grace project file
|
|
15
|
+
>23 string @version\ (version
|
|
16
|
+
>>32 byte >0 %c
|
|
17
|
+
>>33 string >\0 \b.%.2s
|
|
18
|
+
>>35 string >\0 \b.%.2s)
|
|
19
|
+
# ACE/gr fit description files
|
|
20
|
+
0 string #\ ACE/gr\ fit\ description\ ACE/gr fit description file
|
|
21
|
+
# end of ACE/gr and Grace type files - PLEASE DO NOT REMOVE THIS LINE
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: graphviz,v 1.9 2019/04/30 04:01:40 christos Exp $
|
|
4
|
+
# graphviz: file(1) magic for https://www.graphviz.org/
|
|
5
|
+
|
|
6
|
+
# FIXME: These patterns match too generally. For example, the first
|
|
7
|
+
# line matches a LaTeX file containing the word "graph" (with a {
|
|
8
|
+
# following later) and the second line matches this file.
|
|
9
|
+
#0 regex/100l [\r\n\t\ ]*graph[\r\n\t\ ]+.*\\{ graphviz graph text
|
|
10
|
+
#!:mime text/vnd.graphviz
|
|
11
|
+
#0 regex/100l [\r\n\t\ ]*digraph[\r\n\t\ ]+.*\\{ graphviz digraph text
|
|
12
|
+
#!:mime text/vnd.graphviz
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: gringotts,v 1.6 2017/03/17 21:35:28 christos Exp $
|
|
4
|
+
# gringotts: file(1) magic for Gringotts
|
|
5
|
+
# http://devel.pluto.linux.it/projects/Gringotts/
|
|
6
|
+
# author: Germano Rizzo <mano@pluto.linux.it>
|
|
7
|
+
#GRG3????Y
|
|
8
|
+
0 string GRG Gringotts data file
|
|
9
|
+
#file format 1
|
|
10
|
+
>3 string 1 v.1, MCRYPT S2K, SERPENT crypt, SHA-256 hash, ZLib lvl.9
|
|
11
|
+
#file format 2
|
|
12
|
+
>3 string 2 v.2, MCRYPT S2K,
|
|
13
|
+
>>8 byte&0x70 0x00 RIJNDAEL-128 crypt,
|
|
14
|
+
>>8 byte&0x70 0x10 SERPENT crypt,
|
|
15
|
+
>>8 byte&0x70 0x20 TWOFISH crypt,
|
|
16
|
+
>>8 byte&0x70 0x30 CAST-256 crypt,
|
|
17
|
+
>>8 byte&0x70 0x40 SAFER+ crypt,
|
|
18
|
+
>>8 byte&0x70 0x50 LOKI97 crypt,
|
|
19
|
+
>>8 byte&0x70 0x60 3DES crypt,
|
|
20
|
+
>>8 byte&0x70 0x70 RIJNDAEL-256 crypt,
|
|
21
|
+
>>8 byte&0x08 0x00 SHA1 hash,
|
|
22
|
+
>>8 byte&0x08 0x08 RIPEMD-160 hash,
|
|
23
|
+
>>8 byte&0x04 0x00 ZLib
|
|
24
|
+
>>8 byte&0x04 0x04 BZip2
|
|
25
|
+
>>8 byte&0x03 0x00 lvl.0
|
|
26
|
+
>>8 byte&0x03 0x01 lvl.3
|
|
27
|
+
>>8 byte&0x03 0x02 lvl.6
|
|
28
|
+
>>8 byte&0x03 0x03 lvl.9
|
|
29
|
+
#file format 3
|
|
30
|
+
>3 string 3 v.3, OpenPGP S2K,
|
|
31
|
+
>>8 byte&0x70 0x00 RIJNDAEL-128 crypt,
|
|
32
|
+
>>8 byte&0x70 0x10 SERPENT crypt,
|
|
33
|
+
>>8 byte&0x70 0x20 TWOFISH crypt,
|
|
34
|
+
>>8 byte&0x70 0x30 CAST-256 crypt,
|
|
35
|
+
>>8 byte&0x70 0x40 SAFER+ crypt,
|
|
36
|
+
>>8 byte&0x70 0x50 LOKI97 crypt,
|
|
37
|
+
>>8 byte&0x70 0x60 3DES crypt,
|
|
38
|
+
>>8 byte&0x70 0x70 RIJNDAEL-256 crypt,
|
|
39
|
+
>>8 byte&0x08 0x00 SHA1 hash,
|
|
40
|
+
>>8 byte&0x08 0x08 RIPEMD-160 hash,
|
|
41
|
+
>>8 byte&0x04 0x00 ZLib
|
|
42
|
+
>>8 byte&0x04 0x04 BZip2
|
|
43
|
+
>>8 byte&0x03 0x00 lvl.0
|
|
44
|
+
>>8 byte&0x03 0x01 lvl.3
|
|
45
|
+
>>8 byte&0x03 0x02 lvl.6
|
|
46
|
+
>>8 byte&0x03 0x03 lvl.9
|
|
47
|
+
#file format >3
|
|
48
|
+
>3 string >3 v.%.1s (unknown details)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: guile,v 1.2 2019/04/19 00:42:27 christos Exp $
|
|
4
|
+
# Guile file magic from <dalepsmith@gmail.com>
|
|
5
|
+
# https://www.gnu.org/s/guile/
|
|
6
|
+
# https://git.savannah.gnu.org/gitweb/?p=guile.git;f=libguile/_scm.h;hb=HEAD#l250
|
|
7
|
+
|
|
8
|
+
0 string GOOF---- Guile Object
|
|
9
|
+
>8 string LE \b, little endian
|
|
10
|
+
>8 string BE \b, big endian
|
|
11
|
+
>11 string 4 \b, 32bit
|
|
12
|
+
>11 string 8 \b, 64bit
|
|
13
|
+
>13 regex .\.. \b, bytecode v%s
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: hardware,v 1.1 2018/08/02 06:32:52 christos Exp $
|
|
4
|
+
# hardware magic
|
|
5
|
+
|
|
6
|
+
# EDID
|
|
7
|
+
# https://en.wikipedia.org/wiki/Extended_Display_Identification_Data
|
|
8
|
+
0 string \x00\xFF\xFF\xFF\xFF\xFF\xFF\x00
|
|
9
|
+
>19 byte x
|
|
10
|
+
>>18 byte x EDID data, version %u.
|
|
11
|
+
>>19 byte x \b%u
|
|
12
|
+
#>>17 ubyte+1990 <255 \b, manufactured %u
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: hitachi-sh,v 1.10 2020/12/12 20:01:47 christos Exp $
|
|
4
|
+
# hitach-sh: file(1) magic for Hitachi Super-H
|
|
5
|
+
#
|
|
6
|
+
# Super-H COFF
|
|
7
|
+
#
|
|
8
|
+
# updated by Joerg Jenderek at Oct 2015
|
|
9
|
+
# https://en.wikipedia.org/wiki/COFF
|
|
10
|
+
# https://de.wikipedia.org/wiki/Common_Object_File_Format
|
|
11
|
+
# http://www.delorie.com/djgpp/doc/coff/filhdr.html
|
|
12
|
+
# below test line conflicts with 2nd NTFS filesystem sector
|
|
13
|
+
# 2nd NTFS filesystem sector often starts with 0x05004e00 for unicode string 5 NTLDR
|
|
14
|
+
# and Portable Gaming Notation Compressed format (*.WID http://pgn.freeservers.com/)
|
|
15
|
+
0 beshort 0x0500
|
|
16
|
+
# test for unused flag bits (0x8000,0x0800,0x0400,0x0200,x0080) in f_flags
|
|
17
|
+
>18 ubeshort&0x8E80 0
|
|
18
|
+
# use big endian variant of subroutine to display name+variables+flags
|
|
19
|
+
# for common object formatted files
|
|
20
|
+
>>0 use \^display-coff
|
|
21
|
+
!:strength -10
|
|
22
|
+
|
|
23
|
+
0 leshort 0x0550
|
|
24
|
+
# test for unused flag bits in f_flags
|
|
25
|
+
>18 uleshort&0x8E80 0
|
|
26
|
+
# use little endian variant of subroutine to
|
|
27
|
+
# display name+variables+flags for common object formatted files
|
|
28
|
+
>>0 use display-coff
|
|
29
|
+
!:strength -10
|
|
30
|
+
|