Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one tcpdump file (say abc.cap) , which can only be opened using ethereal or tcpdump.
i want to open that file and do some pattern matching using perl.
can i have some idea how to open that file using tcpdump in perl script???
Posted

Here's a description of the tcpdump file format: http://www.tcpdump.org/pcap/pcap.html[^].

That's all you should need to read that file and interpret it.

Cheers!
 
Share this answer
 
this worked for me ! :-D

tcpdump -qns 0 -X -r serverfault_request.pcap
tcpdump -qns 0 -A -r blah.pcap
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900