Converts Nmap XML output to csv file, and other useful functions. Ignores hosts that are down and ports that are not open.
python3 nmap_xml_parser.py -f nmap_scan.xml -csv nmap_scan.csv
python3 nmap_xml_parser.py -f nmap_scan.xml -p
python3 nmap_xml_parser.py -f nmap_scan.xml -ip
Displays in format http(s)://ipaddr:port if port is a possible web port
python3 nmap_xml_parser.py -f nmap_scan.xml -pw
Displays the 10 least common open ports
python3 nmap_xml_parser.py -f nmap_scan.xml -lc 10
Displays the 10 most common open ports
python3 nmap_xml_parser.py -f nmap_scan.xml -mc 10
Displays only IP addresses where port 23 is open
python3 nmap_xml_parser.py -f nmap_scan.xml -fp 23