· 6 years ago · Sep 07, 2019, 10:24 AM
1<?php
2error_reporting(0);
3//created By Alip Dzikri
4$alip = "alip123$";
5// Header
6$secret = '83415d06-ec4e-11e6-a41b-6c40088ab51e';
7$headers = array();
8$headers[] = 'Content-Type: application/json';
9$headers[] = 'X-AppVersion: 3.27.0';
10$headers[] = "X-Uniqueid: ac94e5d0e7f3f".rand(111,999);
11$headers[] = 'X-Location: -6.405821,106.064193';
12
13// MENU
14
15echo "Auto Regis + AUTOPAY GPC 20K USE 100% CB \n ";
16echo "enter password : ";
17$pass = trim(fgets(STDIN));
18if($pass == "$alip"){
19
20 echo " NOMOR : ";
21 $number = trim(fgets(STDIN));
22 $numbers = $number[0].$number[1];
23 $numberx = $number[5];
24 if($numbers == "08") {
25 $number = str_replace("08","628",$number);
26 } elseif ($numberx == " ") {
27 $number = preg_replace("/[^0-9]/", "",$number);
28 $number = "1".$number;
29 }
30 $nama = nama();
31 $email = strtolower(str_replace(" ", "", $nama) . mt_rand(100,999) . "@gmail.com");
32 $data1 = '{"name":"' . $nama . '","email":"' . $email . '","phone":"+' . $number . '","signed_up_country":"ID"}';
33 $reg = curl('https://api.gojekapi.com/v5/customers', $data1, $headers);
34 $regs = json_decode($reg[0]);
35 // Verif OTP
36 if($regs->success == true) {
37 echo " OTP: ";
38 $otp = trim(fgets(STDIN));
39 $data2 = '{"client_name":"gojek:cons:android","data":{"otp":"' . $otp . '","otp_token":"' . $regs->data->otp_token . '"},"client_secret":"' . $secret . '"}';
40 $verif = curl('https://api.gojekapi.com/v5/customers/phone/verify', $data2, $headers);
41 $verifs = json_decode($verif[0]);
42 if($verifs->success == true) {
43 // Claim Voucher
44 $token = $verifs->data->access_token;
45 $headers[] = 'Authorization: Bearer '.$token;
46 $data3 = '{"promo_code":"SERIUSMAIN"}';
47 $claim = curl('https://api.gojekapi.com/go-promotions/v1/promotions/enrollments', $data3, $headers);
48 $claims = json_decode($claim[0]);
49
50 if ($claims->success == true) {
51 echo $claims->data->message;
52 } else {
53 die("gagal claim voc");
54 }
55 echo "\n";
56 echo "Silahkan TF Gopay 22k Ke akun Tumbal. Sudah TF ? Y or N : ";
57 $konfir = trim(fgets(STDIN));
58 $body4 = '{"pin":"100678"}';
59 if($konfir == y){
60 echo "Proccess Set PIN \n";
61 sleep(5);
62 $getotp = curl('https://api.gojekapi.com/wallet/pin', $body4, $headers);
63 $pp = json_decode($getotp[0]);
64 echo $pp->data->message;
65 echo "OTP SET PIN : ";
66 $otp2 = trim(fgets(STDIN));
67$headers[] = 'otp:'.$otp2;
68$vpin = curl('https://api.gojekapi.com/wallet/pin', $body4, $headers);
69$vpim = json_decode($vpin[0]);
70if($vpim->success == true){
71 echo "Sukses Verif Pin \n";
72 echo "Proccess Buy GPC \n";
73 $body3 = '{"biller_tag":"GOO_WALLET","denomination_tag":"GOO_20K","input":{},"promotions_enabled":true}';
74 $getid = curl('https://api.gojekapi.com/gobills-form/v1/inquire', $body3, $headers);
75 $geta = json_decode($getid[0]);
76$promoid = $geta->data->meta_data->promotion->recommended_promotion_id;
77 $inquiry = $geta->data->meta_data->inquiry_id;
78echo "Promo id : ";
79 echo $promoid;
80echo "\n Proses membeli ITEM \n";
81$body5 = '{"inquiryId":"'.$inquiry.'","paymentToken":"eyJ0eXBlIjoiR09QQVlfV0FMTEVUIiwiaWQiOiIifQ==","pin":"100678","productTag":"GOO_WALLET","promotionId":"'.$promoid.'","requestId":"7d2d0535-0732-4eec-a43b-'.rand(11,99).'o3d'.rand(25,50).'btc'.rand(80,99).'"}';
82 $buygpc = curl('https://api.gojekapi.com/gobills/v3/payment', $body5, $headers);
83 $jsgpc = json_decode($buygpc[0]);
84 if($jsgpc->success == true){
85 echo "\n Sukses Buy GPC 20K ";
86 sleep(7); //created by alip
87 $beligpc = curl('https://api.gojekapi.com/gobills/v3/history?pageNumber=1&pageSize=20', null, $headers);
88 $getgpc = json_decode($beligpc[0]);
89 echo "\n";
90 $gpcnya = $getgpc->data->bills[0]->context->redemptionAccountNumber;
91 echo "\n KODE GPC LO : ";
92 echo $gpcnya;
93 echo "\n";
94 echo "thank you";
95 } else{
96 die("\n SALDO LO G CUKUP ");
97 }
98 } else{
99 die("\n otp pin salah");
100 }
101 } else {
102 die("\n Exit \n");
103 }
104 } else {
105 die("OTP Salah ");
106 }
107 } else {
108 die("Nomor sudah di regis");
109 }
110 } else {
111die("Salah Pass mu cok");
112}
113function nama()
114 {
115 $ch = curl_init();
116 curl_setopt($ch, CURLOPT_URL, "http://ninjaname.horseridersupply.com/indonesian_name.php");
117 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
118 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
119 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
120 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
121 $ex = curl_exec($ch);
122 // $rand = json_decode($rnd_get, true);
123 preg_match_all('~(• (.*?)<br/>• )~', $ex, $name);
124 return $name[2][mt_rand(0, 14) ];
125 }
126
127function curl($url, $fields = null, $headers = null)
128 {
129 $ch = curl_init();
130 curl_setopt($ch, CURLOPT_URL, $url);
131 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
132 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
133 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
134 if ($fields !== null) {
135 curl_setopt($ch, CURLOPT_POST, 1);
136 curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
137 }
138 if ($headers !== null) {
139 curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
140 }
141 $result = curl_exec($ch);
142 $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
143 curl_close($ch);
144
145 return array(
146 $result,
147 $httpcode
148 );
149 }