added an option to parse creds from a pcap using NetCreds, removed mitmflib as a dep (was causing problems for travis)

This commit is contained in:
byt3bl33d3r 2015-08-11 17:11:44 +02:00
parent 0a00f671b8
commit 1a50f000c1
9 changed files with 51 additions and 23 deletions

View file

@ -48,10 +48,15 @@ class NetCreds:
def sniffer(self, interface, ip):
sniff(iface=interface, prn=pkt_parser, filter="not host {}".format(ip), store=0)
def start(self, interface, ip):
t = threading.Thread(name='NetCreds', target=self.sniffer, args=(interface, ip,))
t.setDaemon(True)
t.start()
def start(self, interface, ip, pcap):
if pcap:
for pkt in PcapReader(pcap):
pkt_parser(pkt)
sys.exit()
else:
t = threading.Thread(name='NetCreds', target=self.sniffer, args=(interface, ip,))
t.setDaemon(True)
t.start()
def pkt_parser(pkt):
'''