codingo / VHostScan

A virtual host scanner that performs reverse lookups, can be used with pivot tools, detect catch-all scenarios, work around wildcards, aliases and dynamic default pages.
GNU General Public License v3.0
1.19k stars 231 forks source link

Closes #68 - Add exceptions for missing PTR records #69

Closed codingo closed 6 years ago

codingo commented 6 years ago

Added exception handling around the DNS lookup to handle cases where PTR records may not be present, or a timeout occurs. Raise by @timkent in #68.

timkent commented 6 years ago
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "VHostScan.py", line 127, in <module>
    main()
  File "VHostScan.py", line 96, in main
    except (dns.resolver.NXDOMAIN):
NameError: name 'dns' is not defined
codingo commented 6 years ago

So that was a stupid transfer of code on my behalf! Not thinking at the time, patching this now.

timkent commented 6 years ago

Looks good!