SHARE
TWEET

Untitled

a guest Apr 2nd, 2019 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. date_default_timezone_set("Asia/Jakarta");
  3.  
  4. $bigToken = new bigToken();
  5. $modules = new modules();
  6.  
  7. echo "Input Referral Code : ";
  8. $reffCode = trim(fgets(STDIN));
  9. echo "Jumlah : ";
  10. $jumlah = trim(fgets(STDIN));
  11.  
  12. for($a=1;$a<=$jumlah;$a++)
  13. {
  14.     $register = $bigToken->register($reffCode);
  15.     print $register;
  16. }
  17.  
  18. class bigToken
  19. {
  20.     public $modules;
  21.  
  22.     public function __construct()
  23.     {
  24.         $this->modules = new modules();
  25.     }
  26.  
  27.     public function linkActivasi($mail, $PHPSESSID, $activasi)
  28.     {
  29.         $a=1;
  30.         while(true)
  31.         {
  32.             $headers = array();
  33.             $headers[] = "accept-language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7";
  34.             $headers[] = "cookie: __cfduid=d8f08aa2292ba2970c80661d614f982181553831865; PHPSESSID=".$PHPSESSID."; tmail-emails=".$activasi;
  35.             $headers[] = "referer: https://code-mail.com/";
  36.             $headers[] = "user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36";
  37.             $headers[] = "x-requested-with: XMLHttpRequest";
  38.             $pageInbox = $this->modules->curl("https://code-mail.com/mail.php", null, false, true, $headers, 'GET');
  39.             $linkActivasi = @$this->modules->getStr($pageInbox, 'style="width: 110px; height: 22px; background: #528FF5; padding: 12px; text-align: center; border-radius: 6px;color: #fff; font-weight:700;text-decoration:none;" href="', '"', 1, 0);
  40.             $this->modules->curl("https://code-mail.com/mail.php?unseen=1", null, false, false, $headers, 'GET');
  41.             $this->modules->curl("https://code-mail.com/actions.php?action=saveEMails", null, false, true, $headers, 'GET');
  42.             $this->modules->curl("https://code-mail.com/", null, false, false, $headers, 'GET');
  43.             $this->modules->curl("https://code-mail.com/user.php?user=".$mail."%40code-mail.com", null, false, false, $headers, 'GET');
  44.             if(!empty($linkActivasi))
  45.             {
  46.                 return $linkActivasi;
  47.             }else{
  48.                 print "\r\r\rEmail Belom Masuk! : ".$a." Sec..";
  49.             }
  50.             $a++;
  51.         }  
  52.     }
  53.  
  54.     public function tempMail($mail)
  55.     {
  56.         $PHPSESSID = $this->modules->randStr("huruf_angka", "20");
  57.         @unlink("cookiesjancok.txt");
  58.         $head = array();
  59.         $head[] = "cookie: __cfduid=d8f08aa2292ba2970c80661d614f982181553831865; PHPSESSID=".$PHPSESSID."; _ga=GA1.2.174770991.1553683948; _gid=GA1.2.1140352411.1553683948; _gat_gtag_UA_127799929_1=1";
  60.         $head[] = "referer: https://code-mail.com/";
  61.         $head[] = "user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36";
  62.         $head[] = "x-requested-with: XMLHttpRequest";
  63.         @$gatau = $this->modules->curl("https://code-mail.com/user.php?user=".$mail."%40code-mail.com", null, false, true, $head, 'GET');
  64.         if(!empty($gatau))
  65.         {
  66.             $hh = array();
  67.             $hh[] = "cookie: __cfduid=d8f08aa2292ba2970c80661d614f982181553831865; PHPSESSID=".$PHPSESSID."; _ga=GA1.2.174770991.1553683948; _gid=GA1.2.1140352411.1553683948; _gat_gtag_UA_127799929_1=1";
  68.             $hh[] = "referer: https://code-mail.com/";
  69.             $hh[] = "user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36";
  70.             $hh[] = "x-requested-with: XMLHttpRequest";
  71.             $saveEmails = $this->modules->curl("https://code-mail.com/actions.php?action=saveEMails", null, false, true, $hh, 'GET');
  72.             $activasi = $this->modules->getStr($saveEmails, 'Set-Cookie: tmail-emails=', ';', 1, 0);
  73.             if(!empty($activasi))
  74.             {
  75.                 $headers = array();
  76.                 $headers[] = "referer: https://code-mail.com/";
  77.                 $headers[] = "user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36";
  78.                 $headers[] = "x-requested-with: XMLHttpRequest";
  79.                 $headers[] = "cookie: __cfduid=d8f08aa2292ba2970c80661d614f982181553831865; PHPSESSID=".$PHPSESSID."; _ga=GA1.2.174770991.1553683948; _gid=GA1.2.1140352411.1553683948; tmail-emails=".$activasi."; _gat_gtag_UA_127799929_1=1";
  80.                 $headers[] = "Connection: keep-alive";
  81.                 @$getMail = $this->modules->curl("https://code-mail.com/#/".base64_encode($mail."%40code-mail.com"), null, false, false, $headers, 'GET');
  82.                 @$tempMail = $this->modules->getStr($getMail, "<li onclick=\"createUser('", "'", 1, 0);
  83.                 if(!empty($tempMail))
  84.                 {
  85.                     $linkActivasi = $this->linkActivasi($mail, $PHPSESSID, $activasi);
  86.                     if(!empty($linkActivasi))
  87.                     {
  88.                         $verif = $this->modules->curl($linkActivasi, null, true, true, array(), 'GET');
  89.                         $fetchLocation = $this->modules->fetchLocation($verif)['https://my_bigtoken_com/verify?code'];
  90.                         $fetchMail = $this->modules->fetchLocation($verif)['email'];
  91.                         if(!empty($fetchLocation))
  92.                         {
  93.                             print PHP_EOL;
  94.                             $this->verifikasiEmail($linkActivasi, $fetchLocation, $mail);      
  95.                         }else{
  96.                             print PHP_EOL."Location Not Found!";
  97.                             return false;
  98.                         }
  99.                     }else{
  100.                         print PHP_EOL."Failed Link Activasi!";
  101.                     }
  102.                 }else{
  103.                     print PHP_EOL."mail not found";
  104.                 }
  105.             }else{
  106.                 print PHP_EOL."activasi not error";
  107.             }
  108.         }else{
  109.             print PHP_EOL."Gatau";
  110.         }
  111.     }
  112.  
  113.     public function verifikasiEmail($linkActivasi, $fetchLocation, $mail)
  114.     {
  115.     //  $this->modules->curl($linkActivasi, null, false, false, array(), 'GET');
  116.         for($a=1;$a<=20;$a++)
  117.         {
  118.             $headVer = array();
  119.             $headVer[] = "accept-language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7";
  120.             ///$headVer[] = "cookie: _ga=GA1.2.1717875247.1554165474; _gid=GA1.2.4411597.1554165474; amplitude_id_3c5b527179ea61ca0f9ef082d7c63c13bigtoken.com=eyJkZXZpY2VJZCI6IjIyMjQwM2NkLWY2NDAtNDY5MC1hNWJiLTcxMWY2YzM5MjAxOFIiLCJ1c2VySWQiOm51bGwsIm9wdE91dCI6ZmFsc2UsInNlc3Npb25JZCI6MTU1NDE2NTQ3MzgyNywibGFzdEV2ZW50VGltZSI6MTU1NDE2OTcwMDExMCwiZXZlbnRJZCI6MTcsImlkZW50aWZ5SWQiOjAsInNlcXVlbmNlTnVtYmVyIjoxN30=";
  121.             $headVer[] = "upgrade-insecure-requests: 1";
  122.             $headVer[] = "user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36";
  123.             $verif = $this->modules->curl("https://my.bigtoken.com/verify?code=".trim($fetchLocation)."&type=signup&email=".trim($mail)."@code-mail.com", null, false, false, $headVer, 'GET');
  124.             if(strpos($verif, 'We\'re sorry but My Bigtoken doesn\'t') or preg_match('/We\'re sorry but My Bigtoken doesn\'t/i', $verif))
  125.             {  
  126.                 $hoa = array();
  127.                 $hoa[] = "Content-Type: application/json";
  128.                 $hoa[] = "Origin: https://my.bigtoken.com";
  129.                 $hoa[] = "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36";
  130.                 $hoa[] = "X-Requested-With: XMLHttpRequest";
  131.                 $hoa[] = "X-Srax-Big-Api-Version: 2";
  132.                 $hoa[] = "host: api.bigtoken.com";
  133.                 $ver2 = $this->modules->curl("https://api.bigtoken.com/signup/email-verification", '{"email":"'.trim($mail).'@code-mail.com","verification_code":"'.trim($fetchLocation).'"}', false, false, $hoa);
  134.                 if(strpos($ver2, 'msg":"Reward successfully made"'))
  135.                 {
  136.                     if($a == 1)
  137.                     {
  138.                         print "Success Verifikasi!".PHP_EOL;
  139.                         return false;
  140.                     }else{
  141.                         print PHP_EOL."Success Verifikasi!".PHP_EOL;
  142.                         return false;
  143.                     }
  144.                 }else{
  145.                     print "\rSabar.. ".$a." Sec...";
  146.                     if($a == 20)
  147.                     {
  148.                         print PHP_EOL."Silahkan Verifikasi Manual : ".$linkActivasi.PHP_EOL;
  149.                         return false;
  150.                     }
  151.                 }
  152.             }else{
  153.                 print "\r\rFailed Verifikasi!".PHP_EOL;
  154.             }
  155.         }  
  156.     }
  157.  
  158.     public function register($reffCode)
  159.     {
  160.         $mail = $this->modules->randNama()['nama'].$this->modules->randStr("huruf_angka","4");
  161.         $headers = array();
  162.         $headers[] = "Accept: application/json";
  163.         $headers[] = "User-Agent: Redmi ".rand(00000,999999)." Plus_".rand(00,99).".1.2_1.0.".rand(00,99);
  164.         $headers[] = "Host: api.bigtoken.com";
  165.         $register = $this->modules->curl("https://api.bigtoken.com/signup", 'email='.$mail.'%40code-mail.com&password='.$this->modules->randStr("kapital", "7").'23%23&referral_id='.$reffCode.'&monetize=1', false, false, $headers);
  166.         if(strpos($register, '"message": "Too Many Attempts."'))
  167.         {
  168.             print "\r\"message\": \"Too Many Attempts.\"";
  169.             $this->register($reffCode);
  170.         }elseif(strpos($register, '"user_id":')){
  171.             print PHP_EOL."Success Register... || ".$mail."@code-mail.com".PHP_EOL;
  172.             $this->tempMail($mail);
  173.         }else{
  174.             print PHP_EOL.$register.PHP_EOL;
  175.         }
  176.     }  
  177. }
  178.  
  179. class modules
  180. {
  181.     public function curl($url, $params, $cookie, $header, $httpheaders, $request = 'POST', $socks = "")
  182.     {
  183.         $this->ch = curl_init();
  184.            
  185.         curl_setopt($this->ch, CURLOPT_URL, $url);
  186.         curl_setopt($this->ch, CURLOPT_POSTFIELDS, $params);
  187.         curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, 0);
  188.         curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);
  189.         curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, 1);
  190.  
  191.         curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, $request);
  192.  
  193.         if($cookie == true)
  194.         {  
  195.             $cookies = "cookiesjancok.txt";
  196.             curl_setopt($this->ch, CURLOPT_COOKIEJAR, $cookies);
  197.             curl_setopt($this->ch, CURLOPT_COOKIEFILE, $cookies);
  198.         }
  199.  
  200.         curl_setopt($this->ch, CURLOPT_HEADER, $header);
  201.         @curl_setopt($this->ch, CURLOPT_HTTPHEADER, $httpheaders);
  202.  
  203.         curl_setopt($this->ch, CURLOPT_HTTPPROXYTUNNEL, 1);
  204.         curl_setopt($this->ch, CURLOPT_PROXY, $socks);
  205.         curl_setopt($this->ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
  206.  
  207.         curl_setopt($this->ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
  208.         $response = curl_exec($this->ch);
  209.         return $response;
  210.         curl_close($this->ch);
  211.     }
  212.  
  213.     public function getStr($page, $str1, $str2, $line_str2, $line)
  214.     {
  215.         $get = explode($str1, $page);
  216.         $get2 = explode($str2, $get[$line_str2]);
  217.         return $get2[$line];
  218.     }
  219.  
  220.     public function randStr($type, $length)
  221.     {
  222.         $characters = array();
  223.         $characters['angka'] = '0123456789';
  224.         $characters['kapital'] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
  225.         $characters['huruf'] = 'abcdefghijklmnopqrstuvwxyz';
  226.         $characters['kapital_angka'] = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
  227.         $characters['huruf_angka'] = '0123456789abcdefghijklmnopqrstuvwxyz';
  228.         $characters['all'] = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  229.         $charactersLength = strlen($characters[$type]);
  230.         $randomString = '';
  231.  
  232.         for ($i = 0; $i < $length; $i++)
  233.         {
  234.             $randomString .= $characters[$type][rand(0, $charactersLength - 1)];
  235.         }
  236.  
  237.         return $randomString;
  238.  
  239.     }  
  240.  
  241.     public function fwrite($namafile, $data)
  242.     {
  243.         $fh = fopen($namafile, "a");
  244.         fwrite($fh, $data);
  245.         fclose($fh);  
  246.     }
  247.  
  248.     public function randNama()
  249.     {
  250.         $get = file_get_contents("https://api.randomuser.me");
  251.         $j = json_decode($get, true);
  252.         $first = @preg_replace("/\b(?!\|)(?!,)(?!\s)\W\b/", "", @iconv('UTF-8', 'ASCII//TRANSLIT', $j['results'][0]['name']['first']));
  253.         $last = @preg_replace("/\b(?!\|)(?!,)(?!\s)\W\b/", "", @iconv('UTF-8', 'ASCII//TRANSLIT', $j['results'][0]['name']['last']));
  254.         $nama = $first .$last.$this->randStr('huruf_angka','2');
  255.         $rand = rand(00000,99999);
  256.         $domain = array("@gmail.com","@yahoo.com","@hotmail.co.id");
  257.         $email = $first.$last.$this->randStr("all", "2").$domain[rand(0, 2)];  
  258.         $nomorhp = "+628".$this->randStr('angka','10')."";
  259.         $password = $first.$this->randStr('huruf_angka','6');  
  260.         if(empty($first) or empty($last))
  261.         {
  262.             $this->randNama();
  263.         }else{
  264.             return array("first" => $first, "last" => $last, "nama" => $nama, "email" => $email, "nope" => $nomorhp, "password" => $password);
  265.         }
  266.     }
  267.  
  268.     public function fetchCookies($source)
  269.     {
  270.         preg_match_all('/^Set-Cookie:\s*([^;]*)/mi', $source, $matches);
  271.         $cookies = array();
  272.         foreach($matches[1] as $item)
  273.  
  274.         {
  275.             parse_str($item, $cookie);
  276.             $cookies = array_merge($cookies, $cookie);
  277.         }
  278.  
  279.         return $cookies;
  280.     }
  281.  
  282.     public function fetchLocation($source)
  283.     {
  284.         preg_match_all('/^Location:\s*([^;]*)/mi', $source, $matches);
  285.         $cookies = array();
  286.         foreach($matches[1] as $item)
  287.  
  288.         {
  289.             parse_str($item, $cookie);
  290.             $cookies = array_merge($cookies, $cookie);
  291.         }
  292.  
  293.         return $cookies;
  294.     }
  295. }
  296. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top