zgrab2/modules/http
Jeff Cody 82da88e34d
Let HTTP scanner use the custom resolver
If both an IP address and a domain are specified for a scan, have the
HTTP scanner use a fake resolver in the DialContext, so that we always
scan the intended IP and Domain name pair.

However, make sure redirects still function as normal, so only use our
fake resolver if the domain name matches the original targeted domain
name.

In addition, the custom resolver is only used if the network specified
is one that supports domain names.
2020-01-31 14:40:36 -05:00
..
http_readlimit_test.go add bytelimit tests 2018-09-27 14:00:26 -04:00
scanner.go Let HTTP scanner use the custom resolver 2020-01-31 14:40:36 -05:00