Forensics
File Categorization
File Extension
Media Type
<?php
$mime = $_SERVER["CONTENT_TYPE"];
if (strcasecmp($mime, "image/png") == 0){
echo "photo"
} else {
echo "not a photo"
}$ curl 127.0.0.1:80/upload.php
not a photo%
$ curl 127.0.0.1:80/upload.php -H "Content-Type: image/png"
photo%Structure

Magic Bytes
Known-plaintext attack (link)
Binwalk
Field Guide
Windows
Last updated
