kbandla / dpkt

fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
Other
1.08k stars 270 forks source link

Sniff example #525

Open brifordwylie opened 3 years ago

brifordwylie commented 3 years ago

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 to run the example...

Options:

Happy to take suggestions here... @obormot @kbandla any pointers?

obormot commented 2 years ago

FYI https://github.com/kbandla/dpkt/blob/master/examples/old/dhcprequest.py

obormot commented 2 years ago

FYI https://github.com/dugsong/pypcap/blob/master/testsniff.py