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/cad
ADDED
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: cad,v 1.31 2022/12/09 15:36:23 christos Exp $
|
|
4
|
+
# autocad: file(1) magic for cad files
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
# Microstation DGN/CIT Files (www.bentley.com)
|
|
8
|
+
# Last updated July 29, 2005 by Lester Hightower
|
|
9
|
+
# DGN is the default file extension of Microstation/Intergraph CAD files.
|
|
10
|
+
# CIT is the proprietary raster format (similar to TIFF) used to attach
|
|
11
|
+
# raster underlays to Microstation DGN (vector) drawings.
|
|
12
|
+
#
|
|
13
|
+
# http://www.wotsit.org/search.asp
|
|
14
|
+
# https://filext.com/detaillist.php?extdetail=DGN
|
|
15
|
+
# https://filext.com/detaillist.php?extdetail=CIT
|
|
16
|
+
#
|
|
17
|
+
# https://www.bentley.com/products/default.cfm?objectid=97F351F5-9C35-4E5E-89C2
|
|
18
|
+
# 3F86C928&method=display&p_objectid=97F351F5-9C35-4E5E-89C280A93F86C928
|
|
19
|
+
# https://www.bentley.com/products/default.cfm?objectid=A5C2FD43-3AC9-4C71-B682
|
|
20
|
+
# 721C479F&method=display&p_objectid=A5C2FD43-3AC9-4C71-B682C7BE721C479F
|
|
21
|
+
#
|
|
22
|
+
# URL: https://en.wikipedia.org/wiki/MicroStation
|
|
23
|
+
# reference: http://dgnlib.maptools.org/dgn.html
|
|
24
|
+
# http://dgnlib.maptools.org/dl/ref18.pdf
|
|
25
|
+
# Update: Joerg Jenderek
|
|
26
|
+
# Note: verfied by command like `dgndump seed2d_b.dgn`
|
|
27
|
+
# test for level 8 and type 5 or 9
|
|
28
|
+
0 beshort&0x3F73 0x0801
|
|
29
|
+
# level of element like 8
|
|
30
|
+
#>0 ubyte&0x3F x \b, level %u
|
|
31
|
+
#>0 ubyte &0x80 \b, complex
|
|
32
|
+
#>0 ubyte &0x40 \b, reserved
|
|
33
|
+
# type of element 9~TCB 8~Digitizer setup 5~Group Data Elements
|
|
34
|
+
#>1 ubyte&0x7F x \b, type %u
|
|
35
|
+
# words to follow in element: 17H~CEL library 2FEh~DGN 9FEh,DFEh~CIT
|
|
36
|
+
#>2 uleshort x \b, words %#4.4x to follow
|
|
37
|
+
# test for 3 reserved 0 bytes in CIT or "conversion" in ViewInfo structure (DGN CEL)
|
|
38
|
+
#>508 ubelong x \b, RESERVED %8.8x
|
|
39
|
+
>508 ubelong&0xFFffFF00 =0
|
|
40
|
+
# test for level 8 and type 9 for INGR raster image
|
|
41
|
+
>>0 beshort 0x0809
|
|
42
|
+
# test for length of 1st element is multiple of blocks a 512 bytes
|
|
43
|
+
>>>2 ubyte 0xfe
|
|
44
|
+
>>>>0 use ingr-image
|
|
45
|
+
# test for DGN or CEL by jump words (uleshort) forward to next element
|
|
46
|
+
>(2.s*2) ulong x
|
|
47
|
+
# 2nd element type: 8~Digitizer~DesiGNfile 1~library cell header other~CIT
|
|
48
|
+
#>>&1 ubyte&0x7F x \b, 2nd type %u
|
|
49
|
+
# DGN
|
|
50
|
+
>>&1 ubyte&0x7F 8
|
|
51
|
+
>>>2 uleshort =0x02FE Bentley/Intergraph Microstation CAD drawing
|
|
52
|
+
!:mime application/x-bentley-dgn
|
|
53
|
+
!:ext dgn
|
|
54
|
+
# The 0x40 bit of this byte is 1 if the file is 3D, otherwise 0
|
|
55
|
+
>>>>1214 ubyte &0x40 3D
|
|
56
|
+
>>>>1214 ubyte ^0x40 2D
|
|
57
|
+
# 2 chars for name of subunits like ft FT in IN mu m mm '\0 '\040
|
|
58
|
+
>>>>1120 string x \b, units %-.2s
|
|
59
|
+
# 2 chars for name of master unit like IN in ML SU tn th TH HU mm "\0 "\040 \0\0
|
|
60
|
+
>>>>1122 string >\0 %-.2s
|
|
61
|
+
#>>>>1120 ubelong x \b, units %#8.8x
|
|
62
|
+
# element range low,high x y z like xlow=0 08010000h 01080000h
|
|
63
|
+
#>>>>4 ubelong !0 \b, xlow %8.8x
|
|
64
|
+
#>>>>8 ubelong !0 \b, ylow %8.8x
|
|
65
|
+
#>>>>12 ubelong !0 \b, zlow %8.8x
|
|
66
|
+
#>>>>16 ubelong !0 \b, xhigh %8.8x
|
|
67
|
+
#>>>>20 ubelong !0 \b, yhigh %8.8x
|
|
68
|
+
#>>>>24 ubelong !0 \b, zhigh %8.8x
|
|
69
|
+
# graphic group number; all other elements in that group have same non-0 number
|
|
70
|
+
#>>>>28 leshort x \b, grphgrp %#4.4x
|
|
71
|
+
# words to optional attribute linkage
|
|
72
|
+
#>>>>30 ubyte x \b, attindx \%o
|
|
73
|
+
#>>>>31 ubyte x \b\%o
|
|
74
|
+
# >>30 string \026\105 DGNFile
|
|
75
|
+
# >>30 string \034\105 DGNFile
|
|
76
|
+
# >>30 string \073\107 DGNFile
|
|
77
|
+
# >>30 string \073\110 DGNFile
|
|
78
|
+
# >>30 string \106\107 DGNFile
|
|
79
|
+
# >>30 string \110\103 DGNFile
|
|
80
|
+
# >>30 string \120\104 DGNFile
|
|
81
|
+
# >>30 string \172\104 DGNFile
|
|
82
|
+
# >>30 string \172\105 DGNFile
|
|
83
|
+
# >>30 string \172\106 DGNFile
|
|
84
|
+
# >>30 string \234\106 DGNFile
|
|
85
|
+
# >>30 string \273\105 DGNFile
|
|
86
|
+
# >>30 string \306\106 DGNFile
|
|
87
|
+
# >>30 string \310\104 DGNFile
|
|
88
|
+
# >>30 string \341\104 DGNFile
|
|
89
|
+
# >>30 string \372\103 DGNFile
|
|
90
|
+
# >>30 string \372\104 DGNFile
|
|
91
|
+
# >>30 string \372\106 DGNFile
|
|
92
|
+
# >>30 string \376\103 DGNFile
|
|
93
|
+
# elements properties indicator
|
|
94
|
+
#>>>>32 uleshort !0 \b, properties %#4.4x
|
|
95
|
+
# class 0~Primary
|
|
96
|
+
#>>>>>32 uleshort&0x000F !0 \b, class %#4.4x
|
|
97
|
+
# Symbology
|
|
98
|
+
#>>>>>34 uleshort x \b, Symbology %#4.4x
|
|
99
|
+
# test for 2nd element type 1~library cell header
|
|
100
|
+
>>&1 ubyte&0x7F 1
|
|
101
|
+
# test for 1st element with level 8 and type 5 for cell library
|
|
102
|
+
>>>0 beshort 0x0805 Bentley/Intergraph Microstation CAD cell library
|
|
103
|
+
!:mime application/x-bentley-cel
|
|
104
|
+
!:ext cel
|
|
105
|
+
#
|
|
106
|
+
# URL: http://fileformats.archiveteam.org/wiki/Intergraph_Raster
|
|
107
|
+
# reference: https://web.archive.org/web/20140903185431/
|
|
108
|
+
# http://oreilly.com/www/centers/gff/formats/ingr/index.htm
|
|
109
|
+
# note: verfied by command like `nconvert -fullinfo LONGLAT.CIT`
|
|
110
|
+
# display information for intergraph raster bitmap
|
|
111
|
+
0 name ingr-image
|
|
112
|
+
# in 5.37 "Microstation CITFile" "Bentley/Intergraph MicroStation CIT raster CAD"
|
|
113
|
+
# DataTypeCode indicates format, depth of the pixel data and used compression
|
|
114
|
+
>4 uleshort x Intergraph raster image
|
|
115
|
+
>>4 uleshort 0x0009 \b, Run-Length Encoded 1-bit
|
|
116
|
+
!:mime image/x-intergraph-rle
|
|
117
|
+
!:ext rel
|
|
118
|
+
>>4 uleshort 0x0018 \b, CCITT Group 4 1-bit
|
|
119
|
+
!:mime image/x-intergraph-cit
|
|
120
|
+
!:ext cit
|
|
121
|
+
>>4 uleshort 27 \b, Adaptive RLE RGB
|
|
122
|
+
!:mime image/x-intergraph-rgb
|
|
123
|
+
!:ext rgb
|
|
124
|
+
>>4 default x
|
|
125
|
+
>>>4 uleshort x \b, Type %u
|
|
126
|
+
!:mime image/x-intergraph
|
|
127
|
+
# TODO:
|
|
128
|
+
#>4 uleshort 0 \b, no data
|
|
129
|
+
# ...
|
|
130
|
+
#>4 uleshort 0x0045 \b, Continuous Tone CMKY (Uncompressed)
|
|
131
|
+
# ApplicationType: 0~generic raster image 3~drawing, scanning
|
|
132
|
+
# 8~I/IMAGE and MicroStation Imager 9~ModelView
|
|
133
|
+
>6 uleshort !0 \b, ApplicationType %u
|
|
134
|
+
#>6 uleshort x \b, ApplicationType %u
|
|
135
|
+
# XViewOrigin; Raster grid data X origin
|
|
136
|
+
#>8 ulequad !0 \b, XViewOrigin %llx
|
|
137
|
+
# PixelsPerLine is the number of pixels in a scan line of bitmapp
|
|
138
|
+
>184 ulelong x \b, %u x
|
|
139
|
+
# NumberOfLines is height of the raster data in scanlines
|
|
140
|
+
>188 ulelong x %u
|
|
141
|
+
# DeviceResolution; resolution of scanning device
|
|
142
|
+
# positive indicates number of micros between lines; negative indicates DPI
|
|
143
|
+
#>192 leshort x \b, DeviceResolution %d
|
|
144
|
+
# ScanlineOrient indicates the origin and the orientation of the scan lines
|
|
145
|
+
#>194 ubyte x \b, ScanlineOrient %x
|
|
146
|
+
>194 ubyte x \b, orientation
|
|
147
|
+
>194 ubyte &0x01 right
|
|
148
|
+
>194 ubyte ^0x01 left
|
|
149
|
+
>194 ubyte &0x02 down
|
|
150
|
+
>194 ubyte ^0x02 top
|
|
151
|
+
>194 ubyte &0x04 horizontal
|
|
152
|
+
>194 ubyte ^0x04 vertical
|
|
153
|
+
# ScannableFlag; Scanline indexing method used
|
|
154
|
+
#>195 ubyte !0 \b, ScannableFlag %#x
|
|
155
|
+
# RotationAngle; Rotation angle of raster data
|
|
156
|
+
#>196 ubequad !0 \b, RotationAngle %#llx
|
|
157
|
+
# SkewAngle; Skew angle of raster data
|
|
158
|
+
#>204 ubequad !0 \b, SkewAngle %llx
|
|
159
|
+
# DataTypeModifier; Additional raster data format info
|
|
160
|
+
#>212 uleshort !0 \b, DataTypeModifier %#4.4x
|
|
161
|
+
# DesignFile[66]; Name of the design file
|
|
162
|
+
>214 string >\0 \b, DesignFile %-.66s
|
|
163
|
+
# DatabaseFile[66]; Name of the database file
|
|
164
|
+
>280 string >\0 \b, DatabaseFile %-.66s
|
|
165
|
+
# ParentGridFile[66]; Name of parent grid file
|
|
166
|
+
>346 string >\0 \b, ParentGridFile %-.66s
|
|
167
|
+
# FileDescription[80]; Text description of file and contents
|
|
168
|
+
>412 string >\0 \b, FileDescription %-.80s
|
|
169
|
+
# MinValue
|
|
170
|
+
#>492 ubequad !0 \b, MinValue %#llx
|
|
171
|
+
# MaxValue
|
|
172
|
+
#>500 ubequad !0 \b, MaxValue %#llx
|
|
173
|
+
# Reserved[3]; Unused (always 0)
|
|
174
|
+
#>508 ubelong&0xFFffFF00 x \b, RESERVED %8.8x
|
|
175
|
+
# GridFileVersion; Grid File Version like 2 3
|
|
176
|
+
#>511 ubyte x \b, GridFileVersion %x
|
|
177
|
+
|
|
178
|
+
# AutoCAD
|
|
179
|
+
# Merge of the different contributions and updates from https://en.wikipedia.org/wiki/Dwg
|
|
180
|
+
# and https://www.iana.org/assignments/media-types/image/vnd.dwg
|
|
181
|
+
0 string MC0.0 DWG AutoDesk AutoCAD Release 1.0
|
|
182
|
+
!:mime image/vnd.dwg
|
|
183
|
+
0 string AC1.2 DWG AutoDesk AutoCAD Release 1.2
|
|
184
|
+
!:mime image/vnd.dwg
|
|
185
|
+
0 string AC1.3 DWG AutoDesk AutoCAD Release 1.3
|
|
186
|
+
!:mime image/vnd.dwg
|
|
187
|
+
0 string AC1.40 DWG AutoDesk AutoCAD Release 1.40
|
|
188
|
+
!:mime image/vnd.dwg
|
|
189
|
+
0 string AC1.50 DWG AutoDesk AutoCAD Release 2.05
|
|
190
|
+
!:mime image/vnd.dwg
|
|
191
|
+
0 string AC2.10 DWG AutoDesk AutoCAD Release 2.10
|
|
192
|
+
!:mime image/vnd.dwg
|
|
193
|
+
0 string AC2.21 DWG AutoDesk AutoCAD Release 2.21
|
|
194
|
+
!:mime image/vnd.dwg
|
|
195
|
+
0 string AC2.22 DWG AutoDesk AutoCAD Release 2.22
|
|
196
|
+
!:mime image/vnd.dwg
|
|
197
|
+
0 string AC1001 DWG AutoDesk AutoCAD Release 2.22
|
|
198
|
+
!:mime image/vnd.dwg
|
|
199
|
+
0 string AC1002 DWG AutoDesk AutoCAD Release 2.50
|
|
200
|
+
!:mime image/vnd.dwg
|
|
201
|
+
0 string AC1003 DWG AutoDesk AutoCAD Release 2.60
|
|
202
|
+
!:mime image/vnd.dwg
|
|
203
|
+
0 string AC1004 DWG AutoDesk AutoCAD Release 9
|
|
204
|
+
!:mime image/vnd.dwg
|
|
205
|
+
0 string AC1006 DWG AutoDesk AutoCAD Release 10
|
|
206
|
+
!:mime image/vnd.dwg
|
|
207
|
+
0 string AC1009 DWG AutoDesk AutoCAD Release 11/12
|
|
208
|
+
!:mime image/vnd.dwg
|
|
209
|
+
# AutoCAD DWG versions R13/R14 (www.autodesk.com)
|
|
210
|
+
# Written December 01, 2003 by Lester Hightower
|
|
211
|
+
# Based on the DWG File Format Specifications at http://www.opendwg.org/
|
|
212
|
+
# AutoCad, from Nahuel Greco
|
|
213
|
+
# AutoCAD DWG versions R12/R13/R14 (www.autodesk.com)
|
|
214
|
+
0 string AC1012 DWG AutoDesk AutoCAD Release 13
|
|
215
|
+
!:mime image/vnd.dwg
|
|
216
|
+
0 string AC1013 DWG AutoDesk AutoCAD Release 13c3
|
|
217
|
+
!:mime image/vnd.dwg
|
|
218
|
+
0 string AC1014 DWG AutoDesk AutoCAD Release 14
|
|
219
|
+
!:mime image/vnd.dwg
|
|
220
|
+
0 string AC1015 DWG AutoDesk AutoCAD 2000
|
|
221
|
+
!:mime image/vnd.dwg
|
|
222
|
+
|
|
223
|
+
# A new version of AutoCAD DWG
|
|
224
|
+
# Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru,
|
|
225
|
+
# ICQ 358572321)
|
|
226
|
+
# From various sources like:
|
|
227
|
+
# https://autodesk.blogs.com/between_the_lines/autocad-release-history.html
|
|
228
|
+
0 string AC1018 DWG AutoDesk AutoCAD 2004/2005/2006
|
|
229
|
+
!:mime image/vnd.dwg
|
|
230
|
+
0 string AC1021 DWG AutoDesk AutoCAD 2007/2008/2009
|
|
231
|
+
!:mime image/vnd.dwg
|
|
232
|
+
0 string AC1024 DWG AutoDesk AutoCAD 2010/2011/2012
|
|
233
|
+
!:mime image/vnd.dwg
|
|
234
|
+
0 string AC1027 DWG AutoDesk AutoCAD 2013-2017
|
|
235
|
+
!:mime image/vnd.dwg
|
|
236
|
+
|
|
237
|
+
# From GNU LibreDWG
|
|
238
|
+
0 string AC1032 DWG AutoDesk AutoCAD 2018/2019/2020
|
|
239
|
+
!:mime image/vnd.dwg
|
|
240
|
+
0 string AC1035 DWG AutoDesk AutoCAD 2021
|
|
241
|
+
!:mime image/vnd.dwg
|
|
242
|
+
|
|
243
|
+
# KOMPAS 2D drawing from ASCON
|
|
244
|
+
# This is KOMPAS 2D drawing or fragment of drawing but is not detailed nor
|
|
245
|
+
# gathered nor specification
|
|
246
|
+
# ASCON https://ascon.net/main/ in English,
|
|
247
|
+
# https://ascon.ru/ main site in Russian
|
|
248
|
+
# Extension is CDW for drawing and FRW for fragment of drawing
|
|
249
|
+
# Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru,
|
|
250
|
+
# ICQ 358572321, https://vkontakte.ru/id16076543)
|
|
251
|
+
# From:
|
|
252
|
+
# https://sd.ascon.ru/otrs/customer.pl?Action=CustomerFAQ&CategoryID=4&ItemID=292
|
|
253
|
+
# (in russian) and my experiments
|
|
254
|
+
0 string KF
|
|
255
|
+
>2 belong 0x4E00000C Kompas drawing 12.0 SP1
|
|
256
|
+
>2 belong 0x4D00000C Kompas drawing 12.0
|
|
257
|
+
>2 belong 0x3200000B Kompas drawing 11.0 SP1
|
|
258
|
+
>2 belong 0x3100000B Kompas drawing 11.0
|
|
259
|
+
>2 belong 0x2310000A Kompas drawing 10.0 SP1
|
|
260
|
+
>2 belong 0x2110000A Kompas drawing 10.0
|
|
261
|
+
>2 belong 0x08000009 Kompas drawing 9.0 SP1
|
|
262
|
+
>2 belong 0x05000009 Kompas drawing 9.0
|
|
263
|
+
>2 belong 0x33010008 Kompas drawing 8+
|
|
264
|
+
>2 belong 0x1A000008 Kompas drawing 8.0
|
|
265
|
+
>2 belong 0x2C010107 Kompas drawing 7+
|
|
266
|
+
>2 belong 0x05000007 Kompas drawing 7.0
|
|
267
|
+
>2 belong 0x32000006 Kompas drawing 6+
|
|
268
|
+
>2 belong 0x09000006 Kompas drawing 6.0
|
|
269
|
+
>2 belong 0x5C009005 Kompas drawing 5.11R03
|
|
270
|
+
>2 belong 0x54009005 Kompas drawing 5.11R02
|
|
271
|
+
>2 belong 0x51009005 Kompas drawing 5.11R01
|
|
272
|
+
>2 belong 0x22009005 Kompas drawing 5.10R03
|
|
273
|
+
>2 belong 0x22009005 Kompas drawing 5.10R02 mar
|
|
274
|
+
>2 belong 0x21009005 Kompas drawing 5.10R02 febr
|
|
275
|
+
>2 belong 0x19009005 Kompas drawing 5.10R01
|
|
276
|
+
>2 belong 0xF4008005 Kompas drawing 5.9R01.003
|
|
277
|
+
>2 belong 0x1C008005 Kompas drawing 5.9R01.002
|
|
278
|
+
>2 belong 0x11008005 Kompas drawing 5.8R01.003
|
|
279
|
+
|
|
280
|
+
# CAD: file(1) magic for computer aided design files
|
|
281
|
+
# Phillip Griffith <phillip dot griffith at gmail dot com>
|
|
282
|
+
# AutoCAD magic taken from the Open Design Alliance's OpenDWG specifications.
|
|
283
|
+
#
|
|
284
|
+
|
|
285
|
+
# 3DS (3d Studio files)
|
|
286
|
+
0 leshort 0x4d4d
|
|
287
|
+
>6 leshort 0x2
|
|
288
|
+
>>8 lelong 0xa
|
|
289
|
+
>>>16 leshort 0x3d3d 3D Studio model
|
|
290
|
+
# Beat sgi MMV
|
|
291
|
+
!:strength +20
|
|
292
|
+
!:mime image/x-3ds
|
|
293
|
+
!:ext 3ds
|
|
294
|
+
|
|
295
|
+
# MegaCAD 2D/3D drawing (.prt)
|
|
296
|
+
# https://megacad.de/
|
|
297
|
+
# From: Markus Heidelberg <markus.heidelberg@web.de>
|
|
298
|
+
0 string MegaCad23\0 MegaCAD 2D/3D drawing
|
|
299
|
+
|
|
300
|
+
# Hoops CAD files
|
|
301
|
+
# https://docs.techsoft3d.com/visualize/3df/latest/build/general/hsf/\
|
|
302
|
+
# HSF_architecture.html
|
|
303
|
+
# Stephane Charette <stephane.charette@gmail.com>
|
|
304
|
+
0 string ;;\040HSF\040V OpenHSF (Hoops Stream Format)
|
|
305
|
+
>7 regex/9 V[.0-9]{4,5}\040 %s
|
|
306
|
+
!:ext hsf
|
|
307
|
+
|
|
308
|
+
# AutoCAD Drawing Exchange Format
|
|
309
|
+
# Update: Joerg Jenderek
|
|
310
|
+
# URL: http://fileformats.archiveteam.org/wiki/DXF
|
|
311
|
+
# https://en.wikipedia.org/wiki/AutoCAD_DXF
|
|
312
|
+
# Reference: http://mark0.net/download/triddefs_xml.7z/defs/d/
|
|
313
|
+
# dxf-var0.trid.xml dxf-var0u.trid.xml dxf-var2.trid.xml dxf-var2u.trid.xml
|
|
314
|
+
# Note: called "AutoCAD Drawing eXchange Format" by TrID and
|
|
315
|
+
# "Drawing Interchange File Format (ASCII)" by DROID
|
|
316
|
+
# GRR: some samples does not match 1st test like: abydos.dxf
|
|
317
|
+
0 regex \^[\ \t]*0\r?\000$
|
|
318
|
+
>1 regex \^[\ \t]*SECTION\r?$
|
|
319
|
+
>>2 regex \^[\ \t]*2\r?$
|
|
320
|
+
# GRR: some samples without HEADER section like: airplan2.dxf
|
|
321
|
+
>>>3 regex \^[\ \t]*HEADER\r?$ AutoCAD Drawing Exchange Format
|
|
322
|
+
#!:mime application/x-dxf
|
|
323
|
+
!:mime image/vnd.dxf
|
|
324
|
+
!:ext dxf
|
|
325
|
+
# DROID PUID fmt/64 fmt-64-signature-id-99.dxf
|
|
326
|
+
>>>>&1 search/8192 MC0.0 \b, 1.0
|
|
327
|
+
# DROID PUID fmt/65 fmt-65-signature-id-100.dxf
|
|
328
|
+
>>>>&1 search/8192 AC1.2 \b, 1.2
|
|
329
|
+
# DROID PUID fmt/66 fmt-66-signature-id-101.dxf
|
|
330
|
+
>>>>&1 search/8192 AC1.3 \b, 1.3
|
|
331
|
+
# DROID PUID fmt/67 fmt-67-signature-id-102.dxf
|
|
332
|
+
>>>>&1 search/8192 AC1.40 \b, 1.4
|
|
333
|
+
# DROID PUID fmt/68 fmt-68-signature-id-103.dxf
|
|
334
|
+
>>>>&1 search/8192 AC1.50 \b, 2.0
|
|
335
|
+
# DROID PUID fmt/69 fmt-69-signature-id-104.dxf
|
|
336
|
+
>>>>&1 search/8192 AC2.10 \b, 2.1
|
|
337
|
+
# DROID PUID fmt/70 fmt-70-signature-id-105.dxf
|
|
338
|
+
>>>>&1 search/8192 AC2.21 \b, 2.2
|
|
339
|
+
# DROID PUID fmt/71 fmt-71-signature-id-106.dxf
|
|
340
|
+
>>>>&1 search/8192 AC1002 \b, 2.5
|
|
341
|
+
# DROID PUID fmt/72 fmt-72-signature-id-107.dxf
|
|
342
|
+
>>>>&1 search/8192 AC1003 \b, 2.6
|
|
343
|
+
# DROID PUID fmt/73 fmt-73-signature-id-108.dxf
|
|
344
|
+
>>>>&1 search/8192 AC1004 \b, R9
|
|
345
|
+
>>>>&1 search/8192 AC1006 \b, R10
|
|
346
|
+
# http://cd.textfiles.com/amigaenv/DXF/OBJEKTE/LASTMINUTE/apple.dxf
|
|
347
|
+
#>>>>&1 search/8192 AC1008 \b, Rfoo
|
|
348
|
+
>>>>&1 search/8192 AC1009 \b, R11/R12
|
|
349
|
+
>>>>&1 search/8192 AC1012 \b, R13
|
|
350
|
+
>>>>&1 search/8192 AC1013 \b, R13c3
|
|
351
|
+
>>>>&1 search/8192 AC1014 \b, R14
|
|
352
|
+
>>>>&1 search/8192 AC1015 \b, version 2000
|
|
353
|
+
>>>>&1 search/8192 AC1018 \b, version 2004
|
|
354
|
+
>>>>&1 search/8192 AC1021 \b, version 2007
|
|
355
|
+
>>>>&1 search/8192 AC1024 \b, version 2010
|
|
356
|
+
>>>>&1 search/8192 AC1027 \b, version 2013
|
|
357
|
+
>>>>&1 search/8192 AC1032 \b, version 2018
|
|
358
|
+
>>>>&1 search/8192 AC1035 \b, version 2021
|
|
359
|
+
|
|
360
|
+
# The Sketchup 3D model format https://www.sketchup.com/
|
|
361
|
+
0 string \xff\xfe\xff\x0e\x53\x00\x6b\x00\x65\x00\x74\x00\x63\x00\x68\x00\x55\x00\x70\x00\x20\x00\x4d\x00\x6f\x00\x64\x00\x65\x00\x6c\x00 SketchUp Model
|
|
362
|
+
!:mime application/vnd.sketchup.skp
|
|
363
|
+
!:ext skp
|
|
364
|
+
|
|
365
|
+
4 regex/b P[0-9][0-9]\\.[0-9][0-9][0-9][0-9]\\.[0-9][0-9][0-9][0-9]\\.[0-9] NAXOS CAD System file from version %s
|
|
366
|
+
!:strength +40
|
|
367
|
+
|
|
368
|
+
# glTF (GL Transmission Format) - by the Khronos Group
|
|
369
|
+
# Reference: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#glb-file-format-specification
|
|
370
|
+
0 string glTF glTF binary model
|
|
371
|
+
>4 ulelong x \b, version %d
|
|
372
|
+
>8 ulelong x \b, length %d bytes
|
|
373
|
+
!:mime model/gltf-binary
|
|
374
|
+
!:ext glb
|
|
375
|
+
|
|
376
|
+
# FBX (FilmBoX) - by Kaydara/Autodesk
|
|
377
|
+
# Reference: https://code.blender.org/2013/08/fbx-binary-file-format-specification
|
|
378
|
+
0 string Kaydara\ FBX\ Binary\ \ \0 Kaydara FBX model,
|
|
379
|
+
>&2 ulelong x version %d
|
|
380
|
+
!:ext fbx
|
|
381
|
+
|
|
382
|
+
# PLY (Polygon File Format/Stanford Triangle Format) - by Greg Turk
|
|
383
|
+
# Reference: https://web.archive.org/web/20161204152348/http://www.dcs.ed.ac.uk/teaching/cs4/www/graphics/Web/ply.html
|
|
384
|
+
0 string ply\n PLY model,
|
|
385
|
+
!:ext ply
|
|
386
|
+
>4 string format\ ascii\ ASCII,
|
|
387
|
+
>>&0 regex/6 [0-9.]+ version %s
|
|
388
|
+
>4 string format\ binary binary,
|
|
389
|
+
>>&0 string _little_endian\ little endian,
|
|
390
|
+
>>>&0 regex/6 [0-9.]+ version %s
|
|
391
|
+
>>&0 string _big_endian\ big endian,
|
|
392
|
+
>>>&0 regex/6 [0-9.]+ version %s
|
|
393
|
+
|
|
394
|
+
# VRML (Virtual Reality Modeling Language) - by the Web3D Consortium
|
|
395
|
+
# From: Michel Briand <michelbriand@free.fr>
|
|
396
|
+
# Reference: https://www.web3d.org/standards
|
|
397
|
+
0 string/w #VRML\ V1.0\ ascii VRML 1 file
|
|
398
|
+
!:mime model/vrml
|
|
399
|
+
!:ext wrl
|
|
400
|
+
0 string/w #VRML\ V2.0\ utf8 ISO/IEC 14772 VRML 97 file
|
|
401
|
+
!:mime model/vrml
|
|
402
|
+
!:ext wrl
|
|
403
|
+
# X3D, VRML encoded
|
|
404
|
+
0 string #X3D X3D (Extensible 3D) model, VRML format
|
|
405
|
+
>4 string V
|
|
406
|
+
>>5 regex/6 [0-9.]+ \b, version %s
|
|
407
|
+
!:mime model/x3d+vrml
|
|
408
|
+
!:ext x3dv
|
|
409
|
+
|
|
410
|
+
## XML-based 3D CAD Formats
|
|
411
|
+
# From: Michel Briand <michelbriand@free.fr>, Oliver Galvin <odg@riseup.net>
|
|
412
|
+
0 string/w \<?xml\ version=
|
|
413
|
+
!:strength + 5
|
|
414
|
+
# X3D (Extensible 3D)
|
|
415
|
+
# Schema: https://www.web3d.org/specifications/x3d-3.2.dtd
|
|
416
|
+
# MIME Type: https://www.iana.org/assignments/media-types/model/x3d+xml
|
|
417
|
+
# Example: https://www.web3d.org/x3d/content/examples/Basic/course/CreateX3DFromStringRandomSpheres.x3d
|
|
418
|
+
>20 search/1000/w \<!DOCTYPE\ X3D X3D (Extensible 3D) model, XML document
|
|
419
|
+
!:mime model/x3d+xml
|
|
420
|
+
!:ext x3d
|
|
421
|
+
# COLLADA (COLLAborative Design Activity) - by the Khronos Group
|
|
422
|
+
# Schema: http://www.collada.org/2005/11/COLLADASchema
|
|
423
|
+
# Reference: https://www.khronos.org/collada
|
|
424
|
+
>20 search/1000/w \<COLLADA COLLADA model, XML document
|
|
425
|
+
!:mime model/vnd.collada+xml
|
|
426
|
+
!:ext dae
|
|
427
|
+
# 3MF (3D Manufacturing Format) - by the 3MF Consortium
|
|
428
|
+
# Schema: http://schemas.microsoft.com/3dmanufacturing/core/2015/02
|
|
429
|
+
# Reference: https://3mf.io/specification
|
|
430
|
+
>20 search/1000/w xmlns="http://schemas.microsoft.com/3dmanufacturing 3MF (3D Manufacturing Format) model, XML document
|
|
431
|
+
!:mime model/3mf
|
|
432
|
+
!:ext 3mf
|
|
433
|
+
# AMF (Additive Manufacturing File)
|
|
434
|
+
# Reference: https://www.astm.org/Standards/ISOASTM52915.htm
|
|
435
|
+
>20 search/1000/w \<amf AMF (Additive Manufacturing Format) model, XML document
|
|
436
|
+
!:mime application/x-amf
|
|
437
|
+
!:ext amf
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: cafebabe,v 1.28 2022/07/01 23:24:47 christos Exp $
|
|
4
|
+
# Cafe Babes unite!
|
|
5
|
+
#
|
|
6
|
+
# Since Java bytecode and Mach-O universal binaries have the same magic number,
|
|
7
|
+
# the test must be performed in the same "magic" sequence to get both right.
|
|
8
|
+
# The long at offset 4 in a Mach-O universal binary tells the number of
|
|
9
|
+
# architectures; the short at offset 4 in a Java bytecode file is the JVM minor
|
|
10
|
+
# version and the short at offset 6 is the JVM major version. Since there are only
|
|
11
|
+
# only 18 labeled Mach-O architectures at current, and the first released
|
|
12
|
+
# Java class format was version 43.0, we can safely choose any number
|
|
13
|
+
# between 18 and 39 to test the number of architectures against
|
|
14
|
+
# (and use as a hack). Let's not use 18, because the Mach-O people
|
|
15
|
+
# might add another one or two as time goes by...
|
|
16
|
+
#
|
|
17
|
+
### JAVA START ###
|
|
18
|
+
# Reference: http://en.wikipedia.org/wiki/Java_class_file
|
|
19
|
+
# Update: Joerg Jenderek
|
|
20
|
+
0 belong 0xcafebabe
|
|
21
|
+
>4 ubelong >30 compiled Java class data,
|
|
22
|
+
!:mime application/x-java-applet
|
|
23
|
+
#!:mime application/java-byte-code
|
|
24
|
+
!:ext class
|
|
25
|
+
>>6 ubeshort x version %d.
|
|
26
|
+
>>4 ubeshort x \b%d
|
|
27
|
+
# for debugging purpose version as hexadecimal to compare with Mach-O universal binary
|
|
28
|
+
#>>4 ubelong x (%#8.8x)
|
|
29
|
+
# Which is which?
|
|
30
|
+
# https://docs.oracle.com/javase/specs/jvms/se6/html/ClassFile.doc.html
|
|
31
|
+
#>>4 belong 0x002b (Java 0.?)
|
|
32
|
+
#>>4 belong 0x032d (Java 1.0)
|
|
33
|
+
#>>4 belong 0x032d (Java 1.1)
|
|
34
|
+
>>4 belong 0x002e (Java 1.2)
|
|
35
|
+
>>4 belong 0x002f (Java 1.3)
|
|
36
|
+
>>4 belong 0x0030 (Java 1.4)
|
|
37
|
+
>>4 belong 0x0031 (Java 1.5)
|
|
38
|
+
>>4 belong 0x0032 (Java 1.6)
|
|
39
|
+
>>4 belong 0x0033 (Java 1.7)
|
|
40
|
+
>>4 belong 0x0034 (Java 1.8)
|
|
41
|
+
>>4 belong 0x0035 (Java SE 9)
|
|
42
|
+
>>4 belong 0x0036 (Java SE 10)
|
|
43
|
+
>>4 belong 0x0037 (Java SE 11)
|
|
44
|
+
>>4 belong 0x0038 (Java SE 12)
|
|
45
|
+
>>4 belong 0x0039 (Java SE 13)
|
|
46
|
+
>>4 belong 0x003A (Java SE 14)
|
|
47
|
+
>>4 belong 0x003B (Java SE 15)
|
|
48
|
+
>>4 belong 0x003C (Java SE 16)
|
|
49
|
+
>>4 belong 0x003D (Java SE 17)
|
|
50
|
+
>>4 belong 0x003E (Java SE 18)
|
|
51
|
+
>>4 belong 0x003F (Java SE 19)
|
|
52
|
+
>>4 belong 0x0040 (Java SE 20)
|
|
53
|
+
# pool count unequal zero
|
|
54
|
+
#>>8 beshort x \b, pool count %#x
|
|
55
|
+
# pool table
|
|
56
|
+
#>>10 ubequad x \b, pool %#16.16llx...
|
|
57
|
+
|
|
58
|
+
0 belong 0xcafed00d JAR compressed with pack200,
|
|
59
|
+
>5 byte x version %d.
|
|
60
|
+
>4 byte x \b%d
|
|
61
|
+
!:mime application/x-java-pack200
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
0 belong 0xcafed00d JAR compressed with pack200,
|
|
65
|
+
>5 byte x version %d.
|
|
66
|
+
>4 byte x \b%d
|
|
67
|
+
!:mime application/x-java-pack200
|
|
68
|
+
|
|
69
|
+
### JAVA END ###
|
|
70
|
+
### MACH-O START ###
|
|
71
|
+
# URL: https://en.wikipedia.org/wiki/Mach-O
|
|
72
|
+
|
|
73
|
+
0 name mach-o \b [
|
|
74
|
+
# for debugging purpose CPU type as hexadecimal
|
|
75
|
+
#>0 ubequad x CPU=%16.16llx
|
|
76
|
+
# display CPU type as string like: i386 x86_64 ... armv7 armv7k ...
|
|
77
|
+
>0 use mach-o-cpu \b
|
|
78
|
+
# for debugging purpose print offset to 1st mach_header like:
|
|
79
|
+
# 1000h 4000h seldom 2d000h 88000h 5b000h 10e000 h
|
|
80
|
+
#>8 ubelong x at %#x offset
|
|
81
|
+
>(8.L) indirect x \b:
|
|
82
|
+
>0 belong x \b]
|
|
83
|
+
|
|
84
|
+
# Reference: https://opensource.apple.com/source/cctools/cctools-949.0.1/
|
|
85
|
+
# include/mach-o/fat.h
|
|
86
|
+
# include/mach/machine.h
|
|
87
|
+
0 belong 0xcafebabe
|
|
88
|
+
>4 belong 1 Mach-O universal binary with 1 architecture:
|
|
89
|
+
!:mime application/x-mach-binary
|
|
90
|
+
>>8 use mach-o \b
|
|
91
|
+
# nfat_arch; number of CPU architectures; highest is 18 for CPU_TYPE_POWERPC in 2020
|
|
92
|
+
>4 ubelong >1
|
|
93
|
+
>>4 ubelong <20 Mach-O universal binary with %d architectures:
|
|
94
|
+
!:mime application/x-mach-binary
|
|
95
|
+
>>>8 use mach-o \b
|
|
96
|
+
>>>4 ubelong >1
|
|
97
|
+
>>>>28 use mach-o \b
|
|
98
|
+
>>>4 ubelong >2
|
|
99
|
+
>>>>48 use mach-o \b
|
|
100
|
+
>>>4 ubelong >3
|
|
101
|
+
>>>>68 use mach-o \b
|
|
102
|
+
>>>4 ubelong >4
|
|
103
|
+
>>>>88 use mach-o \b
|
|
104
|
+
>>>4 ubelong >5
|
|
105
|
+
>>>>108 use mach-o \b
|
|
106
|
+
|
|
107
|
+
### MACH-O END ###
|
polyfile/magic_defs/cbor
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: cbor,v 1.1 2015/01/28 01:05:21 christos Exp $
|
|
4
|
+
# cbor: file(1) magic for CBOR files as defined in RFC 7049
|
|
5
|
+
|
|
6
|
+
0 string \xd9\xd9\xf7 Concise Binary Object Representation (CBOR) container
|
|
7
|
+
!:mime application/cbor
|
|
8
|
+
>3 ubyte <0x20 (positive integer)
|
|
9
|
+
>3 ubyte <0x40
|
|
10
|
+
>>3 ubyte >0x1f (negative integer)
|
|
11
|
+
>3 ubyte <0x60
|
|
12
|
+
>>3 ubyte >0x3f (byte string)
|
|
13
|
+
>3 ubyte <0x80
|
|
14
|
+
>>3 ubyte >0x5f (text string)
|
|
15
|
+
>3 ubyte <0xa0
|
|
16
|
+
>3 ubyte >0x7f (array)
|
|
17
|
+
>3 ubyte <0xc0
|
|
18
|
+
>>3 ubyte >0x9f (map)
|
|
19
|
+
>3 ubyte <0xe0
|
|
20
|
+
>>3 ubyte >0xbf (tagged)
|
|
21
|
+
>3 ubyte >0xdf (other)
|
polyfile/magic_defs/ccf
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: ccf,v 1.1 2022/02/15 12:57:45 christos Exp $
|
|
4
|
+
# file(1) magic(5) data for Phillips remote controls
|
|
5
|
+
|
|
6
|
+
# Exchange format for Philips Pronto universal infrared remote controls
|
|
7
|
+
# A CCF file describes a learned/customized remote control,
|
|
8
|
+
# i.e. it contains button UI and infrared pulse code definitions
|
|
9
|
+
# (Georg Sauthoff)
|
|
10
|
+
# http://files.remotecentral.com/download/45/pan-air-csakr.zip.html
|
|
11
|
+
# https://github.com/gsauthof/pronto-ccf/blob/
|
|
12
|
+
|
|
13
|
+
8 string @\xa5Z@_CCF
|
|
14
|
+
>32 string CCF\x00 Philips Pronto IR remote control CCF
|
polyfile/magic_defs/cddb
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: cddb,v 1.4 2009/09/19 16:28:08 christos Exp $
|
|
4
|
+
# CDDB: file(1) magic for CDDB(tm) format CD text data files
|
|
5
|
+
#
|
|
6
|
+
# From <steve@gracenote.com>
|
|
7
|
+
#
|
|
8
|
+
# This is the /etc/magic entry to decode datafiles as used by
|
|
9
|
+
# CDDB-enabled CD player applications.
|
|
10
|
+
#
|
|
11
|
+
|
|
12
|
+
0 search/1/w #\040xmcd CDDB(tm) format CD text data
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: chord,v 1.5 2010/09/20 19:19:16 rrt Exp $
|
|
4
|
+
# chord: file(1) magic for Chord music sheet typesetting utility input files
|
|
5
|
+
#
|
|
6
|
+
# From Philippe De Muyter <phdm@macqel.be>
|
|
7
|
+
# File format is actually free, but many distributed files begin with `{title'
|
|
8
|
+
#
|
|
9
|
+
0 string {title Chord text file
|
|
10
|
+
|
|
11
|
+
# Type: PowerTab file format
|
|
12
|
+
# URL: http://www.power-tab.net/
|
|
13
|
+
# From: Jelmer Vernooij <jelmer@samba.org>
|
|
14
|
+
0 string ptab\003\000 Power-Tab v3 Tablature File
|
|
15
|
+
0 string ptab\004\000 Power-Tab v4 Tablature File
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: cisco,v 1.4 2009/09/19 16:28:08 christos Exp $
|
|
4
|
+
# cisco: file(1) magic for cisco Systems routers
|
|
5
|
+
#
|
|
6
|
+
# Most cisco file-formats are covered by the generic elf code
|
|
7
|
+
#
|
|
8
|
+
# Microcode files are non-ELF, 0x8501 conflicts with NetBSD/alpha.
|
|
9
|
+
0 belong&0xffffff00 0x85011400 cisco IOS microcode
|
|
10
|
+
>7 string >\0 for '%s'
|
|
11
|
+
0 belong&0xffffff00 0x8501cb00 cisco IOS experimental microcode
|
|
12
|
+
>7 string >\0 for '%s'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: citrus,v 1.5 2021/01/04 19:48:31 christos Exp $
|
|
4
|
+
# citrus locale declaration
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
0 string RuneCT Citrus locale declaration for LC_CTYPE
|
|
8
|
+
0 string CtrsME Citrus locale declaration for LC_MESSAGES
|
|
9
|
+
0 string CtrsMO Citrus locale declaration for LC_MONETARY
|
|
10
|
+
0 string CtrsNU Citrus locale declaration for LC_NUMERIC
|
|
11
|
+
0 string CtrsTI Citrus locale declaration for LC_TIME
|
|
12
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
#------------------------------------------------------------------------------
|
|
3
|
+
# $File: clarion,v 1.5 2014/04/30 21:41:02 christos Exp $
|
|
4
|
+
# clarion: file(1) magic for # Clarion Personal/Professional Developer
|
|
5
|
+
# (v2 and above)
|
|
6
|
+
# From: Julien Blache <jb@jblache.org>
|
|
7
|
+
|
|
8
|
+
# Database files
|
|
9
|
+
# signature
|
|
10
|
+
0 leshort 0x3343 Clarion Developer (v2 and above) data file
|
|
11
|
+
# attributes
|
|
12
|
+
>2 leshort &0x0001 \b, locked
|
|
13
|
+
>2 leshort &0x0004 \b, encrypted
|
|
14
|
+
>2 leshort &0x0008 \b, memo file exists
|
|
15
|
+
>2 leshort &0x0010 \b, compressed
|
|
16
|
+
>2 leshort &0x0040 \b, read only
|
|
17
|
+
# number of records
|
|
18
|
+
>5 lelong x \b, %d records
|
|
19
|
+
|
|
20
|
+
# Memo files
|
|
21
|
+
0 leshort 0x334d Clarion Developer (v2 and above) memo data
|
|
22
|
+
|
|
23
|
+
# Key/Index files
|
|
24
|
+
# No magic? :(
|
|
25
|
+
|
|
26
|
+
# Help files
|
|
27
|
+
0 leshort 0x49e0 Clarion Developer (v2 and above) help data
|