Parse a Wireshark pcap file

1991manish.kumar at 1991manish.kumar at
Tue Dec 27 14:46:52 EST 2016

I have a pcap file, I want to parse that file & fetch some information like Timestamp, Packet Size, Source/Dest IP Address, Source/Dest Port, Source/ Dest MAC address.

I am trying this in Django.

other that Source/ Dest Port details, I am able to fetch everything.
Please tell me how I can get port details from pcap file.

This is my python code:

Thanking you in advance

On Wednesday, January 23, 2013 at 2:32:00 AM UTC+1, KDawg44 wrote:
> Is there a way to parse out a wireshark pcap file and extract key value pairs from the data?  I am illustrated a sniff of some traffic and why it needs utilize HTTPS instead of HTTP but I was hoping to run the pcap through a python script and just output some interesting key value pairs.... 
> Thanks for your help.
> Kevin

More information about the Python-list mailing list