title: How can I filter a string from a pcap file using python?
body: <p>I have some large pcap files (~100MB each) and I want to filter out those packets which contain strings from a dictionary file (txt). The dictionary file is formatted like: </p>
  
  <pre><code>line 1: word1
  line 2: word2
  line 3: word3
  line 4: word4
  </code></pre>
  
  <p>So, if word1 is present anywhere in the pcap file (should be in the TCP payload?), I want to remove that string or simply want to remove that packet from pcap file.
  Is there any way to achieve this efficiently (fast enough)?</p>