➜ ~ nmap -sP 192.168.1.0/24 Starting Nmap 7.91 ( https://nmap.org ) at 2021-09-01 16:42 CST Nmap scan report for nsys.cn (192.168.1.1) Host is up (0.00078s latency). Nmap scan report for 192.168.1.9 Host is up (0.086s latency). Nmap scan report for 192.168.1.10 Host is up (0.00054s latency). ... Nmap done: 256 IP addresses (29 hosts up) scanned in 2.64 seconds
➜ ~ nmap -P0 192.168.1.0/24 Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower. Starting Nmap 7.91 ( https://nmap.org ) at 2021-09-01 16:45 CST Nmap scan report for 192.168.1.0 Host is up (0.000029s latency). All 1000 scanned ports on 192.168.1.0 are filtered
Nmap scan report for nsys.cn (192.168.1.1) Host is up (0.0020s latency). Not shown: 998 filtered ports PORT STATE SERVICE 80/tcp open http 1723/tcp open pptp ... Nmap scan report for 192.168.1.97 Host is up (0.000019s latency). Not shown: 863 closed ports, 135 filtered ports PORT STATE SERVICE 5900/tcp open vnc 8086/tcp open d-s-n
➜ ~ sudo nmap -sS 192.168.1.0/24 Starting Nmap 7.91 ( https://nmap.org ) at 2021-09-01 16:52 CST Nmap scan report for nsys.cn (192.168.1.1) Host is up (0.00032s latency). Not shown: 993 filtered ports PORT STATE SERVICE 80/tcp open http 443/tcp closed https xxx MAC Address: xxxx ... Nmap scan report for 192.168.1.97 Host is up (0.000017s latency). Not shown: 499 closed ports, 499 filtered ports PORT STATE SERVICE 5900/tcp open vnc 8086/tcp open d-s-n
Nmap done: 256 IP addresses (100 hosts up) scanned in 127.95 seconds
-sT TCP connect()扫描
-sU UDP 扫描
-sA TCP ACK扫描
-sw TCP窗口扫描
端口说明和扫描顺序
-p 只扫描指定端口
-F 快速有限的端口
-r 不要按随机顺序扫描
服务和版本探测
-v
1 2 3 4 5 6 7 8 9 10 11 12 13
nmap -sV 192.168.1.236 Starting Nmap 7.91 ( https://nmap.org ) at 2021-09-01 17:18 CST Nmap scan report for 192.168.1.236 Host is up (1.0s latency). Not shown: 996 closed ports PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.4 (protocol 2.0) 111/tcp open rpcbind 2-4 (RPC #100000) 9100/tcp open jetdirect? 38292/tcp open java-rmi Java RMI
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 36.78 seconds
-O
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
➜ ~ sudo nmap -O 192.168.1.236 Starting Nmap 7.91 ( https://nmap.org ) at 2021-09-01 17:20 CST Nmap scan report for 192.168.1.236 Host is up (0.00057s latency). Not shown: 996 closed ports PORT STATE SERVICE 22/tcp open ssh 111/tcp open rpcbind 9100/tcp open jetdirect 38292/tcp open landesk-cba MAC Address: 52:xxxxxxx:49 (QEMU virtual NIC) Device type: general purpose Running: Linux 3.X|4.X OS CPE: cpe:/o:linux:linux_kernel:3 cpe:/o:linux:linux_kernel:4 OS details: Linux 3.2 - 4.9 Network Distance: 1 hop
OS detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 1.91 seconds