VanGans

hilih

Sep 21st, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.39 KB | None | 0 0
  1. <?php
  2. class bomWithMsg{
  3.   public $no;
  4.   public $msg;
  5.  
  6.   public function sendMsg($no, $msg){
  7.     $ch1 = curl_init();
  8.     curl_setopt($ch1, CURLOPT_URL, "http://server1-kreonrinto452786.codeanyapp.com/?no=$no&msg=$msg");
  9.     curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
  10.     curl_setopt($ch1, CURLOPT_SSL_VERIFYPEER, 0);
  11.     curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, 0);
  12.     curl_setopt($ch1, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  13.     $ex = curl_exec($ch1);
  14.     curl_close($ch1);
  15.     preg_match_all("/\"respone\":\"(.*?)\"/", $ex, $rest);
  16.     echo "[ ".$rest[1][0]." ] [ ".$no." ] [ ".$msg." ]\n";
  17.   }
  18.   public function bNer(){
  19.     echo "Powered";
  20.     echo "
  21.         ________      __________                 _____  
  22.  ____  /  _____/  ____\______   \ ____   ____   /     \  
  23. /    \/   \  ____/ __ \|    |  _//  _ \ /  _ \ /  \ /  \
  24. |   |  \    \_\  \  ___/|    |   (  <_> |  <_> )    Y    \
  25. |___|  /\______  /\___  >______  /\____/ \____/\____|__  /
  26.     \/        \/     \/       \/                      \/ \n";
  27.   }
  28. }
  29. $c7e = new bomWithMsg();
  30. $c7e->bNer();
  31. echo "Number Target : ";
  32. $no = trim(fgets(STDIN));
  33. $c7e->no = "$no";
  34. echo "Pesan/Message : ";
  35. $msg = trim(fgets(STDIN));
  36. $c7e->msg = "$msg";
  37. echo "Jumlah Kirim  : ";
  38. $kirim = trim(fgets(STDIN));
  39. for ($i=0; $i < $kirim; $i++) {
  40.     $c7e->sendMsg($c7e->no,$c7e->msg);
  41. }
Add Comment
Please, Sign In to add comment