常见文件头文件尾:
-
JPEG (jpg),
文件头:FFD8FF
文件尾:FF D9 -
PNG (png),
文件头:89504E47
文件尾:AE 42 60 82 -
GIF (gif),
文件头:47494638 或GIF89A
文件尾:00 3B -
ZIP Archive (zip),
文件头:504B0304
文件尾:50 4B
// these next are not common,and also not more important than those above
-
HTML (html),
文件头:68746D6C3E -
Wave (wav),
文件头:57415645 -
AVI (avi),
文件头:41564920 -
bmp,
文件头:424D -
Email [thorough only] (eml),
文件头:44656C69766572792D646174653A -
Adobe Acrobat (pdf),
文件头:255044462D312E -
RAR Archive (rar),
文件头:52617221 -
Photoshop (psd),
文件头:38425053 -
XML (xml),
文件头:3C3F786D6C