views:

51

answers:

1

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

Please if it do, post an example

+1  A: 

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.

voyager