VanGans

Auto GB OVO

Feb 10th, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.64 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. set_time_limit(0);
  4. /**
  5.  * AUTO GB OVO for Bacotan K3RD3R
  6.  */
  7. $setting = [
  8. "noPhone"   => "62xxxxx", // must with prefix 62
  9. "pin"       => "123456",        // your six pin OVO
  10. ];
  11. class ovocok
  12. {
  13.     function __construct($setting)
  14.     {
  15.         $this->sDatabyte = $setting;
  16.         $this->numberPhone = $setting['noPhone'];
  17.         if (strlen($setting['pin']) != 6) {
  18.             echo $this->color('redbg', 'Please Input Valid PIN!').PHP_EOL;
  19.             exit();
  20.         }
  21.         echo $this->color("red", base64_decode("ICAgICAgICAuLS0uICAgICAgIC4tLS4KICAgIF8gIGAgICAgXCAgICAgLyAgICBgICBfCiAgICAgYFwuPT09LiBcLl4uLyAuPT09Li9gCiAgICAgICAgICAgIFwvYCJgXC8KICAgICAgICAgLCAgfCAgICAgfCAgLAogICAgICAgIC8gYFx8YC0uLSd8L2AgXAogICAgICAgLyAgICB8ICBcICB8ICAgIFwKICAgIC4tJyAsLSdgfCAgIDsgfGAnLSwgJy0uCiAgICAgICAgfCAgIHwgICAgXHwgICB8IAogICAgICAgIHwgICB8ICAgIDt8ICAgfAogICAgICAgIHwgICBcICAgIC8vICAgfAogICAgICAgIHwgICAgYC5fLy8nICAgfAogICAgICAgLicgICAgICAgICAgICAgYC4KICAgIF8sJyAgICAgICAgICAgICAgICAgYCxfCiAgICBgICAgICAgICAgICAgICAgICAgICAgYA==")); echo PHP_EOL;
  22.         echo $this->color("greenlg", "AUTO GB OVO POINTS ").$this->color("greenbg", " BACOTAN K3RD3R ").PHP_EOL;
  23.         echo $this->color("yellowbg", "Your OvO Number"); echo " : ".$this->numberPhone.PHP_EOL;
  24.         echo $this->color("purple", "Start the program");
  25.         for ($i=0 ; $i<= 4 ; $i++) {
  26.             echo $this->color('red', '.');    
  27.             usleep(800000);          
  28.         }
  29.         echo PHP_EOL.PHP_EOL;
  30.         $this->no = 0;
  31.         while (true) {
  32.             $this->token();
  33.             $this->no++;
  34.         }
  35.        
  36.  
  37.     }
  38.     function token(){
  39.         $iost = json_encode($this->sDatabyte);
  40.         $opst = array('data' => $iost);
  41.         $result = $this->http("http://tool.mkato.club", $opst);
  42.         $res = json_decode($result, true);
  43.         $this->status($res);
  44.     }
  45.     function color($color, $text){
  46.         if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
  47.             return $text;
  48.         } else {
  49.             switch ($color) {
  50.                 case 'greenbg':
  51.                     $warna = "\033[1;37;42m"; break;
  52.                 case 'redbg':
  53.                     $warna = "\033[1;37;41m"; break;
  54.                 case 'bluebg':
  55.                     $warna = "\033[1;37;44m"; break;
  56.                 case 'yellowbg':
  57.                     $warna = "\033[1;37;43m"; break;
  58.                 case 'greenlg':
  59.                     $warna = "\033[40;38;5;82m"; break;
  60.                 case 'purple':
  61.                      $warna = "\033[1;35m"; break;
  62.                 case 'green':
  63.                     $warna = "\033[1;32m"; break;
  64.                 case 'red':
  65.                     $warna = "\033[1;31m"; break;
  66.                 case 'blue':
  67.                     $warna = "\033[1;34m"; break;
  68.                 case 'yellow':
  69.                     $warna = "\033[1;33;40m"; break;
  70.                 default:
  71.                     $warna = "\033[0m"; break;
  72.             }
  73.             return $warna.$text."\033[0m";
  74.         }
  75.     }
  76.     function status($data){
  77.         $sForm = array(
  78.             $this->no,
  79.             $this->numberPhone,
  80.             $data['point']
  81.         );
  82.  
  83.         switch ($data['status']) {
  84.             case 100:
  85.                 $string = '[%d] Auto GB to %d | Result : ' . $this->color('greenbg', 'Success') . ' '.$this->color('yellowbg', '%d').' Points' . PHP_EOL;
  86.                 $string = vsprintf($string, $sForm);
  87.                 echo $string;
  88.                 break;
  89.             case 200:
  90.                 $string = '[%d] Auto GB to %d | Result : ' . $this->color('redbg', 'Failed') . ' '.$this->color('yellowbg', '%d').' Points' . PHP_EOL;
  91.                 $string = vsprintf($string, $sForm);
  92.                 echo $string;
  93.                 break;
  94.         }
  95.     }
  96.     function http($url, $post = false){
  97.         $ch = curl_init();
  98.         curl_setopt($ch, CURLOPT_URL, $url);
  99.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  100.         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  101.         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  102.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  103.         if ($post) {
  104.             curl_setopt($ch, CURLOPT_POST, true);
  105.             curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  106.         }
  107.        
  108.         $response = curl_exec($ch);
  109.         curl_close($ch);
  110.         return $response;
  111.     }
  112. }
  113.  
  114. $govo = new ovocok($setting);
Add Comment
Please, Sign In to add comment