mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-16 10:03:52 -07:00
Fixed a bug where Twisted would resolve correct IP when DNS Tampering
This commit is contained in:
parent
873112c8e7
commit
5e56049e44
2 changed files with 8 additions and 2 deletions
|
@ -181,10 +181,10 @@ class ClientRequest(Request):
|
|||
address = self.dnsCache.getCachedAddress(host)
|
||||
|
||||
if address != None:
|
||||
logging.debug("Host cached.")
|
||||
logging.debug("[ClientRequest] Host cached: %s %s" % (host, str(address)))
|
||||
return defer.succeed(address)
|
||||
else:
|
||||
logging.debug("Host not cached.")
|
||||
logging.debug("[ClientRequest] Host not cached.")
|
||||
return reactor.resolve(host)
|
||||
|
||||
def process(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue