Updated dnssearch to check if variable is defined.

This commit is contained in:
NotoriousRebel 2018-11-20 13:54:07 -05:00
parent f10387da8e
commit d9b8b66286

View file

@ -103,7 +103,11 @@ def getdns(self, domain):
aa=1).req()
except Exception as e:
print(e)
try:
test
except NameError:
print("Error")
sys.exit()
if test.header['status'] != "NOERROR":
print("Error")
sys.exit()