I am trying to analyse packets using Python's Scapy
from the beginning. Upon recent searching, I found there is another module in python named as dpkt
. With this module I can parse the layers of a packet, create packets, read a .pcap
file and write into a .pcap
file. The difference I found among them is:
Missing of live packet sniffer in
dpkt
Some of the fields need to be unpacked using
struct.unpack
indpkt
.
Is there any other differences I am missing?
Scapy
is a better performer thandpkt
..pcap
file using therdpcap
method oroffline
parameter ofsniff
method.There might be many other differences also.