Skip to content

Commit

Permalink
Merge pull request #749 from blacklanternsecurity/projectdiscovery-cu…
Browse files Browse the repository at this point in the history
…stom-resolvers

Reintroduce Custom DNS Resolvers for ProjectDiscovery Tools
  • Loading branch information
TheTechromancer authored Sep 22, 2023
2 parents 54fb4c3 + 02faebe commit fba1e62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions bbot/modules/deadly/nuclei.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,11 @@ async def execute_nuclei(self, nuclei_input):
self.concurrency,
"-disable-update-check",
"-stats-json",
# "-r",
# self.helpers.resolver_file,
]

if self.helpers.system_resolvers:
command += ["-r", self.helpers.resolver_file]

for cli_option in ("severity", "templates", "iserver", "itoken", "tags", "etags"):
option = getattr(self, cli_option)

Expand Down
7 changes: 5 additions & 2 deletions bbot/modules/httpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ async def handle_batch(self, *events):
f"User-Agent: {self.scan.useragent}",
"-response-size-to-read",
f"{self.max_response_size}",
# "-r",
# self.helpers.resolver_file,
]

dns_resolvers = ",".join(self.helpers.system_resolvers)
if dns_resolvers:
command += ["-r", dns_resolvers]

for hk, hv in self.scan.config.get("http_headers", {}).items():
command += ["-header", f"{hk}: {hv}"]
proxy = self.scan.config.get("http_proxy", "")
Expand Down

0 comments on commit fba1e62

Please sign in to comment.