To run this:
pip3 install -r requirements.txt
- To run the fast subdomain scanner:
Output:
python fast_subdomain_scanner.py --help
usage: fast_subdomain_scanner.py [-h] [-l WORDLIST] [-t NUM_THREADS] [-o OUTPUT_FILE] domain Faster Subdomain Scanner using Threads positional arguments: domain Domain to scan for subdomains without protocol (e.g without 'http://' or 'https://') optional arguments: -h, --help show this help message and exit -l WORDLIST, --wordlist WORDLIST File that contains all subdomains to scan, line by line. Default is subdomains.txt -t NUM_THREADS, --num-threads NUM_THREADS Number of threads to use to scan the domain. Default is 10 -o OUTPUT_FILE, --output-file OUTPUT_FILE Specify the output text file to write discovered subdomains
- If you want to scan hackthissite.org for subdomains using only 10 threads with a word list of 100 subdomains (
subdomains.txt
):After a while, it outputs:python fast_subdomain_scanner.py hackthissite.org -l subdomains.txt -t 10
If you want to output the discovered URLs to a file:[+] Discovered subdomain: http://mail.hackthissite.org [+] Discovered subdomain: http://www.hackthissite.org [+] Discovered subdomain: http://forum.hackthissite.org [+] Discovered subdomain: http://admin.hackthissite.org [+] Discovered subdomain: http://stats.hackthissite.org [+] Discovered subdomain: http://forums.hackthissite.org
This will create a new filepython fast_subdomain_scanner.py hackthissite.org -l subdomains.txt -t 10 -o discovered_urls.txt
discovered_urls.txt
that includes the discovered subdomains. - For bigger subdomain wordlists, check this repository.