Autossl is a python script designed to automate the process of conducting ssl scanning via sslcan (https://github.com/rbsec/sslscan).
The Autossl script parses an nmap.xml output file, extracts all SSL services and automatically performs an sslscan of them.
git clone https://github.com/TheoTurletti/Autossl.git
The pre-reqs are:
- Python3 (tested on python3.9)
- You must have sslscan installed and in your path (default in Kali)
- You need a valid Nmap XML output file (see below)
- You need python-libnmap (see below)
You can install libnmap via pip:
pip3 install python-libnmap
The Nmap XML file must have been created with version scanning enabled i.e. via Nmap flags -sV
or -A
(see below)
nmap -A -p 1-65535 -iL targets.txt -oX nmap-output.xml
nmap -sS -sV -p 1-65535 -iL targets.txt -oX nmap-output.xml
python3 ./autossl.py
USAGE: python3 autossl.py [nmap-output.xml | domain-list.txt] [output-file]
python3 ./autossl.py nmap-output.xml outfile.txt
OR
python3 ./autossl.py domain_list.txt outfile.txt
Performing sslscan of 185.176.90.16:443
Performing sslscan of 199.101.100.186:31337
sslscan results saved to: outfile.txt
SSL services list saved to: ssl-services.txt
The output from the script is a concatenated file
It is the python3 version of this repository : https://github.com/attackdebris/auto-sslscan