mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-15 01:23:54 -07:00
now stripping hsts requests from headers
This commit is contained in:
parent
8c4d55b01b
commit
87971d9586
2 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,3 @@
|
|||
#
|
||||
# Work in progress
|
||||
#
|
||||
from plugins.plugin import Plugin
|
||||
from plugins.BrowserProfiler import BrowserProfiler
|
||||
from time import sleep
|
||||
|
|
|
@ -55,9 +55,11 @@ class ClientRequest(Request):
|
|||
|
||||
if 'accept-encoding' in headers:
|
||||
headers['accept-encoding'] == 'identity'
|
||||
logging.debug("zapped encoding")
|
||||
|
||||
if 'Strict-Transport-Security' in headers: #kill new hsts requests
|
||||
del headers['Strict-Transport-Security']
|
||||
logging.debug("zapped a HSTS request")
|
||||
|
||||
if 'if-modified-since' in headers:
|
||||
del headers['if-modified-since']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue