SSLCI (SSL Certificate Inspector) is a lightweight and efficient tool built with Bash for discovering subdomains and apex domains from SSL certificates. It is especially useful for identifying cloud-based assets
- Accepts single IPs or CIDR ranges for scanning.
- Inspects SSL certificates to extract subdomains and apex domains.
- Outputs organized results in a user-friendly format.
- Saves results to a specified file for further analysis.
- openssl
- nc
-
Clone the repository:
git clone https://github.com/yourusername/SSLCI.git cd SSLCI
-
Make the script executable:
chmod +x sslci.sh
-
download the required softwares listed above:
apt install openssl apt install netcat-openbsd
./sslci.sh <IP_OR_RANGE> <OUTPUT_FILE>
<IP_OR_RANGE>
: Specify a single IP (e.g.,10.0.0.1
) or a CIDR range (e.g.,10.0.0.0/16
).<OUTPUT_FILE>
: Provide the filename to save the results (e.g.,results.txt
).
./sslci.sh 10.0.0.2 results.txt
Output (results.txt):
[inspecting ssl_cert from : 10.0.0.2:443 ][*.domain.com, supp.example.com]
./sslci.sh 10.0.0.0/24 results.txt
Output (results.txt):
[inspecting ssl_cert from : 10.0.0.1:443][*.cloudhost.com, api.cloudhost.com]
[inspecting ssl_cert from : 10.0.0.2:443][*.example.com, admin.example.com]
...
- Each line in the output represents an inspected IP and its associated subdomains.
- Format:
[<IP>:<PORT>][<SUBDOMAINS>]
- Cloud-Based Target Discovery: Identify assets hosted on cloud infrastructure.
- Penetration Testing: Simplify the reconnaissance phase by uncovering subdomains.
- CTF Challenges: Accelerate web-based challenges requiring domain discovery.