update whitelist

master
heuzef 6 years ago
parent d540b06fce
commit 56c1d58315
  1. 27
      defacement_check.pl

@ -94,22 +94,21 @@ foreach $file (@files)
my @found; my @found;
my $total_found = 0; my $total_found = 0;
foreach my $s (@search) { # Pour chaque keywords-black dans la liste
foreach (grep(/$s/i, split(/\n/, $site))) { # Pour chaque URL faire une recherche du keywords-black foreach my $s (@search) {
foreach (grep(/$s/i, split(/\n/, $site))) {
foreach my $i (@whitelist) { # foreach my $i (@whitelist) {
if($_ =~ m/$i/i) { #
print "\033[35mIGNORE "; # }
} else { my $i = "prolibre";
push @found, $_; if($_ =~ m/$i/i) {
} print "\033[35mIGNORE ";
} }
else {
push @found, $_;
} # Pour chaque URL faire une recherche du keywords-black }
}
} # Pour chaque keywords-black dans la liste }
# Results # Results
foreach (uniq(@found)) { foreach (uniq(@found)) {

Loading…
Cancel
Save