mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-22 00:06:30 +08:00
Serialize the found domain objects to str
This commit is contained in:
parent
f037825ba7
commit
e1af1f0a06
|
@ -489,11 +489,11 @@ async def handler(lst):
|
|||
analyzed_ranges.append(ip_range)
|
||||
else:
|
||||
continue
|
||||
for entries in res:
|
||||
if entries.count(word):
|
||||
dnsrev.append(entries)
|
||||
if entries not in full:
|
||||
full.append(entries)
|
||||
for entry in res:
|
||||
if word in entry:
|
||||
dnsrev.append(entry)
|
||||
if entry not in full:
|
||||
full.append(entry)
|
||||
print('[*] Hosts found after reverse lookup (in target domain):')
|
||||
print('--------------------------------------------------------')
|
||||
for xh in dnsrev:
|
||||
|
|
|
@ -64,7 +64,7 @@ def run(self, ip):
|
|||
ptr_record_answer = dns.resolver.query(dns_record_from_ip_answer, 'PTR')
|
||||
a_record_answer = dns.resolver.query(ptr_record_answer[0].to_text(), 'A')
|
||||
print(a_record_answer.canonical_name)
|
||||
return a_record_answer.canonical_name
|
||||
return str(a_record_answer.canonical_name)
|
||||
|
||||
except Exception:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue