Skip to content

This is a tool for parsing nmap xml file to csv or json

Notifications You must be signed in to change notification settings

qazbnm456/parsenmap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parsenmap

This is a tool for parsing nmap xml file to csv or json.

USAGE:
      $ parsenmap <from> <to> -f <filetype>

FLAGS:
      -h, --help - Prints help information
      -V, --version - Prints version information

OPTIONS:
      -f {filetype} - Output file format csv or json

ARGS:
      {from} - Nmap xml file path
      {to} - Output file path

EXAMPLE:
      $ parsenmap nmap.xml nmap.csv -f csv

IN-CODE USAGE EXAMPLE:

use parsenmap::models::scan::FileType;

fn main() {
    let scan:Scan = parsenmap::parse("nmap.xml").unwrap();
    scan.write_to_file(FileType::CSV, "nmap.csv".unwrap());
    let json:String =  scan.to_json();
    let csv:String =  scan.to_csv();
}

About

This is a tool for parsing nmap xml file to csv or json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%