Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Net::TcpDumpLog;
    ...
        my $tcp_obj  = NetPacket::TCP->decode( $ip_obj->{data});    
    
        print ("$i  $ip_obj->{src_ip} ($tmpIPs),$ip_obj->{dest_ip} ($tmpIP
    +d),$ip_obj->{len},$ip_obj->{tos},$ip_obj->{ttl},$ip_obj->{foffset},$t
    +cp_obj->{acknum},$tcp_obj->{flags}, $tcp_obj->{winsize}, $tcp_obj->{c
    +ksum}, $tcp_obj->{urg}\n");
    
  2. or download this
    $perl -MNet::Analysis -e main TCP,v=7 google.dump
    
  3. or download this
      = (  0 23:28:09.091264 163.1.236.180:47262-209.85.227.99:80) *AP    
    + SEQ:4094724362 ACK:3316076611 1072b
      ====[23:28:09.091264] tcp session start [163.1.236.180:47262 -> 209.
    +85.227.99:80]
    ...
    
      ====[--:--:--.------] tcp session end [163.1.236.180:47263-209.85.22
    +7.99:80]