forked from dowerarts/dowerarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gojek.php
147 lines (138 loc) · 5.37 KB
/
gojek.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?php
#AUTO CLAIM VOC GOJEK + tf 1rp
#MASUKIN AKUN YANG UDAH VERIF
#Created By Alip Dzikri X Apri AMsyah
#####################################
$secret = '83415d06-ec4e-11e6-a41b-6c40088ab51e';
$headers = array();
$headers[] = 'Content-Type: application/json';
$headers[] = 'X-AppVersion: 3.27.0';
$headers[] = "X-Uniqueid: ac94e5d0e7f3f".rand(111,999);
$headers[] = 'X-Location: -6.405821,106.064193';
echo "Nomer HP Akun Utama: ";
$number = trim(fgets(STDIN));
$numbers = $number[0].$number[1];
$numberx = $number[5];
if($numbers == "08") {
$number = str_replace("08","628",$number);
}
$login = curl('https://api.gojekapi.com/v3/customers/login_with_phone', '{"phone":"+' . $number . '"}', $headers);
$logins = json_decode($login[0]);
if($logins->success == true) {
echo "OTP: ";
$otp = trim(fgets(STDIN));
$data1 = '{"scopes":"gojek:customer:transaction gojek:customer:readonly","grant_type":"password","login_token":"' . $logins->data->login_token . '","otp":"' . $otp . '","client_id":"gojek:cons:android","client_secret":"' . $secret . '"}';
$verif = curl('https://api.gojekapi.com/v3/customers/token', $data1, $headers);
$verifs = json_decode($verif[0]);
if($verifs->success == true) {
$token = $verifs->data->access_token;
echo "Token: ".$token;
echo "\n";
echo "\n";
} else {
die("OTP salah goblok!");
}
} else {
die("ERROR - Nomer belum kedaftar goblok / Tunggu 15 Menit");
}
echo "Pin Akun Utama : ";
$pin = trim(fgets(STDIN));
echo "[+] Nomer Yang Ingin Di Claim : ";
$number = trim(fgets(STDIN));
$numbers = $number[0].$number[1];
$numberx = $number[5];
if($numbers == "08") {
$number = str_replace("08","628",$number);
} elseif ($numberx == " ") {
$number = preg_replace("/[^0-9]/", "",$number);
$number = "1".$number;
}
$nama = nama();
$email = strtolower(str_replace(" ", "", $nama) . mt_rand(100,999) . "@gmail.com");
$data1 = '{"name":"' . $nama . '","email":"' . $email . '","phone":"+' . $number . '","signed_up_country":"ID"}';
$reg = curl('https://api.gojekapi.com/v5/customers', $data1, $headers);
$regs = json_decode($reg[0]);
// Verif OTP
if($regs->success == true) {
echo "[+] OTP: ";
$otp = trim(fgets(STDIN));
$data2 = '{"client_name":"gojek:cons:android","data":{"otp":"' . $otp . '","otp_token":"' . $regs->data->otp_token . '"},"client_secret":"' . $secret . '"}';
$verif = curl('https://api.gojekapi.com/v5/customers/phone/verify', $data2, $headers);
$verifs = json_decode($verif[0]);
if($verifs->success == true) {
// Claim Voucher
$token = $verifs->data->access_token;
$headers[] = 'Authorization: Bearer '.$token;
$live = "token-accounts.txt";
$fopen1 = fopen($live, "a+");
$fwrite1 = fwrite($fopen1, "TOKEN => ".$token." \n NOMOR => ".$number." \n");
fclose($fopen1);
echo "[+] File Token saved in ".$live." \n";
echo "[+]Process Redeem GOFOODBOBA07 \n";
$data3 = '{"promo_code":"GOFOODBOBA07"}';
$claim = curl('https://api.gojekapi.com/go-promotions/v1/promotions/enrollments', $data3, $headers);
$claims = json_decode($claim[0]);
echo $claims->data->message;
echo "\n";
sleep(3);
echo "[+]Process Redeem COBAINGOJEK \n";
$data4 = '{"promo_code":"COBAINGOJEK"}';
$claim1 = curl('https://api.gojekapi.com/go-promotions/v1/promotions/enrollments', $data4, $headers);
$claims1 = json_decode($claim1[0]);
echo $claims1->data->message;
sleep(3);
echo "[+]Process TF 1rp \n";
$getqrid = curl('https://api.gojekapi.com/wallet/qr-code?phone_number=%2B'.$number.'', null, $headers);
$jsqrid = json_decode($getqrid[0]);
$qrid = $jsqrid->data->qr_id;
$headertf = array();
$headertf[] = 'Content-Type: application/json';
$headertf[] = 'X-AppVersion: 3.27.0';
$headertf[] = "X-Uniqueid: ac94e5d0e7f3f".rand(111,999);
$headertf[] = 'X-Location: -6.405821,106.64193';
$headertf[] ='Authorization: Bearer '.$token;
$headertf[] = 'pin:'.$pin.'';
$tf = curl('https://api.gojekapi.com/v2/fund/transfer', '{"amount":"1","description":"DowerGanteng ","qr_id":"'.$qrid.'"}', $headertf);
$jstf = json_decode($tf[0]);
if($jstf->status == "1"){
echo "[+]SUKSES TF";
} else {
print_r($jstf);
}
}
}
function nama()
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://ninjaname.horseridersupply.com/indonesian_name.php");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$ex = curl_exec($ch);
// $rand = json_decode($rnd_get, true);
preg_match_all('~(• (.*?)<br/>• )~', $ex, $name);
return $name[2][mt_rand(0, 14) ];
}
function curl($url, $fields = null, $headers = null)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
if ($fields !== null) {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
}
if ($headers !== null) {
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
}
$result = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
return array(
$result,
$httpcode
);
}