Nmap
Examples
Nmap scan
sudo -n nmap -Pn -n -sV -oX - -p 0-65535 $target | tee nmap-output.xml
Format nmap output
cat nmap-output.xml | reptor nmap -oX
| Hostname | IP | Port | Service | Version |
| ------- | ------- | ------- | ------- | ------- |
| www.google.com | 142.250.180.228 | 80/tcp | http | gws |
| www.google.com | 142.250.180.228 | 443/tcp | https | gws |
| www.syslifters.com | 34.249.200.254 | 80/tcp | http | n/a |
| www.syslifters.com | 34.249.200.254 | 443/tcp | https | n/a |
Upload table to notes
cat nmap-output.xml | reptor nmap -oX --upload
Usage
usage: reptor nmap [-h] [--parse | --format | --upload] [--xml | -oX | -oG]
format nmap output
optional arguments:
-h, --help show this help message and exit
--parse
--format
--upload
--xml
-oX nmap XML output format, same as --xml (recommended)
-oG, --grepable nmap Grepable output format