Help for this page

Select Code to Download


  1. or download this
    use re qw(debug);
    $_ = " TCP   192.168.101.2:1519   192.168.101.1:22     ESTABLISHED\n";
    /^\s+(.*)\s+(.*):(.*)\s+(.*):(.*)\s+(.*)/;
    
  2. 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*)/;
    
  3. 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";
    }