fixed path

This commit is contained in:
Palma Solutions LTD 2017-10-21 12:16:34 +02:00
parent b6d6707974
commit deb66ad01c

View File

@ -8,6 +8,7 @@
/* script variables */ /* script variables */
$version = '3.1'; $version = '3.1';
$self = basename(__FILE__); $self = basename(__FILE__);
$current = './'
$eroot = '../'; $eroot = '../';
$print_infected = true; $print_infected = true;
@ -429,8 +430,8 @@ error_reporting(E_ALL);
"visitorTracker_isMob", "visitorTracker_isMob",
"this->privmsg(", "this->privmsg(",
"Starting call", "Starting call",
"Hacked", /* "Hacked", - removed pattern due to large volume of false positives */
"boff", /* "boff", - removed pattern due to large volume of false positives */
"r57Shell Edited By Margu", "r57Shell Edited By Margu",
"IRC_socket", "IRC_socket",
"ConfigSpy", "ConfigSpy",
@ -468,6 +469,11 @@ foreach ($tree as $finfo)
continue; continue;
} }
if(realpath($finfo['path'], $current !== FALSE )
{
continue;
}
if($print_all) print "{$finfo['path']}{$finfo['fname']}....CHECKING"; if($print_all) print "{$finfo['path']}{$finfo['fname']}....CHECKING";
$tmp = file_get_contents($finfo['path'].$finfo['fname']); $tmp = file_get_contents($finfo['path'].$finfo['fname']);
preg_match('/[^.\s]*([a-z])$/i', $finfo['fname'], $match); preg_match('/[^.\s]*([a-z])$/i', $finfo['fname'], $match);