fixes
This commit is contained in:
7
scan.php
7
scan.php
@@ -478,41 +478,34 @@ foreach ($tree as $finfo)
|
||||
unset($match);
|
||||
}
|
||||
|
||||
///<\?(php)?/i - short tag detection problem
|
||||
if('gif' == $ext && preg_match('/<\?php/i', $tmp))
|
||||
{
|
||||
$counter_infected++;
|
||||
//$counter_error++;
|
||||
if($print_infected) print "{$finfo['path']}{$finfo['fname']}";
|
||||
if($print_infected || $print_all) print "\n";
|
||||
{
|
||||
print "...INFECTED (PHP open tag inside GIF image)\n";
|
||||
// print("\n\ERROR: {$finfo['path']}{$finfo['fname']} will not be auto-deleted, you have to delete it manually if you think it's a threat!\n\n");
|
||||
}
|
||||
|
||||
}
|
||||
elseif('jpg' == $ext && preg_match('/<\?php/i', $tmp))
|
||||
{
|
||||
$counter_infected++;
|
||||
//$counter_error++;
|
||||
if($print_infected) print "{$finfo['path']}{$finfo['fname']}";
|
||||
if($print_infected || $print_all) print "\n";
|
||||
{
|
||||
print "...INFECTED (PHP open tag inside JPG image)\n";
|
||||
|
||||
// print("\n\ERROR: {$finfo['path']}{$finfo['fname']} will not be auto-deleted, you have to delete it manually if you think it's a threat!\n\n");
|
||||
}
|
||||
|
||||
}
|
||||
elseif('jpeg' == $ext && preg_match('/<\?php/i', $tmp))
|
||||
{
|
||||
$counter_infected++;
|
||||
//$counter_error++;
|
||||
if($print_infected) print "{$finfo['path']}{$finfo['fname']}";
|
||||
if($print_infected || $print_all) print "\n";
|
||||
{
|
||||
print "...INFECTED (PHP open tag inside JPEG image)\n";
|
||||
// print("\n\ERROR: {$finfo['path']}{$finfo['fname']} will not be auto-deleted, you have to delete it manually if you think it's a threat!\n\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user