Search code examples
pythontcppcap

How to parse packets in a python library?


How to you parse a packet from either a .pcap file, or an interface, using python?

I'm specifically looking for a solution that uses a well documented library.


Solution

  • Try scapy. It is a very powerful program for packet inspection, manipulation and creation.

    You can use it to build your own tools.