Skip to content

rbozburun/xml-to-csv-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

xml-to-csv-url

Convert NMAP's XML output to CSV file and print URL addresses for HTTP/HTTPS ports.

NOTE: OS Version Parsing is not working properly yet.

Features

  • Create only CSV file.
  • Print URLs with hostnames.
  • Print URLs with IP addresses.
  • Remove CSV headers from the output file.

Usage

First make the script executable.

  chmod 755 xml2url.py

Then, run.

.\xml2url.py -h
usage: xml2url.py [-h] [-f XML_FILE] [-o OUTPUT] [-n] [-pI] [-pH]

NMAP XML PARSER TO CREATE URLS

optional arguments:
  -h, --help            show this help message and exit
  -f XML_FILE, --xml_file XML_FILE
                        Nmap XML output.
  -o OUTPUT, --output OUTPUT
                        To create an output, give the CSV
                        filename (Required).
  -n, --no_headers      This flag removes the header from the CSV output File
  -pI, --print_ip       Print URLS with IP addresses.
  -pH, --print_hostname
                        Print URLS with hostnames.
.\xml2url.py -f nmap.xml -o nmap_csv_output.csv
.\xml2url.py -f nmap.xml -o nmap_csv_output.csv -pI
.\xml2url.py -f nmap.xml -o nmap_csv_output.csv -pI -pH

Related

Here are some related projects