I am trying to parse multiple pcap files using the pynids library, but can only parse the 1st file. I saw that libnids has a nids_unregister_tcp function, will this help? However, I cannot find this feature in pynids.
import nids def handle_tcp_stream(tcp): print "In handle_tcp_stream" def extract(pcap_file): nids.param("tcp_workarounds", 1) nids.param("pcap_filter", "tcp")
Here's the conclusion:
In handle_tcp_stream In handle_tcp_stream In handle_tcp_stream In handle_tcp_stream Done
python tcp libnids
Phani
source share