mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-08 05:51:48 -07:00
Fixed bug in DNS resolving logic
This commit is contained in:
parent
cd9a16de55
commit
c85fd2b5f3
3 changed files with 98 additions and 61 deletions
|
@ -223,13 +223,13 @@ class ClientRequest(Request):
|
|||
real = self.urlMonitor.real
|
||||
|
||||
if 'wwww' in host:
|
||||
logging.debug("Resolving %s for HSTS bypass" % (host))
|
||||
logging.debug("Resolving %s for HSTS bypass (Twisted)" % (host))
|
||||
host = host[1:]
|
||||
elif 'web' in host:
|
||||
logging.debug("Resolving %s for HSTS bypass" % (host))
|
||||
logging.debug("Resolving %s for HSTS bypass (Twisted)" % (host))
|
||||
host = host[3:]
|
||||
elif host in real:
|
||||
logging.debug("Resolving %s for HSTS bypass" % (host))
|
||||
logging.debug("Resolving %s for HSTS bypass (Twisted)" % (host))
|
||||
host = real[host]
|
||||
|
||||
hostparts = host.split(':')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue