|
|
@ -95,12 +95,14 @@ foreach $file (@files) |
|
|
|
my @clean; |
|
|
|
my @clean; |
|
|
|
my $total_found = 0; |
|
|
|
my $total_found = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Find the Threat |
|
|
|
foreach my $s (@search) { |
|
|
|
foreach my $s (@search) { |
|
|
|
foreach (grep(/$s/i, split(/\n/, $site))) { |
|
|
|
foreach (grep(/$s/i, split(/\n/, $site))) { |
|
|
|
push @found, $_; |
|
|
|
push @found, $_; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# However, ignore this Threat please |
|
|
|
foreach my $i (@whitelist) { |
|
|
|
foreach my $i (@whitelist) { |
|
|
|
foreach (uniq(@found)) { |
|
|
|
foreach (uniq(@found)) { |
|
|
|
foreach (grep(/$i/i, split(/\n/))) { |
|
|
|
foreach (grep(/$i/i, split(/\n/))) { |
|
|
|