-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmagic_bytes.json
More file actions
80 lines (73 loc) · 2.38 KB
/
Copy pathmagic_bytes.json
File metadata and controls
80 lines (73 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"_comment": "Magic Bytes Configuration File - Add or modify file signatures here",
"_instructions": {
"format": "Each category contains an array of [hex_signature, format_name] pairs",
"hex_format": "Use hex strings without spaces or 0x prefix (e.g., 'FFD8FF' for JPEG)",
"adding_new": "Add new entries following the same pattern",
"categories": "You can add new categories by creating new top-level keys"
},
"Images": [
["FFD8FF", "JPEG"],
["89504E470D0A1A0A", "PNG"],
["474946383761", "GIF87a"],
["474946383961", "GIF89a"],
["424D", "BMP"],
["49492A00", "TIFF (little endian)"],
["4D4D002A", "TIFF (big endian)"],
["00000100", "ICO"],
["52494646", "WEBP/RIFF"],
["3C737667", "SVG"]
],
"Documents": [
["25504446", "PDF"],
["D0CF11E0A1B11AE1", "MS Office (DOC/XLS/PPT)"],
["504B0304", "ZIP-based (DOCX/XLSX/PPTX/ODT)"],
["7B5C727466", "RTF"],
["EFBBBF", "UTF-8 BOM (text)"]
],
"Archives": [
["504B0304", "ZIP"],
["504B0506", "ZIP (empty)"],
["504B0708", "ZIP (spanned)"],
["526172211A0700", "RAR v1.5+"],
["526172211A070100", "RAR v5+"],
["377ABCAF271C", "7-Zip"],
["1F8B08", "GZIP"],
["425A68", "BZIP2"],
["7573746172", "TAR (ustar)"]
],
"Videos": [
["0000001466747970", "MP4"],
["0000001866747970", "MP4"],
["000000186674797069736F6D", "MP4/ISO"],
["0000001C66747970", "MP4"],
["0000002066747970", "MP4"],
["52494646", "AVI/RIFF"],
["1A45DFA3", "MKV/WebM"],
["464C5601", "FLV"]
],
"Audio": [
["494433", "MP3 (ID3v2)"],
["FFFB", "MP3 (MPEG-1 Layer 3)"],
["FFF3", "MP3 (MPEG-1 Layer 3)"],
["FFF2", "MP3 (MPEG-1 Layer 3)"],
["52494646", "WAV/RIFF"],
["664C6143", "FLAC"],
["4F676753", "OGG"],
["667479704D3441", "M4A"]
],
"Code": [
["23212F7573722F62696E2F707974686F6E", "Python script (#!/usr/bin/python)"],
["23212F7573722F62696E2F656E7620707974686F6E", "Python script (#!/usr/bin/env python)"],
["3C3F706870", "PHP"],
["3C21444F43545950452068746D6C", "HTML (<!DOCTYPE html)"],
["3C68746D6C", "HTML (<html)"],
["3C3F786D6C", "XML"],
["7B", "JSON/Code"]
],
"_examples": {
"adding_executable": ["4D5A", "Windows Executable (EXE)"],
"adding_photoshop": ["38425053", "Adobe Photoshop (PSD)"],
"adding_sqlite": ["53514C69746520666F726D6174", "SQLite Database"]
}
}