- or download this
#!/usr/bin/perl
# This script watches the /var/log/secure
- or download this
my @safe = qw/ 192.168.0.1 /;
[Some code]
my @rejects;
- or download this
if ( !defined( $db{$ip} ) ) {
push ( @{ $db{$ip} }, $epoch );
}
else {
push ( @{ $db{$ip} }, $epoch );
- or download this
my @safe = @_;
foreach (@safe) {
return 1 if $ip eq $_;
}
return 0;