fixed path
This commit is contained in:
parent
b6d6707974
commit
deb66ad01c
10
scan.php
10
scan.php
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user