mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-08 05:51:48 -07:00
- Fixed a bug that would make certain sites end up in a infinite redirect loop
- HSTS headers now get deleted
This commit is contained in:
parent
cb09a12164
commit
10468bfa5e
3 changed files with 7 additions and 4 deletions
|
@ -125,8 +125,7 @@ class ServerConnection(HTTPClient):
|
|||
self.isCompressed = True
|
||||
|
||||
elif (key.lower()== 'strict-transport-security'):
|
||||
value="max-age=0"
|
||||
logging.info("Zapped a strict-trasport-security header")
|
||||
logging.info("%s Zapped a strict-trasport-security header" % self.client.getClientIP())
|
||||
|
||||
elif (key.lower() == 'content-length'):
|
||||
self.contentLength = value
|
||||
|
|
|
@ -76,6 +76,10 @@ class URLMonitor:
|
|||
method = url[0:methodIndex]
|
||||
|
||||
pathIndex = url.find("/", methodIndex)
|
||||
if (pathIndex == -1):
|
||||
pathIndex = len(url)
|
||||
url += "/"
|
||||
|
||||
host = url[methodIndex:pathIndex].lower()
|
||||
path = url[pathIndex:]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue