Python Scapy vs dpkt -
i trying analyse packets using python's scapy beginning. upon recent searching, found there module in python named dpkt. module can parse layers of packet, create packets, read .pcap file , write .pcap file. difference found among them is:
missing of live packet sniffer in
dpktsome of fields need unpacked using
struct.unpackindpkt.
is there other differences missing?
scapy better performer dpkt.
- you can create, sniff, modify , send packet using scapy. while dpkt can analyse packets , create them. send them, need raw sockets.
- as mentioned, scapy can sniff live. can sniff network can read
.pcapfile usingrdpcapmethod orofflineparameter ofsniffmethod. - scapy used create packet analyser , injectors. modules can used create specific application specific purpose.
there might many other differences also.
Comments
Post a Comment