|
|
@ -17,7 +17,17 @@ print "\033[36m \nDEFACEMENT CHECK [" . $date . "]\n\nSearching for suspects ... |
|
|
|
print "FOUND \t\t=> URLs\n"; |
|
|
|
print "FOUND \t\t=> URLs\n"; |
|
|
|
|
|
|
|
|
|
|
|
# Import config |
|
|
|
# Import config |
|
|
|
|
|
|
|
my @scan; |
|
|
|
my @search; |
|
|
|
my @search; |
|
|
|
|
|
|
|
my $websites = 'conf/websites.cfg'; |
|
|
|
|
|
|
|
if (open(my $f, '<:encoding(UTF-8)', $websites)) { |
|
|
|
|
|
|
|
while (my $row = <$f>) { |
|
|
|
|
|
|
|
chomp $row; |
|
|
|
|
|
|
|
push @scan, $row; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
warn "Could not open file '$keywords' $!"; |
|
|
|
|
|
|
|
} |
|
|
|
my $keywords = 'conf/keywords.cfg'; |
|
|
|
my $keywords = 'conf/keywords.cfg'; |
|
|
|
if (open(my $f, '<:encoding(UTF-8)', $keywords)) { |
|
|
|
if (open(my $f, '<:encoding(UTF-8)', $keywords)) { |
|
|
|
while (my $row = <$f>) { |
|
|
|
while (my $row = <$f>) { |
|
|
|