-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcall.php
112 lines (96 loc) · 3.45 KB
/
call.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
<?php
//banner
system("clear");
echo banner();
echo " [?] Lanjutkan (Y/n) >> ";
$n = trim(fgets(STDIN));
$n = strtolower($n);
if($n == 'n') exit("\n [!] LABIL LU !? [!]\n\n");
//list nomor
$no = array_unique(explode("\n",str_replace("\r","",file_get_contents("no.txt"))));
jumlah:
echo " [?] [MAX 20] Jumlah >> ";
$jumlah = trim(fgets(STDIN));
if($jumlah > 20){
echo "\n\n[!] MAX 20, BUTA LU YA ? [!]\n\n";
goto jumlah;
}else{
echo "\n\n";
//count
$s = 0;
$f = 0;
$l = 0;
$total = count($no);
echo " [!] Total $total nomor [!]\n\n";
//looping
for ($i = 0; $i < $jumlah; $i++) {
foreach ($no as $nomor){
for ($i = 0; $i < 1; $i++) {
//delay1
sleep(1);
//api
$url = "https://api.banditcoding.xyz/prank/bomcall/?no=$nomor";
//curl
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'content-type: application/json',
'accept: application/json, text/plain, */*'));
$ok = curl_exec($ch);
curl_close($ch);
//response
if(strpos($ok, '"msg":"success call to 0'.$nomor.'"')){
$s++;
echo "[".jam()."] Success call to 0$nomor".PHP_EOL;
}elseif(strpos($ok, '"msg":"failed call to 0'.$nomor.'"')){
$l++;
echo "[".jam()."] Limit call to 0$nomor".PHP_EOL;
}elseif(strpos($ok, '"msg":"invalid parameter"')){
echo "\n\n[!] INVALID PARAMETER [!]\n\n";
exit();
}else{
$f++;
echo "[".jam()."] Error call to 0$nomor".PHP_EOL;
}
}
//delay2
sleep(10);
}
}
}
//result
echo "
______________
| [!] INFO [!] |
============================
[-] Success call $s X [-]
[-] Limit call $l X [-]
[-] Error call $f X [-]
============================
[!] Delay 10 sec [!]
[!] CTRL + Z for exit [!]\n";
function banner(){
date_default_timezone_set("Asia/Jakarta");
$date = date("l, d-m-Y (H:m:s)");
$banner = "
▄▄▄▄· • ▌ ▄ ·. ▄▄· ▄▄▄· ▄▄▌ ▄▄▌
▐█ ▀█▪▪ ·██ ▐███▪ ▐█ ▌▪▐█ ▀█ ██• ██•
▐█▀▀█▄ ▄█▀▄ ▐█ ▌▐▌▐█· ██ ▄▄▄█▀▀█ ██▪ ██▪
██▄▪▐█▐█▌.▐▌██ ██▌▐█▌ ▐███▌▐█ ▪▐▌▐█▌▐▌▐█▌▐▌
·▀▀▀▀ ▀█▄▀▪▀▀ █▪▀▀▀ ·▀▀▀ ▀ ▀ .▀▀▀ .▀▀▀
------------------------------------------------------
Author : Zlaxtert
Version : 1.2.0
Date Now : $date
------------------------------------------------------
[*] Note: Limit 1/number delay 10 sec/number [*]
";
return $banner;
}
function jam(){
date_default_timezone_set("Asia/Jakarta");
$jam = date("H:m:s");
return $jam;
}