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:

  1. missing of live packet sniffer in dpkt

  2. some of fields need unpacked using struct.unpack in dpkt.

is there other differences missing?

scapy better performer dpkt.

  1. you can create, sniff, modify , send packet using scapy. while dpkt can analyse packets , create them. send them, need raw sockets.
  2. as mentioned, scapy can sniff live. can sniff network can read .pcap file using rdpcap method or offline parameter of sniff method.
  3. scapy used create packet analyser , injectors. modules can used create specific application specific purpose.

there might many other differences also.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -