Advertisement
Guest User

Untitled

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