Bruno 'Shady'
Bruno 'Shady'

Reputation: 4516

How can I capture and print packets from the internet on Windows?

How can I capture them? Is there any module/lib to do it?

Please if it do, post an example

Upvotes: 1

Views: 881

Answers (1)

Esteban Küber
Esteban Küber

Reputation: 36872

If you can install Wireshark, you can use it programaticaly from Python. (This isn't yet supported on Windows, as per bug 3500.)


You also have PyCap, a Python Packet Capture and Injection Library that seems to be platform independent.


Yet another packet sniffing module is Scapy, that I though didn't work on Windows, but was fortunately mistaken.

Upvotes: 1

Related Questions