Skip to content

Commit

Permalink
Merge pull request #476 from blacklanternsecurity/whois-quiet
Browse files Browse the repository at this point in the history
quieting output from whois
  • Loading branch information
liquidsec authored Jul 10, 2024
2 parents 14a3712 + 1d45217 commit ea3d56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baddns/lib/whoismanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ async def dispatchWHOIS(self):
log.debug(f"Extracted base domain [{ext.registered_domain}] from [{self.target}]")
log.debug(f"Submitting WHOIS query for {ext.registered_domain}")
try:
w = await asyncio.to_thread(whois.whois, ext.registered_domain)
w = await asyncio.to_thread(whois.whois, ext.registered_domain, quiet=True)
log.debug(f"Got response to whois request for {ext.registered_domain}")
self.whois_result = {"type": "response", "data": w}
except whois.parser.PywhoisError as e:
log.debug(f"Got PywhoisError for whois request for {ext.registered_domain}")
self.whois_result = {"type": "error", "data": str(e)}
except Exception as e:
log.debug(f"Got unknown error from whois: {str(e)}")
log.warning(f"Got unknown error from whois: {str(e)}")
self.whois_result = {"type": "error", "data": str(e)}

def analyzeWHOIS(self):
Expand Down

0 comments on commit ea3d56f

Please sign in to comment.