diff --git a/conf/websites.cfg b/conf/websites.cfg index 86b0ee6..e69de29 100644 --- a/conf/websites.cfg +++ b/conf/websites.cfg @@ -1 +0,0 @@ -www.firewall-services.com diff --git a/defacement_check.pl b/defacement_check.pl index 43f12b6..f8a597b 100644 --- a/defacement_check.pl +++ b/defacement_check.pl @@ -97,15 +97,15 @@ foreach $file (@files) foreach my $s (@search) { foreach (grep(/$s/i, split(/\n/, $site))) { - # foreach my $i (@whitelist) { - # - # } - my $i = "prolibre"; - if($_ =~ m/$i/i) { + push @found, $_; + } + } + + foreach my $i (@whitelist) { + foreach (uniq(@found)) { + foreach (grep(/$i/i, split(/\n/))) { print "\033[35mIGNORE "; - } - else { - push @found, $_; + pop @found, $_; } } }