Skip to content

Nmap

Examples

Nmap scan
1
sudo -n nmap -Pn -n -sV -oX - -p 0-65535 $target | tee nmap-output.xml
Format nmap output
1
2
3
4
5
6
7
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 |
1
2
cat nmap-output.xml | reptor nmap -oX --upload  # Upload table to notes
reptor nmap -oX -i nmap_1.xml nmap_2.xml --upload  # Use multiple input files

Uploaded nmap notes

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
usage: reptor nmap [-h] [-i [INPUT [INPUT ...]]]
                   [--format | --upload | --parse] [--xml | -oX | -oG]

format nmap output

optional arguments:
  -h, --help            show this help message and exit
  -i [INPUT [INPUT ...]], --input [INPUT [INPUT ...]]
                        Input file, if not stdin (multiple files allowed)
  --format
  --upload
  --parse
  --xml
  -oX                   nmap XML output format, same as --xml (recommended)
  -oG, --grepable       nmap Grepable output format