Skip to content

A Java parser that converts nmap xml output to a POJO without any additional dependencies

License

Notifications You must be signed in to change notification settings

martinspielmann/java-nmap-xml-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-nmap-xml-parser

A Java parser that converts nmap xml output to a POJO without any additional dependencies.

For whatever reason you might want to work with Java on your nmap results o.0

license maven central Security Rating

Getting Started

Prerequisites

This library requires Java 17 as a minimum version.

The easiest way to install nmapxmlparser is importing it via Maven. It is available from Maven Central:

<dependency>
  <groupId>de.martinspielmann.nmapxmlparser</groupId>
  <artifactId>nmapxmlparser</artifactId>
  <version>1.0.0</version>
</dependency>

Usage

// run 'nmap -oX' to get the result in XML format.
var parser = new NmapXmlParser();
var nmapRunFromString = parser.parse(yourNmapXmlResultAsString);

var nmapRunFromPath = parser.parse(Paths.get("pathToXmlResultFile"));

Contributing

Any contributions you make will benefit everybody else and are greatly appreciated.

License

This project is licensed under the Apache License v2. Feel free to edit and distribute this template as you like.

See LICENSE for more information.

About

A Java parser that converts nmap xml output to a POJO without any additional dependencies

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages