Should I delete ss_installhelper.php
-
Hello —
Is this actually a malicious file in my root directory, and should I delete it?WORDFENCE MESSAGE:
Filename: ss_installhelper.php
File Type: Not a core, theme, or plugin file from www.ads-software.com.
Details: This file appears to be installed or modified by a hacker to perform malicious activity. If you know about this file you can choose to ignore it to exclude it from future scans. The matched text in this file is: file_fix_directory(dirname(__FILE__The issue type is: Suspicious:PHP/recursivechmod
Description: May be legitimate file but can be used to put the site in an insecure stateFILE CODE:
<?php if (file_exists('./Home.html')) { rename('./Home.html', './Home.html.bak'); } file_fix_directory(dirname(__FILE__)); function file_fix_directory($dir, $nomask = array('.', '..')) { if (is_dir($dir)) { // Try to make each directory world writable. if (@chmod($dir, 0755)) { echo "<p>Made writable: " . $dir . "</p>"; } } if (is_dir($dir) && $handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if (!in_array($file, $nomask) && $file[0] != '.') { if (is_dir("$dir/$file")) { // Recurse into subdirectories file_fix_directory("$dir/$file", $nomask); } else { $filename = "$dir/$file"; // Try to make each file world writable. if (@chmod($filename, 0644)) { echo "<p>Made writable: " . $filename . "</p>"; } } } } closedir($handle); } } unlink(__FILE__); ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Should I delete ss_installhelper.php’ is closed to new replies.