MITMf/plugins/SSLstrip+.py
2015-03-10 23:26:32 +01:00

24 lines
572 B
Python

from plugins.plugin import Plugin
from libs.sslstrip.URLMonitor import URLMonitor
import sys
class HSTSbypass(Plugin):
name = 'SSLstrip+'
optname = 'hsts'
desc = 'Enables SSLstrip+ for partial HSTS bypass'
version = "0.2"
has_opts = False
req_root = False
def initialize(self, options):
self.options = options
try:
config = options.configfile['SSLstrip+']
except Exception, e:
sys.exit("[-] Error parsing config for SSLstrip+: " + str(e))
print "| |_ SSLstrip+ by Leonardo Nve running"
URLMonitor.getInstance().setHstsBypass(config)