- 
                Notifications
    You must be signed in to change notification settings 
- Fork 56
Examples
This page contains screenshots and examples of output
Command used:
nmap-formatter html example.xml --html-toc-float=true > example.htmlScreenshot:

Command used:
nmap-formatter html example.xml --html-dark-mode=false > example-light.htmlScreenshot:

Command used:
nmap-formatter md example.xml > example.mdScreenshot (VSCode markdown preview):

Command:
nmap-formatter csv example.xml > example.csvScreenshot (LibreOffice Calc):

Command:
cat example.json | nmap-formatter json | jqScreenshot:

Command:
cat example.xml | nmap-formatter dot | dot -Tsvg > test.svgScreenshot of the SVG file opened in the browser:

The example file here is radialnet.xml taken from here: https://github.com/nmap/nmap/blob/master/zenmap/radialnet/share/sample/nmap_example.xml
Command:
cat example.xml | nmap-formatter sqliteOpen nmap.sqlite file.
A unique scan with joined IP/hostname addresses (nf_ prefix in database tables are nmap-formatter specific columns)

A case with ports:

SQLite database allows to query all kinds of data very flexibly and SQLite format is easily transferrable.
Excel output looks like this:
cat example.xml | nmap-formatter excel > example.xlsx
The D2 lang (https://d2lang.com/tour/intro) is very flexible diagram scripting language that can help you to build quite nice graphs.
Notice: It's faster to generate SVG instead
cat example.xml | nmap-formatter d2 | d2 --theme 200 --layout elk example.png