-Initial Spoof plugin rewrite

-Dep check on plugins
-NetfilterQueue python lib port
-plugin output re-design
This commit is contained in:
byt3bl33d3r 2015-03-10 02:26:56 +01:00
parent 92be661e9d
commit 23a273e8a0
17 changed files with 595 additions and 522 deletions

View file

@ -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):
'''