mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-06 21:12:16 -07:00
Fixed a bug in SSLstrip+ code, when redirecting to certain sites
Created a wrapper class around Msfrpc to limit code re-use when interacting with msf
This commit is contained in:
parent
b9371f7cdc
commit
563a8d37c1
10 changed files with 141 additions and 126 deletions
|
@ -39,11 +39,11 @@ class BrowserProfiler(Inject, Plugin):
|
|||
self.html_payload = self.get_payload()
|
||||
|
||||
def post2dict(self, post): #converts the ajax post to a dic
|
||||
dict = {}
|
||||
d = dict()
|
||||
for line in post.split('&'):
|
||||
t = line.split('=')
|
||||
dict[t[0]] = t[1]
|
||||
return dict
|
||||
d[t[0]] = t[1]
|
||||
return d
|
||||
|
||||
def clientRequest(self, request):
|
||||
#Handle the plugin output
|
||||
|
@ -62,4 +62,4 @@ class BrowserProfiler(Inject, Plugin):
|
|||
|
||||
def get_payload(self):
|
||||
plugindetect = open("./core/javascript/plugindetect.js", 'r').read()
|
||||
return '<script type="text/javascript">\n' + plugindetect + '\n</script>'
|
||||
return '<script type="text/javascript">' + plugindetect + '</script>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue