Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Is there a way to crack .CAP file in Perl?

by haukex (Archbishop)
on May 08, 2016 at 09:41 UTC ( #1162480=note: print w/replies, xml ) Need Help??

in reply to Is there a way to crack .CAP file in Perl?

Hi Muskovitz,

Several years ago I wrote a script using Net::Pcap and NetPacket to read a capture file - however, there is a lot of low-level decoding involved (e.g. reassembling IP fragments is fun), and a lot of re-inventing the wheel. So my suggestion would be that you use the already highly advanced features of Wireshark, which you can access from the command line via tshark, to get at the data in the capture file and filter it, and have tshark output it in a format your Perl program can parse. In your Perl program you can capture the data from tshark using a module like Capture::Tiny.

Hope this helps,
-- Hauke D

  • Comment on Re: Is there a way to crack .CAP file in Perl?

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1162480]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2022-12-08 10:57 GMT
Find Nodes?
    Voting Booth?

    No recent polls found