CRTFinder is a simple tool to retrieve a list of subdomains for a given domain using data from crt.sh, a website that provides public SSL certificate information. The tool automatically removes duplicate subdomains and ensures that only valid subdomains are displayed.
- Fetch subdomains from a specified domain.
- Supports single domain input or a list of domains from a file.
- Automatically removes duplicate subdomains.
- Cleans subdomains by removing
www.
prefixes and wildcard*
. - Filters out invalid domain inputs.
-
Clone the repository:
git clone https://github.com/mnovel/CRTFinder.git cd CRTFinder
-
Install dependencies:
CRTFinder uses the
requests
module, make sure it is installed. If not, run the following command:pip install requests
-
Run the script:
CRTFinder can be executed from the command line. Use Python 3.x to run it.
python CRTFinder.py -d example.com
There are two ways to use CRTFinder:
-
Fetch subdomains for a single domain:
Use the
-d
or--domain
option to specify the domain you want to retrieve subdomains for.python CRTFinder.py -d example.com
-
Fetch subdomains from a file with multiple domains:
You can provide a file containing a list of domains using the
-f
or--file
option.Each line in the file should contain one domain:
example.com example.org test.com
Then, run:
python CRTFinder.py -f domainlist.txt
Once executed, the tool will display the unique subdomains found. Here's an example of the output:
Unique Subdomains:
api.example.com
mail.example.com
www.example.com
-d
or--domain
: Specify a domain to retrieve subdomains for.-f
or--file
: Specify a file containing a list of domains to retrieve subdomains from.-h
or--help
: Display a help message and list available options.
python CRTFinder.py -d example.com
python CRTFinder.py -f domainlist.txt
This project is licensed under the MIT License.