def get_wep_data_count(self):
wep_packets = None
try:
wep_packets = rdpcap(self.log_path)
except Exception as e:
print "[-] Error reading pcap file:", str(e)
return
n_data_packets = 0
for p in wep_packets:
if Dot11WEP in p:
if p.iv is not None and p.iv != '':
n_data_packets += 1
return n_data_packets
评论列表
文章目录