python - Scapy - sniffing 2 interfaces out of three -


i'm using scapy 2.2.0 , python 2.6 sniff on windows 7. know can supply iface parameter sniff function. example:

sniff(count=5,iface = 'eth0', prn=lambda p:p.show()) 

if don't supply parameter, sniffs in interfaces. there way choose 2 out of 3 interfaces? this: (it doesn't work)

sniff(count=5, iface='eth0, eth14', prn=lambda p:p.show()) 

you use threads in python , sniff each interface in different thread:

https://docs.python.org/2/library/threading.html


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -