Skip to content

Commit

Permalink
clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Feb 2, 2024
1 parent b9806b4 commit 9c276c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bbot/modules/anubisdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def parse_results(self, r, query):
if json:
for hostname in json:
hostname = str(hostname).lower()
if hostname.endswith(f".{query}") and not self.abort_if_pre(hostname):
in_scope = hostname.endswith(f".{query}")
is_ptr = self.helpers.is_ptr(hostname)
too_long = self.abort_if_pre(hostname)
if in_scope and not is_ptr and not too_long:
results.add(hostname)
return sorted(results)[:self.config.get("limit", 1000)]

0 comments on commit 9c276c9

Please sign in to comment.