Skip to content

Commit

Permalink
Merge pull request #389 from Patrowl/ARS-135-fix-whois
Browse files Browse the repository at this point in the history
Whois: fix check condition ARS-135
  • Loading branch information
sebastien-powl authored Oct 6, 2023
2 parents 4efc6bd + 4a95f64 commit 4ff7eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/owl_dns/engine-owl_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def _reverse_whois(scan_id, asset, datatype):
# wf_value = w['org'].lower()
# elif 'registrant_name' in w.keys() and w['registrant_name'] not in ["", None]:
# wf_value = w['registrant_name'].lower()
if w.name is None:
if w.domain_name is None:
return res
wf_value = ""
# Get the registrant organization if available, otherwise try to get the registrant name
Expand Down Expand Up @@ -730,7 +730,7 @@ def _get_whois(scan_id, asset):
w = whois.whois(asset)
# w = whois.query(asset, force=True)
# print(w.__dict_)
if w.name is None:
if w.domain_name is None:
res.update({
asset: {"errors": w}
})
Expand Down

0 comments on commit 4ff7eea

Please sign in to comment.