How can I capture them? Is there any module/lib to 开发者_C百科do it?
Please if it do, post an example
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.
精彩评论