mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 21:42:17 -07:00
added HSTS bypass as demonstrated by Leonardo Nve at blackhat
This commit is contained in:
parent
5be41cfd37
commit
82739bba9f
11 changed files with 765 additions and 18 deletions
|
@ -57,10 +57,10 @@ class ClientRequest(Request):
|
|||
headers['accept-encoding'] == 'identity'
|
||||
logging.debug("Zapped encoding")
|
||||
|
||||
if 'Strict-Transport-Security' in headers: #kill new hsts requests
|
||||
del headers['Strict-Transport-Security']
|
||||
logging.info("Zapped a HSTS request")
|
||||
|
||||
if 'strict-transport-security' in headers: #kill new hsts requests
|
||||
del headers['strict-transport-security']
|
||||
logging.info("Zapped HSTS header")
|
||||
|
||||
if 'if-modified-since' in headers:
|
||||
del headers['if-modified-since']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue