Skip to content

attackdebris/nmap-ssl-parser

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages