KnockPy discovers subdomains using passive sources, optional bruteforce wordlists, or both. It validates HTTP/HTTPS status, TLS, and IPs, with SQLite reports and JSON output.
Overview
KnockPy is a modular Python 3 command-line tool for finding subdomains of a target domain. It supports asynchronous scanning with httpx and DNS resolution, passive reconnaissance from configurable sources, and bruteforce against a bundled or custom wordlist.
Output uses formatted terminal views and can be limited to JSON. The tool checks zone transfer on the root domain in domain mode, detects wildcard DNS, flags legacy TLS versions, and offers verbose single-domain diagnostics. Reports are stored in SQLite with interactive show, delete, export, and search.
Passive sources are defined in a JSON config with parsers for several third-party response formats. Optional VirusTotal and Shodan API keys extend recon. Concurrency is tuned with --threads and --timeout flags, and the tool can be imported as a Python module.
Installation is documented from GitHub source with Python 3.9 or newer recommended.
Key features
- Async HTTP and DNS scanning
- Passive recon and bruteforce modes
- Configurable passive sources
- SQLite scan reports
- Wildcard DNS detection
- AXFR check on root domain
- VirusTotal and Shodan APIs
- Rich terminal and JSON output
Use cases
- Bug bounty subdomain discovery
- Security recon on a domain
- Export HTML or SQLite reports
- Test passive source configuration
- Batch scans from domain lists