Thomas Chopitea
2014-01-09 17:04:28 UTC
Hello all,
I'm trying to get scapy to sniff a pcap file (with the 'offline' option),
and filter out unwanted packets using BPF syntax. Passing both options as
in
sniff(offline='dump.pcap', filter='tcp port 80', prn=lambda x: x.summary())
runs the prn for every packet in dump.pcap
I don't want to use an Lfilter unless of course I can derive or build it
from the BPF specified by the user.
Any ideas?
Cheers,
I'm trying to get scapy to sniff a pcap file (with the 'offline' option),
and filter out unwanted packets using BPF syntax. Passing both options as
in
sniff(offline='dump.pcap', filter='tcp port 80', prn=lambda x: x.summary())
runs the prn for every packet in dump.pcap
I don't want to use an Lfilter unless of course I can derive or build it
from the BPF specified by the user.
Any ideas?
Cheers,
--
Thomas Chopitea
Thomas Chopitea