Skip to content

D4-project/nmap2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmap2json

Description

nmap2json is a simple python script to convert nmap xml output to json object. You may save json, per ip, or send it to the direct output.

Example

Usage is simple; after running a nmap scan using export into XML file, for example with;

$ nmap -v -A -oX myoutput.xml -p 25,80,443,22 -Pn www.whateveryouscan.domain

you could simply output the results as a json object.

$ python nmap2json.py -i myoutput.xml

Help

usage: nmap2json.py [-h] -i INPUT [-o OUTPUT] [-m]

Convert Nmap XML to JSON

options:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input Nmap XML file
  -o OUTPUT, --output OUTPUT
                        Output JSON file (prints to stdout if omitted)
  -m, --multiple        Enable multiple JSON outputs (IP prefixed)

About

Library to Convert XML Nmap output to usable JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages