- or download this
use re qw(debug);
$_ = " TCP 192.168.101.2:1519 192.168.101.1:22 ESTABLISHED\n";
/^\s+(.*)\s+(.*):(.*)\s+(.*):(.*)\s+(.*)/;
- or download this
use re qw(debug);
$_ = " TCP 192.168.101.2:1519 192.168.101.1:22 ESTABLISHED\n";
/^\s+(\S+)\s+(\S+):(\S+)\s+(\S+):(\S+)\s+(\S*)/;
- or download this
#!/usr/bin/perl -W
use strict;
...
print "\nwarning: $status! I think we're being SYN'ed\n\n" if $syn;
print "Local: $laddr:$lport - External: $eaddr:$eport - $status\n";
}