Module flags are static, but some modules are active or passive depending on config

Open
#3,358 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@liquidsec is already working on this.

Since Jul 30, 2026.

Assessment

This issue has not been assessed yet.

Description

bug

flags is a static class attribute, AST-preloaded by module_loader before any config is resolved. Some modules only touch the target in certain configurations, so a single static flag list can't describe them accurately.

wayback is declared flags = ["safe", "passive", "subdomain-enum"], but:

  • urls=False (default): queries archive.org's CDX API and emits DNS_NAMEs. Passive.
  • urls=True: sends one HEAD / per discovered host to check liveness before emitting its URLs. Active.

Flags drive module selection (-f passive, -rf, --exclude-flags active), so -f passive -c modules.wayback.urls=true produces target traffic in a scan the user expects to be passive.

Separately, wayback.py:259 calls _is_http_wildcard_host() on every DNS_NAME regardless of urls, so it already probes targets in its default config.

Other modules with behavior-changing options may have the same problem; not audited.

Dominant language
Python
Stars
10.9k
Forks
959
Avg merge
2d 7h
Merged PRs (30d)
84

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from blacklanternsecurity/bbot

All issues in blacklanternsecurity/bbot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.