Skip to content

Commit

Permalink
Merge pull request blacklanternsecurity#1718 from blacklanternsecurit…
Browse files Browse the repository at this point in the history
…y/baddns-dnswalk-settings

bump baddns, lower dnswalk timeout settings
  • Loading branch information
liquidsec authored Aug 28, 2024
2 parents 8ccc1d7 + 26a60de commit 64e6a5a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
23 changes: 15 additions & 8 deletions bbot/modules/baddns.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class baddns(BaseModule):
"enable_references": "Enable the references module (off by default)",
}
module_threads = 8
deps_pip = ["baddns~=1.1.798"]
deps_pip = ["baddns~=1.1.815"]

def select_modules(self):

Expand All @@ -49,13 +49,20 @@ async def handle_event(self, event):

tasks = []
for ModuleClass in self.select_modules():
module_instance = ModuleClass(
event.data,
http_client_class=self.scan.helpers.web.AsyncClient,
dns_client=self.scan.helpers.dns.resolver,
custom_nameservers=self.custom_nameservers,
signatures=self.signatures,
)
kwargs = {
"http_client_class": self.scan.helpers.web.AsyncClient,
"dns_client": self.scan.helpers.dns.resolver,
"custom_nameservers": self.custom_nameservers,
"signatures": self.signatures,
}

if ModuleClass.name == "NS":
kwargs["raw_query_max_retries"] = 1
kwargs["raw_query_timeout"] = 5.0
kwargs["raw_query_retry_wait"] = 0

module_instance = ModuleClass(event.data, **kwargs)

tasks.append((module_instance, asyncio.create_task(module_instance.dispatch())))

for module_instance, task in tasks:
Expand Down
2 changes: 1 addition & 1 deletion bbot/modules/baddns_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class baddns_zone(baddns_module):
"only_high_confidence": "Do not emit low-confidence or generic detections",
}
module_threads = 8
deps_pip = ["baddns~=1.1.798"]
deps_pip = ["baddns~=1.1.815"]

def select_modules(self):
selected_modules = []
Expand Down

0 comments on commit 64e6a5a

Please sign in to comment.