getaltname: Extract subdomains from SSL certificates in HTTPS sites
GetAltName
GetAltName (or GAN) is a tool that can extract Subject Alternative Names found in SSL Certificates directly from HTTPS websites which can provide you with DNS names (subdomains) or virtual servers.
This code extracts subdomain names from https sites and returns a list or json output of its findings. It is not a subdomain brute-force tool, and you can find those subdomains manually, this tool is about the automation of that process, it also offers the following features:
- Input a host or Nmap XML file to scan and return subdomains.
- List or JSON output, useful if you want to export data into other tools.
- You can optionally filter out domain names that don’t match the domain name that you’re analyzing.
- Copy to your clipboard the domain names as a list or string if you don’t want to deal with files, this is also useful for tools that don’t accept file input.
Features
- File output
- Output to clipboard
- Clean sub-domains wildcards
- Remove duplicates
- A filter system for the main domain and TLD’s.
- Add colors (so l33t. /s)
- Get additional sub-domains from crt.sh
- Read Nmap XML and analyze them
- JSON Output
- Unit Tests
Installation
$ git clone https://github.com/franccesco/getaltname.git
$ pip install -r requirements.txt
Usage
Demo
Copyright (c) [2018] [Franccesco Orozco]
Source: https://github.com/franccesco/