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
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>
// 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"));
Any contributions you make will benefit everybody else and are greatly appreciated.
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.