-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Scapy ignoring filter argument to sniff() function #393
Comments
First of all, please update to Scapy's latest version when reporting issues. Tcpdump is actually used to install the PCAP filter, that's why Scapy needs it. Can you try again with Tcpdump installed and using the latest version? Thanks |
Well certainly I have tried this the usual way first (with tcpdump). And I don't necessarily see the point of running the latest version (which is 2.3.3, one point release later?) but here is the same running git master:
|
The point is to avoid trying to fix an issue if it has already been fixed, so that's perfect if you've been able to reproduce the issue with current Git master. For tcpdump, that was not clear in your initial message, so I had to ask, sorry about that (since testing without tcpdump does not make any sense, really). |
Could you check the patch from #394 and let us know if it works for you? |
Sorry, that was rude of me. Thank you for the work, I'll check out the patch (looks good). |
* Support (BPF) filter in sniff() with offline parameter set Fixes #393 Also, fixes #355 * Add tests for wrpcap() and sniff(offline=) as suggested by Guillaume. Also, cleanup regression.uts since it was a pain to find a place to add those tests. * Fix PATH for tcpdump with non-root user * Do not run tcpdump tests when tcpdump is not available * Appveyor tests: install WinDump.exe Thanks @gpotter2
Looking forward to seeing this in stable release! Just downloaded 2.4.0rc5 and glad to see it's working there :) |
i want to filter broadcast file in destination from the offline pcap file.? |
or a specific file in Destination? |
Reopening bitbucket issue nr. 747, https://bitbucket.org/secdev/scapy/issues/747/scapy-ignoring-filter-argument-to-sniff
Scapy seems to ignore the
filter
argument tosniff()
in my installation, scapy 2.3.2 on debian.I believe I can exclude tcpdump from being the issue as I moved it out of the way for this test, using an offline pcap file:
As can be seen, the
udp
filter is ignored while listing all kinds of other packets (tcp, icmp etc., any source or destination).The text was updated successfully, but these errors were encountered: