-
Notifications
You must be signed in to change notification settings - Fork 55
Examples
This page contains screenshots and examples of output
Command used:
nmap-formatter html example.xml --html-toc-float=true > example.html
Screenshot:
Command used:
nmap-formatter html example.xml --html-dark-mode=false > example-light.html
Screenshot:
Command used:
nmap-formatter md example.xml > example.md
Screenshot (VSCode markdown preview):
Command:
nmap-formatter csv example.xml > example.csv
Screenshot (LibreOffice Calc):
Command:
cat example.json | nmap-formatter json | jq
Screenshot:
Command:
cat example.xml | nmap-formatter dot | dot -Tsvg > test.svg
Screenshot 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 sqlite
Open 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