mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-25 15:03:01 +08:00
Updated dnssearch to check if variable is defined.
This commit is contained in:
parent
f10387da8e
commit
d9b8b66286
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue