mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 05:22:15 -07:00
21 lines
521 B
Python
21 lines
521 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))
|
|
|
|
URLMonitor.getInstance().setHstsBypass(config)
|