-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathfileheaders.go
More file actions
52 lines (51 loc) · 3.34 KB
/
fileheaders.go
File metadata and controls
52 lines (51 loc) · 3.34 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
package httpfuzz
var headerRegistry = map[string][]byte{
"jpeg": []byte("\xFF\xD8\xFF\xDB"),
"exe": []byte("\x4D\x5A"),
"elf": []byte("\x7F\x45\x4C\x46"),
"txt": []byte("\xEF\xBB\xBF"),
"png": []byte("\x89\x50\x4E\x47\x0D\x0A\x1A\x0A"),
"class": []byte("\xCA\xFE\xBA\xBE"),
"rar": []byte("\x52\x61\x72\x21\x1A\x07\x01\x00"),
"zip": []byte("\x50\x4B\x03\x04"),
"emptyzip": []byte("\x50\x4B\x05\x06"),
"spannedzip": []byte("\x50\x4B\x07\x08"),
"jar": []byte("\x50\x4B\x03\x04"),
"pcapng": []byte("\x0a\x0d\x0d\x0a"),
"rpm": []byte("\xed\xab\xee\xdb"),
"sqlitedb": []byte("\x53\x51\x4c\x69\x74\x65\x20\x66\x6f\x72\x6d\x61\x74\x20\x33\x00"),
"shellscript": []byte("\x23\x21"), // #! characters
"telegramdesktop": []byte("\x54\x44\x46\x24"),
"telegramdesktopencrypted": []byte("\x54\x44\x45\x46"),
"ico": []byte("\x00\x00\x01\x00"),
"bz2": []byte("\x00\x00\x01\x00"),
"gif": []byte("\x47\x49\x46\x38\x39\x61"),
"tiff": []byte("\x4D\x4D\x00\x2A"),
"raw": []byte("\x49\x49\x2A\x00\x10\x00\x00\x00\x43\x52"),
"cin": []byte("\x80\x2A\x5F\xD7"),
"mach64": []byte("\xFE\xED\xFA\xCF"),
"mach32": []byte("\xFE\xED\xFA\xCE"),
"jks": []byte("\xFE\xED\xFE\xED"),
"ps": []byte("\x25\x21\x50\x53"),
"chm": []byte("\x49\x54\x53\x46\x03\x00\x00\x00\x60\x00\x00\x00"),
"pdf": []byte("\x25\x50\x44\x46\x2d"),
"dex": []byte("\x64\x65\x78\x0A\x30\x33\x35\x00"),
"crx": []byte("\x43\x72\x32\x34"),
"dmg": []byte("\x78\x01\x73\x0D\x62\x62\x60"),
"webm": []byte("\x1A\x45\xDF\xA3"),
"deb": []byte("\x21\x3C\x61\x72\x63\x68\x3E"),
"muhadjeensecrets": []byte("\x00\x5C\x41\xB1\xFF"),
"ppt": []byte("\x00\x6E\x1E\xF0"),
"indd": []byte("\x06\x06\xED\xF5\xD8\x1D\x46\xE5\xBD\x31\xEF\xE7\xFE\x74\xB7\x1D"),
"wallet": []byte("\x0A\x16\x6F\x72\x67\x2E\x62\x69\x74\x63\x6F\x69\x6E\x2E\x70\x72"),
"mkv": []byte("\x1A\x45\xDF\xA3"),
"gz": []byte("\x1F\x8B\x08"),
"eps": []byte("\x25\x21\x50\x53\x2D\x41\x64\x6F\x62\x65\x2D\x33\x2E\x30\x20\x45\x50\x53\x46\x2D\x33\x20\x30"),
"7z": []byte("\x37\x7A\xBC\xAF\x27\x1C"),
"wsc": []byte("\x3C\x3F"),
"manifest": []byte("\x3C\x3F\x78\x6D\x6C\x20\x76\x65\x72\x73\x69\x6F\x6E\x3D"),
"msc": []byte("\x3C\x3F\x78\x6D\x6C\x20\x76\x65\x72\x73\x69\x6F\x6E\x3D\x22\x31\x2E\x30\x22\x3F\x3E\x0D\x0A\x3C\x4D\x4D\x43\x5F\x43\x6F\x6E\x73\x6F\x6C\x65\x46\x69\x6C\x65\x20\x43\x6F\x6E\x73\x6F\x6C\x65\x56\x65\x72\x73\x69\x6F\x6E\x3D\x22"),
"swf": []byte("\x46\x57\x53"),
"mp3": []byte("\x49\x44\x33"),
"torrent": []byte("\x64\x38\x3A\x61\x6E\x6E\x6F\x75\x6E\x63\x65"),
}