/nmap-parse-http

Takes Nmap scan results from standard input and generates a browser command to open all HTTP results in a new tab.

Primary LanguagePython

Easily view HTTP Nmap scan results.
Takes Nmap scan results from standard input and generates a browser command to open all HTTP results in a new tab.

Usage:
cat nmap-results.scan | nph.py [-h] [-v] [-i INPUT_FORMAT] [-b BROWSER] [-p PORTS]

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit
  -i {g,x,n}     format of Nmap results: ([g]repable, [x]ml, [n]ormal)
                 (default: grepable)
  -p PORTS       comma-seperated list of ports to include as HTTP results.
                 (default:80,443)
  -b {f,c,i,ch}  browser: ([f]irefox, [c]hrome, [i]ceweasel, [ch]romium)
                 (default: firefox)

Example:
cat nmap-results.scan | nph.py
firefox http://result1:80 https://result2:443 http://result3:8080 https://result4:8443 http://10.240.1.2:80 https://10.240.1.3:443

Installation:
cp nph.py /usr/local/bin/nph
chmod a+x /usr/local/bin/nph