Skip to content

isanjaymenon/crtsf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 CRTSF 🔍

❎ crt.sh subdomain finder ❎

ℹ️ A Bash script that uses the crt.sh Certificate Transparency log to find subdomains ℹ️

Features

  • Fetch subdomains for a single domain or multiple domains from a file
  • Automatic dependency installation (jq, curl)
  • Configurable curl timeout and retry attempts
  • Colorized output for better readability
  • Option to output results to stdout or save to files
  • Custom output directory support

Prerequisites

  • Bash shell
  • Internet connection
  • Either root access or permission to install packages (for automatic dependency installation)

Installation

  1. Clone this repository or download the crtsf.sh script:
git clone https://github.com/isanjaymenon/crtsf.git
cd crtsf
  1. Make the script executable:
chmod +x crtsf.sh

Usage

Basic usage:

./crtsf.sh -d example.com

Advanced usage:

./crtsf.sh -d example.com -o /path/to/output -t 60 -r 5

Options:

  • -d: Domain to search
  • -f: File containing a list of domains
  • -o: Output directory (default: ./crtsf-results)
  • -s: Output to stdout instead of a file
  • -t: Curl timeout in seconds (default: 30)
  • -r: Maximum number of retries (default: 3)
  • -h: Display help message

Examples

  1. Search for subdomains of a single domain:
./crtsf.sh -d example.com
  1. Search for subdomains of multiple domains from a file:
./crtsf.sh -f domains.txt
  1. Custom output directory and increased timeout:
./crtsf.sh -d example.com -o /tmp/subdomains -t 60
  1. Output results to stdout:
./crtsf.sh -d example.com -s

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • crt.sh for providing certificate transparency log data
  • curl for transferring data specified with URL syntax
  • jq for JSON processing

Disclaimer

Ensure you have permission to scan domains that you do not own.

Contact

For any queries or suggestions, please open an issue in this repository.