Skip to content

Commit 2b15f1d

Browse files
committed
Fix DNS resolver exception handling
1 parent afe5de5 commit 2b15f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VHostScan.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def main():
9393
wordlist.append(str(ip))
9494
wordlist.append(host)
9595
wordlist.extend(aliases)
96-
except (dns.resolver.NXDOMAIN):
96+
except (NXDOMAIN):
9797
print("[!] Couldn't find any records (NXDOMAIN)")
98-
except (dns.resolver.NoAnswer):
98+
except (NoAnswer):
9999
print("[!] Couldn't find any records (NoAnswer)")
100100

101101
scanner_args = vars(arguments)

0 commit comments

Comments
 (0)