attackdebris / nmap-ssl-parser

Nmap-ssl-parser to query nmap XML output and provide a list of usable ssl services in the format host:port

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nmap-ssl-parser

Nmap-ssl-parser is a python script designed to query nmap XML output and provide a list of usable ssl services in the format host:port

The nmap-ssl-parser script parses an nmap.xml output file, extracts all SSL services and writes them to a file.

Installation

git clone https://github.com/attackdebris/nmap-ssl-parser.git

Prerequisites

The pre-reqs are:

  1. Python (tested on Python 2.7)
  2. You need a valid Nmap XML output file (see below)

Nmap XML File

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

Usage

./nmap-ssl-parser.py 
nmap-ssl-parser - v0.2 ( https://github.com/attackdebris/nmap-ssl-parser )

USAGE: nmap-ssl-parser.py [nmap-ouput.xml] [outputfile]

Example

./nmap-ssl-parser.py nmap-output.xml ssl-services.txt
nmap-ssl-parser - v0.2 ( https://github.com/attackdebris/nmap-ssl-parser )

Results saved to: ssl-services.txt

Output / Results

The output from the script is a concatenated file (see below)

cat ssl-services.txt 

185.176.90.16:443
199.101.100.186:31337

Credit

The base code I used to create this: https://github.com/DanMcInerney/nmap-parser/blob/master/nmap-parser.py

About

Nmap-ssl-parser to query nmap XML output and provide a list of usable ssl services in the format host:port


Languages

Language:Python 100.0%