Developed by Jake Miller - https://twitter.com/LaconicWolf/
Updated and extended by Stefan Kraxberger - https://twitter.com/skraxberger/
Released as open source by secinto GmbH - https://secinto.com/
Released under Apache License version 2.0 see LICENSE for more information
Converts Nmap XML output to JSON or CSV files, and other useful functions. Ignores hosts that are down and ports that are not open. Prints the parsed IP and port combinations in different formats
python3 nmapXMLParser.py -f nmap_scan.xml -json nmap_scan.json
python3 nmapXMLParser.py -f nmap_scan.xml -csv nmap_scan.csv
python3 nmapXMLParser.py -f nmap_scan.xml -p
python3 nmapXMLParser.py -f nmap_scan.xml -ip
Displays in format ipaddr:port
python3 nmapXMLParser.py -f nmap_scan.xml -pip
Displays in format http(s)://ipaddr:port if port is a possible web port
python3 nmapXMLParser.py -f nmap_scan.xml -pw
Displays the 10 least common open ports
python3 nmapXMLParser.py -f nmap_scan.xml -lc 10
Displays the 10 most common open ports
python3 nmapXMLParser.py -f nmap_scan.xml -mc 10
Displays only IP addresses where port 23 is open
python3 nmapXMLParser.py -f nmap_scan.xml -fp 23