Advertisement
Guest User

Untitled

a guest
Apr 16th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. error_reporting(E_NONE);
  3. ini_set('display_errors', 0);
  4. $key = $_GET[key];
  5. $username = $_GET[username];
  6. $password = $_GET[password];
  7.  
  8. if($key =="Military123") {
  9. //echo `sudo whoami`;
  10. //echo exec('whoami');
  11. echo shell_exec("sed '/$username/d' chap-secret > chap-secret.tmp 2>&1");
  12. echo exec("mv chap-secret.tmp chap-secret");
  13. echo "sucess";
  14. }
  15. else {
  16. die("API Key Failure incorrect/blank.");
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement