· 6 years ago · Dec 13, 2019, 10:30 AM
1<?php
2$secret = '83415d06-ec4e-11e6-a41b-6c40088ab51e';
3$headers = array();
4$headers[] = 'Content-Type: application/json';
5$headers[] = 'X-AppVersion: 3.27.0';
6$headers[] = "X-Uniqueid: ac94e5d0e7f3f".rand(111,999);
7$headers[] = 'X-Location: -6.405821,106.064193';
8
9 echo "\n";
10 echo "\e[92m--------------------------------------------------\n";
11 echo "\e[31m| NOT SAFE FOR WORK IF 02 |\n";
12 echo "\e[35m| Recode doesn't make you a pro |\n";
13 echo "\e[32m| Thanks to Netwezen Revolution |\n";
14 echo "\e[33m| Author : Sibirubah |\n";
15 echo "\e[92m--------------------------------------------------\n";
16 echo "\n";
17 ulang:
18 echo "\e[96m[+] Masukkan Nomor HP [62 / 1] : ";
19 $number = trim(fgets(STDIN));
20 $numbers = $number[0].$number[1];
21 $numberx = $number[5];
22 if($numbers == "08") {
23 $number = str_replace("08","628",$number);
24 } elseif ($numberx == " ") {
25 $number = preg_replace("/[^0-9]/", "",$number);
26 $number = "1".$number;
27 }
28 $nama = nama();
29 $nama1 = 'Ardy';
30 $email = strtolower(str_replace(" ", "", $nama) . mt_rand(100,999) . "@gmail.com");
31 $data1 = '{"name":"' . $nama1 . '","email":"' . $email . '","phone":"+' . $number . '","signed_up_country":"ID"}';
32 $reg = curl('https://api.gojekapi.com/v5/customers', $data1, $headers);
33 $regs = json_decode($reg[0]);
34 if($regs->success == true) {
35 otp:
36 echo "\e[93m[+] Input OTP : ";
37 $otp = trim(fgets(STDIN));
38 $data2 = '{"client_name":"gojek:cons:android","data":{"otp":"' . $otp . '","otp_token":"' . $regs->data->otp_token . '"},"client_secret":"' . $secret . '"}';
39 $verif = curl('https://api.gojekapi.com/v5/customers/phone/verify', $data2, $headers);
40 $verifs = json_decode($verif[0]);
41 if($verifs->success == true) {
42 $token = $verifs->data->access_token;
43 $headers[] = 'Authorization: Bearer '.$token;
44 $live = "tokens.txt";
45 $fopen1 = fopen($live, "a+");
46 $fwrite1 = fwrite($fopen1, "TOKEN => ".$token." \n NOMOR => ".$number." \n");
47 fclose($fopen1);
48 echo "Token ~> ".$token." \n";
49 echo "\e[92m[+] Token Tersimpan di ~> ".$live." \n\n";
50
51echo "\e[96m[!] Mencoba Reedem Voucher 20 : WADAWGOJEK \n";
52$data3 = '{"promo_code":"WADAWGOJEK"}';
53$claim = curl('https://api.gojekapi.com/go-promotions/v1/promotions/enrollments', $data3, $headers);
54$claims = json_decode($claim[0]);
55if($claims->success == true)
56{
57$live2 = "voucher_wadaw.txt";
58$fopen2 = fopen($live2, "a+");
59$fwrite2 = fwrite($fopen2, "TOKEN => ".$token." \n");
60fclose($fopen2);
61echo "\e[92m [✓]".$claims->data->message." [•] Token Tersimpan di ~> ".$live2;
62}
63else
64{
65echo "\e[91m [×] Gagal Claim Voucer !";
66sleep(5);
67echo "\n";
68
69echo "\e[96m[!] Mencoba Reedem Voucher 15+10 : GOFOODSANTAI11 \n";
70$data4 = '{"promo_code":"GOFOODSANTAI11"}';
71$claim1 = curl('https://api.gojekapi.com/go-promotions/v1/promotions/enrollments', $data4, $headers);
72$claims1 = json_decode($claim1[0]);
73if($claims1->success == true)
74{
75$live3 = "voucher_santai11.txt";
76$fopen3 = fopen($live3, "a+");
77$fwrite3 = fwrite($fopen3, "TOKEN => ".$token." \n");
78fclose($fopen3);
79echo "\e[92m [✓]".$claims1->data->message." [•] Tersimpan di ~> ".$live3;
80} else
81{
82echo "\e[91m [×] Gagal Claim Voucer !";
83sleep(5);
84echo "\n";
85 echo "\e[96m[!] Mencoba Redeem Voucher 10+10 : GOFOODSANTAI08 \n";
86 $data5 = '{"promo_code":"GOFOODSANTAI08"}';
87 $claim2 = curl('https://api.gojekapi.com/go-promotions/v1/promotions/enrollments', $data5, $headers);
88 $claims2 = json_decode($claim2[0]);
89 if($claims2->success == true)
90 {
91$live4 = "voucher_santai08.txt";
92$fopen4 = fopen($live4, "a+");
93$fwrite4 = fwrite($fopen4, "TOKEN => ".$token." \n");
94fclose($fopen4);
95echo "\e[92m [✓]".$claims2->data->message." [•] Tersimpan di ~> ".$live4;
96 } else
97 {
98echo "\e[91m [×] Gagal Claim Voucer !";
99}
100}
101}
102 sleep(5);
103 echo "\n";
104 echo "\e[96m[!] Mencoba Redeem Vocher : COBAINGOJEK \n";
105 $data6 = '{"promo_code":"COBAINGOJEK"}';
106 $claim3 = curl('https://api.gojekapi.com/go-promotions/v1/promotions/enrollments', $data6, $headers);
107 $claims3 = json_decode($claim3[0]);
108 if($claims3->success == true)
109 {
110 echo "\e[92m [✓]".$claims3->data->message;
111 } else
112 {
113 echo "\e[91m [×] Gagal Claim Voucer !";
114
115 }
116 sleep(5);
117 echo "\n";
118 echo "\e[96m[+] Mencoba Redeem Vocher : AYOCOBAGOJEK \n";
119 $data7 = '{"promo_code":"AYOCOBAGOJEK"}';
120 $claim4 = curl('https://api.gojekapi.com/go-promotions/v1/promotions/enrollments', $data7, $headers);
121 $claims4 = json_decode($claim4[0]);
122 if($claims4->success == true)
123 {
124 echo "\e[92m [✓]".$claims4->data->message;
125 } else
126 {
127 echo "\e[91m [×] Gagal Claim Voucer !";
128 }
129 sleep(5);
130 echo "\n";
131
132 $cekvoucher = request('/gopoints/v3/wallet/vouchers?limit=10&page=1', $token);
133 $total = fetch_value($cekvoucher,'"total_vouchers":',',');
134 $voucher3 = getStr1('"title":"','",',$cekvoucher,"3");
135 $voucher1 = getStr1('"title":"','",',$cekvoucher,"1");
136 $voucher2 = getStr1('"title":"','",',$cekvoucher,"2");
137 $voucher4 = getStr1('"title":"','",',$cekvoucher,"4");
138 $voucher5 = getStr1('"title":"','",',$cekvoucher,"5");
139 $voucher6 = getStr1('"title":"','",',$cekvoucher,"6");
140 $voucher7 = getStr1('"title":"','",',$cekvoucher,"7");
141
142
143 $expired1 = getStr1('"expiry_date":"','"',$cekvoucher,'1');
144 $expired2 = getStr1('"expiry_date":"','"',$cekvoucher,'2');
145 $expired3 = getStr1('"expiry_date":"','"',$cekvoucher,'3');
146 $expired4 = getStr1('"expiry_date":"','"',$cekvoucher,'4');
147 $expired5 = getStr1('"expiry_date":"','"',$cekvoucher,'5');
148 $expired6 = getStr1('"expiry_date":"','"',$cekvoucher,'6');
149 $expired7 = getStr1('"expiry_date":"','"',$cekvoucher,'7');
150
151
152 echo "\n".color("yellow","!] Total voucher ".$total." : ");
153 echo "\n".color("green","1] ".$voucher1);
154 echo "\n".color("red"," EXP ~> ".$expired1);
155 echo "\n".color("green","2] ".$voucher2);
156 echo "\n".color("red"," EXP ~> ".$expired2);
157 echo "\n".color("green","3] ".$voucher3);
158 echo "\n".color("red"," EXP ~> ".$expired3);
159 echo "\n".color("green","4] ".$voucher4);
160 echo "\n".color("red"," EXP ~> ".$expired4);
161 echo "\n".color("green","5] ".$voucher5);
162 echo "\n".color("red"," EXP ~> ".$expired5);
163 echo "\n".color("green","6] ".$voucher6);
164 echo "\n".color("red"," EXP ~> ".$expired6);
165 echo "\n".color("green","7] ".$voucher7);
166 echo "\n".color("red"," EXP ~> ".$expired7);
167 echo"\n";
168
169}else
170 {
171 echo color("red","[×] Otp yang anda input salah");
172 echo"\n==================================\n\n";
173 echo color("yellow","[!] Silahkan input kembali\n");
174 goto otp;
175 }
176
177 } else
178 {
179 echo color("red","[×] Nomor sudah teregistrasi");
180 echo"\n==================================\n\n";
181 echo color("yellow","[!] Silahkan registrasi kembali\n");
182 goto ulang;
183 }
184
185
186
187
188function request($url, $token = null, $data = null, $pin = null, $otpsetpin = null, $uuid = null)
189 {
190
191 $header[] = "Host: api.gojekapi.com";
192 $header[] = "User-Agent: okhttp/3.10.0";
193 $header[] = "Accept: application/json";
194 $header[] = "Accept-Language: id-ID";
195 $header[] = "Content-Type: application/json; charset=UTF-8";
196 $header[] = "X-AppVersion: 3.30.2";
197 $header[] = "X-UniqueId: ".time()."57".mt_rand(1000,9999);
198 $header[] = "Connection: keep-alive";
199 $header[] = "X-User-Locale: id_ID";
200 $header[] = "X-Location: -6.917464,107.619122";
201 $header[] = "X-Location-Accuracy: 3.0";
202 if ($pin):
203 $header[] = "pin: $pin";
204 endif;
205 if ($token):
206 $header[] = "Authorization: Bearer $token";
207 endif;
208 if ($otpsetpin):
209 $header[] = "otp: $otpsetpin";
210 endif;
211 if ($uuid):
212 $header[] = "User-uuid: $uuid";
213 endif;
214 $c = curl_init("https://api.gojekapi.com".$url);
215 curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
216 curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
217 if ($data):
218 curl_setopt($c, CURLOPT_POSTFIELDS, $data);
219 curl_setopt($c, CURLOPT_POST, true);
220 endif;
221 curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
222 curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
223 curl_setopt($c, CURLOPT_HEADER, true);
224 curl_setopt($c, CURLOPT_HTTPHEADER, $header);
225 $response = curl_exec($c);
226 $httpcode = curl_getinfo($c);
227 if (!$httpcode)
228 return false;
229 else {
230 $header = substr($response, 0, curl_getinfo($c, CURLINFO_HEADER_SIZE));
231 $body = substr($response, curl_getinfo($c, CURLINFO_HEADER_SIZE));
232 }
233 $json = json_decode($body, true);
234 return $body;
235 }
236
237function getStr($a,$b,$c)
238 {
239 $a = @explode($a,$c)[1];
240 return @explode($b,$a)[0];
241 }
242
243function getStr1($a,$b,$c,$d)
244 {
245 $a = @explode($a,$c)[$d];
246 return @explode($b,$a)[0];
247 }
248
249function color($color = "default" , $text)
250 {
251 $arrayColor = array(
252 'grey' => '1;30',
253 'red' => '1;31',
254 'green' => '1;32',
255 'yellow' => '1;33',
256 'blue' => '1;34',
257 'purple' => '1;35',
258 'nevy' => '1;36',
259 'white' => '1;0',
260 );
261 return "\033[".$arrayColor[$color]."m".$text."\033[0m";
262 }
263
264function fetch_value($str,$find_start,$find_end)
265 {
266 $start = @strpos($str,$find_start);
267 if ($start === false) {
268 return "";
269 }
270 $length = strlen($find_start);
271 $end = strpos(substr($str,$start +$length),$find_end);
272 return trim(substr($str,$start +$length,$end));
273 }
274
275function nama()
276 {
277 $ch = curl_init();
278 curl_setopt($ch, CURLOPT_URL, "http://ninjaname.horseridersupply.com/indonesian_name.php");
279 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
280 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
281 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
282 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
283 $ex = curl_exec($ch);
284 // $rand = json_decode($rnd_get, true);
285 preg_match_all('~(• (.*?)<br/>• )~', $ex, $name);
286 return $name[2][mt_rand(0, 14) ];
287 }
288
289function curl($url, $fields = null, $headers = null)
290 {
291 $ch = curl_init();
292 curl_setopt($ch, CURLOPT_URL, $url);
293 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
294 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
295 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
296 if ($fields !== null) {
297 curl_setopt($ch, CURLOPT_POST, 1);
298 curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
299 }
300 if ($headers !== null) {
301 curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
302 }
303 $result = curl_exec($ch);
304 $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
305 curl_close($ch);
306
307 return array(
308 $result,
309 $httpcode
310 );
311 }