Skip to content

Instantly share code, notes, and snippets.

@mzfr
Created February 3, 2019 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzfr/270d831a9108e3908cbf80d7171692b7 to your computer and use it in GitHub Desktop.
Save mzfr/270d831a9108e3908cbf80d7171692b7 to your computer and use it in GitHub Desktop.
lookup = [(b"SQLite", "DB"),
(b"[Content_Types].xml", "DOCX"),
(b"bin/bash", "SH"),
(b"announce36", "TORRENT"),
(b"GIF89a", "GIF"),
(b"IDA1\x00", "IDB"),
(b"\x1f\x8b\x08","GZ"),
(b'BM|\x11A', "BMP"),
(b'\xff\xd8\xff\xe0', "JPG"),
(b'!<arch>\ndebian-binary', "DEB"),
(b"version: '3'", "YML"),
(b'\x00\x00\x00\x1cftyp3gp4', "3GP"),
(b'\xd4\xc3\xb2\xa1\x02', "PCAP"),
(b'ID3\x04\x00\x00', "MP3"),
(b"7z\xbc\xaf", "7Z"),
(b'PK\x03\x04', "ZIP"),
(b'[\x00.\x00S\x00h\x00e\x00l\x00l\x00C\x00l\x00a', "INI"),
(b'\xed\xab\xee\xdb\x03\x00', "RPM"),
(b'gimp xcf', "XCF"),
(b'%PDF', "PDF"),
(b'\x7fELF', "ELF"),
(b'Date: Sun, 1 Apr', "EML"),
(b'\x1aE\xdf\xa3\x01', "MKV"),
(b'\x89PNG\r\n\x1a', "PNG"),
(b'CWS\t0[\x03', "SWF"),
(b'#include', "C"),
(b'\xebc\x90\xd0', "SDA"), #?
(b'KDMV', "VMDK"),
(b'652076206c207a207b207320302075206e2064205f20302066', "TXT"),
(b'WEBPV', "WEBP"),
(b'\x00\x00\x01\x00', "ICO")
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment