Coder Social home page Coder Social logo

nmap-parser-xml-to-csv's Introduction

Script for parsing nmap xml output to csv format

This script originally by Didier Stevens, modified by Sumedt Jitpukdebodin, changed to a SAX parser by liamosaur

Version

  • 0.1 - Change some display and fix the bug of parser multiple ports and hosts
  • 0.2 - Rearrange columns and add end time column into output csv.
  • 0.3 liamosaur - Rewritten to use a SAX XML parser instead of a DOM parser, so it doesn't explode and run out of memory if used on large XML files (from scanning Class B blocks etc)

How to use

  1. Normal usage for display result ./nmap-xml-script-output-modify.py test.xml
  2. Change default delimiter(;) to , ./nmap-xml-script-output-modify.py test.xml -s ,
  3. Output to test.csv ./nmap-xml-script-output-modify.py test.xml -s , -o test.csv

For sanity, you may want to filter out "filtered" ports, which I'll probably add a script option for at some stage

Also, since the parser conversion, this hasn't been widely tested on a bunch of environments, so probably contains bugs.

nmap-parser-xml-to-csv's People

Contributors

liamosaur avatar

Watchers

Olivier Houte 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.