Advertisement
Guest User

bigtoken.php

a guest
Apr 3rd, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.11 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. * Script Created By : Will Pratama - facebook.com/yaelahhwil
  5. * Thanks To : Charles Giovanni
  6. */
  7.  
  8. date_default_timezone_set("Asia/Jakarta");
  9. class bigtoken extends modules
  10. {
  11. private $domains = "@sharklasers.com";
  12.  
  13. public function registerAccount($referralCode)
  14. {
  15. $email = $this->randNama()['nama'].$this->randStr("huruf_angka","3").$this->domains;
  16. $headers = array();
  17. $headers[] = "Accept: application/json";
  18. $headers[] = "User-Agent: Redmi ".rand(00000,999999)." Plus_".rand(00,99).".1.2_1.0.".rand(00,99);
  19. $headers[] = "Host: api.bigtoken.com";
  20. $register = $this->curl("https://api.bigtoken.com/signup", 'email='.str_replace("@", "%40", $email).'&password='.$this->randStr("kapital", "7").'23%23&referral_id='.$referralCode.'&monetize=1', false, false, $headers);
  21. if(strpos($register, '"message": "Too Many Attempts."'))
  22. {
  23. print "\r\"message\": \"Too Many Attempts.\"";
  24. $this->register($referralCode);
  25. }elseif(strpos($register, '"user_id":')){
  26. print PHP_EOL."Success Register... || ".$email.PHP_EOL;
  27. $tempMail = new tempMail(str_replace($this->domains, "", $email));
  28. $linkActivasi = trim($tempMail->temporraryMail());
  29. if(preg_match('/Sabar\.\./', $linkActivasi) or strpos($linkActivasi, 'Sabar..'))
  30. {
  31. //print $linkActivasi;
  32. }else{
  33. $verifs = $this->curl(trim($linkActivasi), null, false, true, array(), 'GET');
  34. $fetchLocation = $this->fetchLocation($verifs)['https://my_bigtoken_com/verify?code'];
  35. $verifikasiEmail = $this->verifikasiEmail($linkActivasi, $fetchLocation, $email);
  36. print $verifikasiEmail;
  37. }
  38. }else{
  39. print PHP_EOL.$register.PHP_EOL;
  40. }
  41. }
  42.  
  43. protected function verifikasiEmail($linkActivasi, $fetchLocation, $mail)
  44. {
  45. for($a=1;$a<=20;$a++)
  46. {
  47. $headVer = array();
  48. $headVer[] = "accept-language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7";
  49. $headVer[] = "upgrade-insecure-requests: 1";
  50. $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";
  51. $verif = $this->curl("https://my.bigtoken.com/verify?code=".trim($fetchLocation)."&type=signup&email=".trim($mail), null, false, false, $headVer, 'GET');
  52. if(strpos($verif, 'We\'re sorry but My Bigtoken doesn\'t') or preg_match('/We\'re sorry but My Bigtoken doesn\'t/i', $verif))
  53. {
  54. $hoa = array();
  55. $hoa[] = "Content-Type: application/json";
  56. $hoa[] = "Origin: https://my.bigtoken.com";
  57. $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";
  58. $hoa[] = "X-Requested-With: XMLHttpRequest";
  59. $hoa[] = "X-Srax-Big-Api-Version: 2";
  60. $hoa[] = "host: api.bigtoken.com";
  61. $ver2 = $this->curl("https://api.bigtoken.com/signup/email-verification", '{"email":"'.trim($mail).'","verification_code":"'.trim($fetchLocation).'"}', false, false, $hoa);
  62. if(strpos($ver2, 'msg":"Reward successfully made"'))
  63. {
  64. if($a == 1)
  65. {
  66. print str_replace("\r", "", PHP_EOL."Success Verifikasi!".PHP_EOL);
  67. return false;
  68. }else{
  69. print str_replace("\r", "", PHP_EOL.PHP_EOL."Success Verifikasi!".PHP_EOL);
  70. return false;
  71. }
  72. }else{
  73. print "\rSabar.. ".$a." Sec...";
  74. if($a == 20)
  75. {
  76. print PHP_EOL."Silahkan Verifikasi Manual : ".$linkActivasi.PHP_EOL;
  77. $this->fwrites("verifManual.txt", $linkActivasi.PHP_EOL);
  78. return false;
  79. }
  80. }
  81. }else{
  82. print "\r\rFailed Verifikasi!".PHP_EOL;
  83. }
  84. }
  85. }
  86. }
  87.  
  88. class tempMail extends modules
  89. {
  90.  
  91. protected $mailName;
  92. protected $domain = "guerrillamail.com";
  93.  
  94. public function __construct($mailName)
  95. {
  96. $this->mailName = $mailName;
  97. }
  98.  
  99. protected function getIpToken()
  100. {
  101. $apiToken = $this->getStr($this->curl("https://www.guerrillamail.com", null, false, false, array(), 'GET'), 'api_token : \'', '\'', 1, 0);
  102. return $apiToken;
  103. }
  104.  
  105. private function createMail($mailName, $PHPSESSID)
  106. {
  107. $domain = $this->domain;
  108. $headers = array();
  109. $headers[] = "Authorization: ApiToken ".$this->getIpToken();
  110. $headers[] = "Content-Type: application/x-www-form-urlencoded; charset=UTF-8";
  111. $headers[] = "Cookie: PHPSESSID=".$PHPSESSID."; __cfduid=d7ce4997ba4fe3d0b677434d8e17e73fe1554249274; _ga=GA1.2.1939465402.1554249275; _gid=GA1.2.263874565.1554249275";
  112. $headers[] = "Host: www.guerrillamail.com";
  113. $headers[] = "Origin: https://www.guerrillamail.com";
  114. $headers[] = "Referer: https://www.guerrillamail.com/inbox";
  115. $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";
  116. $headers[] = "X-Requested-With: XMLHttpRequest";
  117. $createMail = $this->curl("https://www.guerrillamail.com/ajax.php?f=set_email_user", "email_user=".$mailName."&lang=en&site=".$domain."&in=+Set+cancel", false, true, $headers);
  118. return $createMail;
  119. }
  120.  
  121. private function pageInbox($mailName, $PHPSESSID)
  122. {
  123. for($a=1;$a<=50;$a++)
  124. {
  125. $headers = array();
  126. $headers[] = "Authorization: ApiToken ".$this->getIpToken();
  127. $headers[] = "Content-Type: application/x-www-form-urlencoded; charset=UTF-8";
  128. $headers[] = "Cookie: PHPSESSID=".$PHPSESSID."; __cfduid=d7ce4997ba4fe3d0b677434d8e17e73fe1554249274; _ga=GA1.2.1939465402.1554249275; _gid=GA1.2.263874565.1554249275";
  129. $headers[] = "Host: www.guerrillamail.com";
  130. $headers[] = "Origin: https://www.guerrillamail.com";
  131. $headers[] = "Referer: https://www.guerrillamail.com/inbox";
  132. $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";
  133. $headers[] = "X-Requested-With: XMLHttpRequest";
  134. $pageInbox = $this->curl("https://www.guerrillamail.com/inbox", null, false, false, $headers, 'GET');
  135. $this->curl("https://www.guerrillamail.com/ajax.php?f=check_email&seq=1&site=".$this->domain."&in=".$mailName."&_=".time(), null, false, false, $headers, 'GET');
  136. if(preg_match('/Confirmation needed: Your BIGtoken email address/', $pageInbox) or strpos($pageInbox, 'Confirmation needed: Your BIGtoken email address') or preg_match('/Big Token/i', $pageInbox) or strpos($pageInbox, 'BIGToken') or preg_match('/BIGToken/', $pageInbox) or preg_match('/BIG Token/', $pageInbox))
  137. {
  138. @$linkMail = $this->getStr($pageInbox, '<a rel="nofollow" href="', '"', 1, 0);
  139. if(!empty($linkMail))
  140. {
  141. return "https://www.guerrillamail.com".$linkMail;
  142. }else{
  143. print "\r\rLink Mail Not found";
  144. }
  145. }else{
  146. print "\r\r\rEmail Belum Masuk!.. ".$a." Sec...";
  147. if($a == 50)
  148. {
  149. print PHP_EOL."Next...".PHP_EOL;
  150. return false;
  151. }
  152. }
  153. }
  154. }
  155.  
  156. private function getLinkActivasi($url, $PHPSESSID)
  157. {
  158. $headers[] = "Authorization: ApiToken ".$this->getIpToken();
  159. $headers[] = "Content-Type: application/x-www-form-urlencoded; charset=UTF-8";
  160. $headers[] = "Cookie: PHPSESSID=".$PHPSESSID."; __cfduid=d7ce4997ba4fe3d0b677434d8e17e73fe1554249274; _ga=GA1.2.1939465402.1554249275; _gid=GA1.2.263874565.1554249275";
  161. $headers[] = "Host: www.guerrillamail.com";
  162. $headers[] = "Origin: https://www.guerrillamail.com";
  163. $headers[] = "Referer: https://www.guerrillamail.com/inbox";
  164. $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";
  165. $headers[] = "X-Requested-With: XMLHttpRequest";
  166. $getLinkActivasi = $this->curl($url, null, false, false, $headers, 'GET');
  167. @$linkActivasi = $this->getStr($getLinkActivasi, '<br><a href="', '">', 1, 0);
  168. if(!empty($linkActivasi))
  169. {
  170. return $linkActivasi;
  171. }else{
  172. print "Link Activasi Tidak Ada!";
  173. }
  174. }
  175.  
  176. public function temporraryMail()
  177. {
  178. $mailName = $this->mailName;
  179. $PHPSESSID = $this->randStr("huruf_angka", "20");
  180. $createMail = $this->createMail($mailName, $PHPSESSID);
  181. if(strpos($createMail, '"success":true'))
  182. {
  183. $pageInbox = $this->pageInbox($mailName, $PHPSESSID);
  184. if(strpos($pageInbox, 'https://www.guerrillamail.com/') or preg_match('/www.guerrillamail.com/i', $pageInbox))
  185. {
  186. $getLinkActivasi = $this->getLinkActivasi($pageInbox, $PHPSESSID);
  187. return $getLinkActivasi;
  188. }else{
  189. print $pageInbox;
  190. }
  191. }else{
  192. return "Failed Create Email";
  193. }
  194. }
  195. }
  196.  
  197. class modules
  198. {
  199. public function curl($url, $params, $cookie, $header, $httpheaders, $request = 'POST', $socks = "")
  200. {
  201. $this->ch = curl_init();
  202.  
  203. curl_setopt($this->ch, CURLOPT_URL, $url);
  204. curl_setopt($this->ch, CURLOPT_POSTFIELDS, $params);
  205. curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, 0);
  206. curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);
  207. curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, 1);
  208.  
  209. curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, $request);
  210.  
  211. if($cookie == true)
  212. {
  213. $cookies = tempnam('/tmp','cookie.txt');
  214. curl_setopt($this->ch, CURLOPT_COOKIEJAR, $cookies);
  215. curl_setopt($this->ch, CURLOPT_COOKIEFILE, $cookies);
  216. }
  217.  
  218. curl_setopt($this->ch, CURLOPT_HEADER, $header);
  219. @curl_setopt($this->ch, CURLOPT_HTTPHEADER, $httpheaders);
  220.  
  221. curl_setopt($this->ch, CURLOPT_HTTPPROXYTUNNEL, 1);
  222. curl_setopt($this->ch, CURLOPT_PROXY, $socks);
  223. curl_setopt($this->ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
  224.  
  225. curl_setopt($this->ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
  226. $response = curl_exec($this->ch);
  227. return $response;
  228. curl_close($this->ch);
  229. }
  230.  
  231.  
  232. public function getStr($page, $str1, $str2, $line_str2, $line)
  233. {
  234. $get = explode($str1, $page);
  235. $get2 = explode($str2, $get[$line_str2]);
  236. return $get2[$line];
  237. }
  238.  
  239. public function randStr($type, $length)
  240. {
  241. $characters = array();
  242. $characters['angka'] = '0123456789';
  243. $characters['kapital'] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
  244. $characters['huruf'] = 'abcdefghijklmnopqrstuvwxyz';
  245. $characters['kapital_angka'] = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
  246. $characters['huruf_angka'] = '0123456789abcdefghijklmnopqrstuvwxyz';
  247. $characters['all'] = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  248. $charactersLength = strlen($characters[$type]);
  249. $randomString = '';
  250.  
  251. for ($i = 0; $i < $length; $i++)
  252. {
  253. $randomString .= $characters[$type][rand(0, $charactersLength - 1)];
  254. }
  255.  
  256. return $randomString;
  257.  
  258. }
  259.  
  260. public function randNama()
  261. {
  262. $get = file_get_contents("https://api.randomuser.me");
  263. $j = json_decode($get, true);
  264. $first = $j['results'][0]['name']['first'];
  265. $last = $j['results'][0]['name']['last'];
  266. $nama = $first .$last.$this->randStr('huruf_angka','2');
  267. $rand = rand(00000,99999);
  268. $domain = array("@gmail.com","@yahoo.com","@hotmail.co.id");
  269. $email = $first.$last.$this->randStr("all", "2").$domain[rand(0, 2)];
  270. $nomorhp = "+628".$this->randStr('angka','10')."";
  271. $password = $first.$this->randStr('huruf_angka','6');
  272. if(empty($first) or empty($last))
  273. {
  274. $this->randNama();
  275. }else{
  276. return array("first" => $first, "last" => $last, "nama" => $nama, "email" => $email, "nope" => $nomorhp, "password" => $password);
  277. }
  278. }
  279.  
  280. public function fwrites($namafile, $data)
  281. {
  282. $fh = fopen($namafile, "a");
  283. fwrite($fh, $data);
  284. fclose($fh);
  285. }
  286.  
  287. public function fetchLocation($source)
  288. {
  289. preg_match_all('/^Location:\s*([^;]*)/mi', $source, $matches);
  290. $cookies = array();
  291. foreach($matches[1] as $item)
  292.  
  293. {
  294. parse_str($item, $cookie);
  295. $cookies = array_merge($cookies, $cookie);
  296. }
  297.  
  298. return $cookies;
  299. }
  300. }
  301.  
  302.  
  303. $bigToken = new bigToken();
  304. //$tempMail = new tempMail("asspakhaji69");
  305. $modules = new modules();
  306.  
  307. echo "[?] Referral Code : ";
  308. $referralCode = trim(fgets(STDIN));
  309. echo "[?] Jumlah : ";
  310. $jumlah = trim(fgets(STDIN));
  311.  
  312. for($a=1;$a<=$jumlah;$a++)
  313. {
  314. print $bigToken->registerAccount($referralCode);
  315. }
  316.  
  317. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement