New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sniff on all interfaces won't filter. #1356
Comments
By default, sniff() sniffs on the interface defined in conf.iface. I don’t think that it is able to sniff on all network interfaces.
|
However, it is able to sniff multiple interfaces at the same time. Have a look at
|
The documentation states:
http://scapy.readthedocs.io/en/latest/usage.html?highlight=sniff So sniffing should happen on every interface with something like:
|
The documentation must be fixed. By default, Scapy sniffs on |
I'm attempting to sniff on all interfaces with some filtering.
sniff(prn = lambda x: x.show(), filter='src host 10.0.1.1')
If I remove the filter with:
sniff(prn = lambda x: x.show())
Then I start sniffing on interfaces.I know the filter is working because when I specify the interface, everything works:
sniffing works on the interface and is filtering on that interface.
sniff(iface='some interface', filter='src host 10.0.1.1', prn= lambda x: x.show())
The text was updated successfully, but these errors were encountered: