Giter Club home page Giter Club logo

nmap-csv-xlsx's Introduction

Nmap XML to CSV

There are many great projects and scripts around for generating Nmap reports from XML. With this script I needed a simple python script that I could easily customise the output csv.

Nmap XML has so much detailed information it is difficult to get an all in one reporting script that pulls everything you need for your reporting.

You may find this script useful as a template to extract any information you need into csv columns (each host on a row).

The default script extracts open ports only and shows product in the port column if found otherwise it shows open.

Also shows ptr for host and number of filtered ports (for an idea of firewall coverage).

test@thematrix:~$ sudo nmap -F -sV -oX nmapresults 10.0.0.0/8
test@thematrix:~$ python3 nmap-xml-to-csv.py nmapresults.xml

Here's why:

  • Nmap Rocks.
  • Security reporting is time consuming. Automate as much as you can.

Nmap XML to JSON?

If you have a need for Nmap results in json output. It would not be difficult to adapt this script to extract the required data points and generate json from the python results dictionary.

Built With

CSV to XLSX

This script was built to build an XLSX document with multiple sheets for each Nmap port scanned range. However, it could be used to combine any csv's into an XLSX.

The example will combine test1, test2, test3 into a single xlsx (default.xlsx) with each csv on a sheet. Minor formatting changes have been applied.

test@thematrix:~$ python3 csv-to-xlsx.py test1.csv test2.csv test3.csv

Here's why:

  • Spreadsheets suck. Automate as much as you can.

Built With

nmap-csv-xlsx's People

Contributors

peter-hackertarget avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.