Check subdomains for subdomain takeovers and other DNS tomfoolery
Actively maintained. Last release 8 weeks ago, commits in 14 of the last 26 weeks. A safe choice.
pip install baddnsREADME as published on PyPI with version 2.5.0.
BadDNS
Check subdomains for subdomain takeovers and other DNS tomfoolery
BadDNS is a standalone tool and BBOT module for detecting domain/subdomain takeovers of all kinds, including other DNS issues like NSEC walks and Subdomain Takeovers.
Check out the introductory blog on the BLS substack!
Installation
We have a pypi package, so you can just do pip install baddns to make use of the library.
Or use pipx: pipx install git+https://github.com/blacklanternsecurity/baddns
Usage
After installing with pip, you can just run baddns from the command line.
usage: baddns [-h] [-n CUSTOM_NAMESERVERS] [-c CUSTOM_SIGNATURES] [-l] [-s] [-m MODULES] [-d] [-D] [target]
Check subdomains for subdomain takeovers and other DNS tomfoolery
positional arguments:
target subdomain to analyze
options:
-h, --help show this help message and exit
-n CUSTOM_NAMESERVERS, --custom-nameservers CUSTOM_NAMESERVERS
Provide a list of custom nameservers separated by comma.
-c CUSTOM_SIGNATURES, --custom-signatures CUSTOM_SIGNATURES
Use an alternate directory for loading signatures
-l, --list-modules List available modules and their descriptions.
-s, --silent Only show results, no other output (JSON format)
-m MODULES, --modules MODULES
Comma separated list of module names to use. Ex: module1,module2,module3
-d, --debug Enable debug logging
-D, --direct Enable direct mode