Help for this page

Select Code to Download


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