Author:
Per Stenebo
Per Stenebo
Created:
2018-03-19 19:00:31
2018-03-19 19:00:31
Modified:
2018-03-19 19:15:34
2018-03-19 19:15:34
nmap
Nmap ("Network Mapper") is a free and open source utility for network discovery and security auditing.
| Ubuntu manpage | cheat sheet |
Install nmap with CLI:
sudo apt install nmap
Scan network, list machines that respond to ping.
nmap -sP 192.168.0.0/24
Full TCP port scan using with service version detection - usually my first scan, I find T4 more accurate than T5 and still "pretty quick". Replace target with hostname or ip:
sudo nmap -p 1-65535 -sV -sS -T4 target
Scan port with TCP:
nmap -p 22 example.org
Scan port with UDP:
sudo nmap -sU -p 10001 192.168.0.1