mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-15 01:23:54 -07:00
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:
parent
0a00f671b8
commit
1a50f000c1
9 changed files with 51 additions and 23 deletions
|
@ -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):
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue