A fast, multi-threaded OSINT subdomain enumeration tool written in Python. SubHunt performs DNS resolution to discover subdomains and optionally verifies their HTTP/HTTPS status.
- Fast DNS Resolution: Uses multi-threading to resolve subdomains concurrently.
- HTTP/HTTPS Verification: Optional status checking; tries HTTPS first (if port 443 is reachable), then falls back to HTTP.
- Subdomain Permutation: Generate permutations using wordlist entries (e.g.,
api-admin,api.admin). - Safety Limits: Built-in permutation limit to prevent accidental memory bloat; use
--force-permuteto override. - Verbose Logging: Debug output via
-vflag. - File Output: Save results to a file with
-o. - Bundled Wordlist: Includes a curated list of common subdomains; bring your own with
-w.
git clone https://github.com/Akira-KD/subhunt.git
cd subhunt
pip install -e .pip install subhuntScan for common subdomains using the bundled wordlist:
subhunt example.comCheck HTTP/HTTPS status for resolved subdomains:
subhunt example.com --verify-httpGenerate subdomain permutations (e.g., api-admin, api.admin):
subhunt example.com --permute--max-permutations to set a safety limit (default: 10,000). Force override with --force-permute if needed.
Use a custom wordlist:
subhunt example.com -w /path/to/wordlist.txtSave results:
subhunt example.com --verify-http -o results.txtAdjust thread count and request delay:
subhunt example.com -t 20 --delay 0.5usage: subhunt [-h] [-w WORDLIST] [-t THREADS] [--permute]
[--max-permutations MAX_PERMUTATIONS] [--force-permute]
[--delay DELAY] [-o OUTPUT] [-v] [--verify-http]
domain
positional arguments:
domain Target domain
optional arguments:
-h, --help Show this help message and exit
-w, --wordlist WORDLIST Path to wordlist file (default: bundled)
-t, --threads THREADS Number of threads (default: 10)
--permute Enable subdomain permutations
--max-permutations INT Maximum allowed permutations (default: 10000)
--force-permute Force generating permutations beyond limit
--delay DELAY Delay between requests in seconds (default: 0.0)
-o, --output OUTPUT Save results to file
-v, --verbose Enable verbose logging
--verify-http Verify HTTP/HTTPS status
pip install -r requirements-dev.txtpytestruff check .This project is licensed under the MIT License. See LICENSE file for details.