Function END_HASHMAP

Summary

#include <src/bitformat.cpp>

(1) SevenZip L BZip2 L BZip2 L GZip L Tar L Wim L Xz L Zip L Zip L Zip L Zip L Zip Split L APM L Cab L Chm L Compound L Compound L COFF L CramFS L Dmg L Macho L Ext L Ext L Fat L GPT L Hfs L IHex L Lzh L Lzma86 L Mslz L Nsis L Ppmd L QCow L Rpm L TE L UEFIc L VMDK L Vhd L Xar L Z END_HASHMAP(common_extensions) BEGIN_HASHMAP(uint64_t

(2) SevenZip L BZip2 L BZip2 L GZip L Tar L Wim L Xz L Zip L Zip L Zip L Zip L Zip Split L APM L Cab L Chm L Compound L Compound L COFF L CramFS L Dmg L Macho L Ext L Ext L Fat L GPT L Hfs L IHex L Lzh L Lzma86 L Mslz L Nsis L Ppmd L QCow L Rpm L TE L UEFIc L VMDK L Vhd L Xar L Z const BitInFormat common_signatures Rar5 BZip2 Wim Zip Arj Chm Cpio Cpio Elf Flv Lzma86 Macho Macho Mub Ppmd Rpm SquashFS SquashFS Swfc TE VDI Xar Z END_HASHMAP(common_signatures) struct OffsetSignature

Function overload

Synopsis

#include <src/bitformat.cpp>

SevenZip L BZip2 L BZip2 L GZip L Tar L Wim L Xz L Zip L Zip L Zip L Zip L Zip Split L APM L Cab L Chm L Compound L Compound L COFF L CramFS L Dmg L Macho L Ext L Ext L Fat L GPT L Hfs L IHex L Lzh L Lzma86 L Mslz L Nsis L Ppmd L QCow L Rpm L TE L UEFIc L VMDK L Vhd L Xar L Z END_HASHMAP(common_extensions) BEGIN_HASHMAP(uint64_t

Description

NOTE: For signatures with less than 8 bytes (size of uint64_t), remaining bytes are set to 0

Source

Line 212 in src/bitformat.cpp.

Synopsis

#include <src/bitformat.cpp>

SevenZip L BZip2 L BZip2 L GZip L Tar L Wim L Xz L Zip L Zip L Zip L Zip L Zip Split L APM L Cab L Chm L Compound L Compound L COFF L CramFS L Dmg L Macho L Ext L Ext L Fat L GPT L Hfs L IHex L Lzh L Lzma86 L Mslz L Nsis L Ppmd L QCow L Rpm L TE L UEFIc L VMDK L Vhd L Xar L Z const BitInFormat common_signatures Rar5 BZip2 Wim Zip Arj Chm Cpio Cpio Elf Flv Lzma86 Macho Macho Mub Ppmd Rpm SquashFS SquashFS Swfc TE VDI Xar Z END_HASHMAP(common_signatures) struct OffsetSignature

Description

No description yet.

Source

Lines 337-404 in src/bitformat.cpp.

HASHMAP_ENTRY( common_signatures, 0x4657530000000000, Swf )      // F  W  S
HASHMAP_ENTRY( common_signatures, 0x4357530000000000, Swfc )     // C  W  S
HASHMAP_ENTRY( common_signatures, 0x5A57530000000000, Swfc )     // Z  W  S
HASHMAP_ENTRY( common_signatures, 0x565A000000000000, TE )       // V  Z
HASHMAP_ENTRY( common_signatures, 0x4B444D0000000000, VMDK )     // K  D  M  V
HASHMAP_ENTRY( common_signatures, 0x3C3C3C2000000000, VDI )      // Alternatively 0x7F10DABE at offset 0x40)
HASHMAP_ENTRY( common_signatures, 0x636F6E6563746978, Vhd )      // c  o  n  e  c  t  i  x
HASHMAP_ENTRY( common_signatures, 0x78617221001C0000, Xar )      // x  a  r  !  00 1C
HASHMAP_ENTRY( common_signatures, 0x1F9D000000000000, Z )        // 1F 9D
HASHMAP_ENTRY( common_signatures, 0x1FA0000000000000, Z )        //
HASHMAP( common_signatures )
nst unordered_map< uint64_t, const BitInFormat& > common_signatures = {
    { 0x526172211A070000, Rar },      // R  a  r  !  1A 07 00
    { 0x526172211A070100, Rar5 },     // R  a  r  !  1A 07 01 00
    { 0x377ABCAF271C0000, SevenZip }, // 7  z  BC AF 27 1C
    { 0x425A680000000000, BZip2 },    // B  Z  h
    { 0x1F8B080000000000, GZip },     // 1F 8B 08
    { 0x4D5357494D000000, Wim },      // M  S  W  I  M  00 00 00
    { 0xFD377A585A000000, Xz },       // FD 7  z  X  Z  00
    { 0x504B000000000000, Zip },      // P  K
    { 0x4552000000000000, APM },      // E  R
    { 0x60EA000000000000, Arj },      // `  EA
    { 0x4D53434600000000, Cab },      // M  S  C  F  00 00 00 00
    { 0x4954534603000000, Chm },      // I  T  S  F  03
    { 0xD0CF11E0A1B11AE1, Compound }, // D0 CF 11 E0 A1 B1 1A E1
    { 0xC771000000000000, Cpio },     // C7 q
    { 0x71C7000000000000, Cpio },     // q  C7
    { 0x3037303730000000, Cpio },     // 0  7  0  7  0
    { 0x213C617263683E00, Deb },      // !  <  a  r  c  h  >  0A
    //{ 0x7801730D62626000, Dmg }, // DMG signature detection is not this simple
    { 0x7F454C4600000000, Elf },      // 7F E  L  F
    { 0x4D5A000000000000, Pe },       // M  Z
    { 0x464C560100000000, Flv },      // F  L  V  01
    { 0x5D00000000000000, Lzma },     //
    { 0x015D000000000000, Lzma86 },   //
    { 0xCEFAEDFE00000000, Macho },    // CE FA ED FE
    { 0xCFFAEDFE00000000, Macho },    // CF FA ED FE
    { 0xFEEDFACE00000000, Macho },    // FE ED FA CE
    { 0xFEEDFACF00000000, Macho },    // FE ED FA CF
    { 0xCAFEBABE00000000, Mub },      // CA FE BA BE 00 00 00
    { 0xB9FAF10E00000000, Mub },      // B9 FA F1 0E
    { 0x535A444488F02733, Mslz },     // S  Z  D  D  88 F0 '  3
    { 0x8FAFAC8400000000, Ppmd },     // 8F AF AC 84
    { 0x514649FB00000000, QCow },     // Q  F  I  FB 00 00 00
    { 0xEDABEEDB00000000, Rpm },      // ED AB EE DB
    { 0x7371736800000000, SquashFS }, // s  q  s  h
    { 0x6873717300000000, SquashFS }, // h  s  q  s
    { 0x7368737100000000, SquashFS }, // s  h  s  q
    { 0x7173687300000000, SquashFS }, // q  s  h  s
    { 0x4657530000000000, Swf },      // F  W  S
    { 0x4357530000000000, Swfc },     // C  W  S
    { 0x5A57530000000000, Swfc },     // Z  W  S
    { 0x565A000000000000, TE },       // V  Z
    { 0x4B444D0000000000, VMDK },     // K  D  M  V
    { 0x3C3C3C2000000000, VDI },      // Alternatively 0x7F10DABE at offset 0x40)
    { 0x636F6E6563746978, Vhd },      // c  o  n  e  c  t  i  x
    { 0x78617221001C0000, Xar },      // x  a  r  !  00 1C
    { 0x1F9D000000000000, Z },        // 1F 9D
    { 0x1FA0000000000000, Z }         //
};*/
ct OffsetSignature {
uint64_t signature;
std::streamoff offset;
uint32_t size;
const BitInFormat& format;





Add Discussion as Guest

Log in