PHP malware issue (ssv3_directory)
-
My website has been suffering intermittent crashing throughout the day. I contacted Bluehost, and they assured me there’s no server issue on their end. They ran a malware scan, and the following popped up as infected:
home4/moviemb8/public_html/ssv3_directory.php: SL-PHP-BACKDOOR-GENERIC-dgl.UNOFFICIAL FOUND
home4/moviemb8/public_html/backup/ssv3_directory.php: SL-PHP-BACKDOOR-GENERIC-dgl.UNOFFICIAL FOUND
BlueHost instructed me to delete all files that are identified in the malware scan. I’ve located the “ssv3_directory.php” file in my directory. What I’m wondering is, can I safely delete this file, or is it essential to my site’s ongoing operation? If the latter, is there something I can/should do to fix the file? It was last modified in June 2017, so I don’t understand why it would be infected, but I’m also happy to remove or update it if it’s causing the current problem. For clarity, here’s the content of the file itself:
<?php error_reporting(0); @ini_set('cgi.fix_pathinfo', 1); if (is_dir($_POST['directory']) && !is_dir_empty($_POST['directory'])) { echo 1; } else { echo 0; } function is_dir_empty($dir) { if (!is_readable($dir)) return null; $handle = opendir($dir); while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { return false; } } return true; } exit;
The page I need help with: [log in to see the link]
- The topic ‘PHP malware issue (ssv3_directory)’ is closed to new replies.