A script that accepts wildcard domains via STD-IN or command-line arguments, scrapes crt.sh for unique subdomains, and outputs the scraped subs to STD-OUT.
- verify dependencies
- Collect and store list of wildcard domains passed to the script via STD-IN or command-line arguments.
- enter while loop
- Query crt.sh, parse the json, and remove duplicate results
- Add unique domains to array
- repeat until all wildcard domains have been utilized and then exit the loop.
- print array of scraped subdomains to STD-OUT
cat ./wildcards | ./crtsh-recon.sh | tee crtsh-output.txt
OR
./crtsh-recon.sh tesla.com tesla.cn teslamotors.com | tee crtsh-output.txt
This script was written for the purpose of performing recon on bug bounty programs. Do not use this script for illegal/unauthorized security testing.