moved cryptoPHP to main scanner
This commit is contained in:
25
scan.php
25
scan.php
@@ -499,6 +499,31 @@ foreach ($tree as $finfo)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
elseif('png' == $ext && preg_match('\"PHP script\"', $tmp))
|
||||
{
|
||||
$counter_infected++;
|
||||
if($print_infected) print "{$finfo['path']}{$finfo['fname']}";
|
||||
if($print_infected || $print_all) print "\n";
|
||||
{
|
||||
print "...INFECTED (cryptoPHP)\n";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
elseif('png' == $ext && preg_match('php.{0,80}', $tmp))
|
||||
{
|
||||
$counter_infected++;
|
||||
if($print_infected) print "{$finfo['path']}{$finfo['fname']}";
|
||||
if($print_infected || $print_all) print "\n";
|
||||
{
|
||||
print "...INFECTED (cryptoPHP)\n";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
elseif('jpeg' == $ext && preg_match('/<\?php/i', $tmp))
|
||||
{
|
||||
$counter_infected++;
|
||||
|
||||
Reference in New Issue
Block a user