-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path4.php
More file actions
19 lines (19 loc) · 771 Bytes
/
Copy path4.php
File metadata and controls
19 lines (19 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
// Limit 3x Telpon Setiap Satu Nomor
function send($phone){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.tokocash.com/oauth/otp"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "msisdn=$phone&accept=call"); $asw = curl_exec($ch);
curl_close($ch);
echo $asw."\n";
}
echo "COPYRIGHT ; SGBTEAM\n\n";
echo "Nomor\nInput : ";
$nomor = trim(fgets(STDIN));
$execute = send($nomor);
print $execute;
?>