Skip to content

Python script for converting nmap reports into XLSX

License

Notifications You must be signed in to change notification settings

mebibite/nmap-converter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmap-converter

Python script for converting nmap reports into XLSX, a friendly fork of https://github.com/mrschyte/nmap-converter

Requirements

sudo pip install python-libnmap
sudo pip install XlsxWriter

or

sudo pip install -r requirements.txt

Usage

usage: nmap-converter.py [-h] [-o XLSX] XML [XML ...]

positional arguments:
  XML                   path to nmap xml report

optional arguments:
  -h, --help            show this help message and exit
  -o XLSX, --output XLSX  path to xlsx output

Changes

  • Forcing use of Python 3.
  • Fixed issues I encountered with 'script["output"]'. Implemented try/except to avoid fatal errors.
  • Added 'PTR' column in 'Hosts' sheet, hostnames are stored as an array.
  • Using XLSX instead of XLS, as XLS gave validation errors upon opening in Microsoft Office.

About

Python script for converting nmap reports into XLSX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%