mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-08-14 02:37:06 -07:00
Added error handling to DNS and SMB servers when port is in use
Added check to see if a plugins options were called without loading the actual plugin
This commit is contained in:
parent
70ec5a2bbc
commit
d3e509d4cd
10 changed files with 45 additions and 23 deletions
|
@ -48,7 +48,7 @@ class Responder(Plugin):
|
|||
try:
|
||||
config = self.config['Responder']
|
||||
smbChal = self.config['MITMf']['SMB']['Challenge']
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
sys.exit('[-] Error parsing config for Responder: ' + str(e))
|
||||
|
||||
LANFingerprinter().start(options)
|
||||
|
|
|
@ -22,7 +22,7 @@ import sys
|
|||
import logging
|
||||
|
||||
from plugins.plugin import Plugin
|
||||
from core.utils import IpTables
|
||||
from core.utils import IpTables, SystemConfig
|
||||
from core.sslstrip.URLMonitor import URLMonitor
|
||||
from core.dnschef.DNSchef import DNSChef
|
||||
|
||||
|
@ -37,10 +37,11 @@ class HSTSbypass(Plugin):
|
|||
def initialize(self, options):
|
||||
self.options = options
|
||||
self.manualiptables = options.manualiptables
|
||||
ip_address = SystemConfig.getIP(options.interface)
|
||||
|
||||
if not options.manualiptables:
|
||||
if IpTables.getInstance().dns is False:
|
||||
IpTables.getInstance().DNS(options.ip_address, self.config['MITMf']['DNS']['port'])
|
||||
IpTables.getInstance().DNS(ip_address, self.config['MITMf']['DNS']['port'])
|
||||
|
||||
URLMonitor.getInstance().setHstsBypass()
|
||||
DNSChef.getInstance().setHstsBypass()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue