def run(self): print("start of listen DNS") s = BlockingSniffer("en0", read_timeout=5000) s.filter = "udp and port 53" s.sniff_callback(self.callbackDNS)
def run(self): print("start of listen HTTP") s = BlockingSniffer("en0", read_timeout=5000, snapshot_length=65000) s.filter = "tcp and port 3128" #s.sniff_and_store(queue) s.sniff_callback(self.callbackHTTP)