Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Comment on

hi everyone i am trying to decode wireshark data into a format to be inserted into a database for analysis. i don't know how to make the garbage in a file mean something useful. I am using a wireshark sample file to try and get the output to be something meaningful. Can someone point me in the right direction?

#!perl use Net::TcpDumpLog; use NetPacket::TCP; use NetPacket::Ethernet; $log = Net::TcpDumpLog->new(); $log->read("test.pcap"); @Indexes = $log->indexes; foreach $index (@Indexes) { ($length_orig,$length_incl,$drops,$secs,$msecs) = $log->header($index) +; $data = $log->data($index); my $tcp_strip = NetPacket::TCP::strip($data); print "$tcp_strip\n"; }

In reply to decoding libpcap on windows by jwillis

and:  <code> code here </code>

  • Please read these before you post! —
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others perusing the Monastery: (5)
    As of 2014-12-28 22:50 GMT
    Find Nodes?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?

      Results (183 votes), past polls