dpkt
dpkt copied to clipboard
Sniff example
So this is mostly for my own edification, would it be useful/helpful to add an example/ that reads packet from a live interface? Even if the example included an external dependency it could nicely inform the user to $ pip install
Options:
- https://github.com/pynetwork/pypcap
- https://github.com/helpsystems/pcapy
- (Just sockets/linux only) https://www.binarytides.com/python-packet-sniffer-code-linux/
- Other???
Happy to take suggestions here... @obormot @kbandla any pointers?
FYI https://github.com/kbandla/dpkt/blob/master/examples/old/dhcprequest.py
FYI https://github.com/dugsong/pypcap/blob/master/testsniff.py