mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 21:42:17 -07:00
-Initial Spoof plugin rewrite
-Dep check on plugins -NetfilterQueue python lib port -plugin output re-design
This commit is contained in:
parent
92be661e9d
commit
23a273e8a0
17 changed files with 595 additions and 522 deletions
|
@ -16,11 +16,12 @@ import re
|
|||
import os
|
||||
|
||||
class Sniffer(Plugin):
|
||||
name ='Sniffer'
|
||||
optname = "sniffer"
|
||||
desc = "Sniffs for various protocol login and auth attempts"
|
||||
name = "Sniffer"
|
||||
optname = "sniffer"
|
||||
desc = "Sniffs for various protocol login and auth attempts"
|
||||
implements = ["sendRequest"]
|
||||
has_opts = False
|
||||
has_opts = False
|
||||
req_root = True
|
||||
|
||||
def initialize(self, options):
|
||||
self.options = options
|
||||
|
@ -43,12 +44,12 @@ class Sniffer(Plugin):
|
|||
|
||||
n = NetCreds()
|
||||
|
||||
print "[*] Sniffer plugin online"
|
||||
|
||||
#if not self.parse:
|
||||
t = threading.Thread(name="sniffer", target=n.start, args=(self.interface,))
|
||||
t.setDaemon(True)
|
||||
t.start()
|
||||
|
||||
print self.plg_text
|
||||
#else:
|
||||
# pcap = rdpcap(self.parse)
|
||||
# for pkt in pcap:
|
||||
|
@ -132,7 +133,10 @@ class NetCreds:
|
|||
self.NTLMSSP3_re = 'NTLMSSP\x00\x03\x00\x00\x00.+'
|
||||
|
||||
def start(self, interface):
|
||||
sniff(iface=interface, prn=self.pkt_parser, store=0)
|
||||
try:
|
||||
sniff(iface=interface, prn=self.pkt_parser, store=0)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def frag_remover(self, ack, load):
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue