# 探测出端口 ┌──(kali㉿kali)-[~] └─$ nmap 192.168.178.130 Starting Nmap 7.95 ( https://nmap.org ) at 2025-04-18 09:13 EDT Nmap scan report for 192.168.178.130 Host is up (0.0000030s latency). Not shown: 999 closed tcp ports (reset) PORT STATE SERVICE 8888/tcp open sun-answerbook
Nmap done: 1 IP address (1 host up) scanned in 0.13 seconds
┌──(kali㉿kali)-[~] └─$ nmap 192.168.178.0/24 Starting Nmap 7.95 ( https://nmap.org ) at 2025-04-20 09:32 EDT Nmap scan report for 192.168.178.1 Host is up (0.00032s latency). All 1000 scanned ports on 192.168.178.1 are in ignored states. Not shown: 1000 filtered tcp ports (no-response) MAC Address: 00:50:56:C0:00:08 (VMware)
Nmap scan report for 192.168.178.2 Host is up (0.00010s latency). Not shown: 999 closed tcp ports (reset) PORT STATE SERVICE 53/tcp open domain MAC Address: 00:50:56:F6:6C:BA (VMware)
Nmap scan report for 192.168.178.254 Host is up (0.000099s latency). All 1000 scanned ports on 192.168.178.254 are in ignored states. Not shown: 1000 filtered tcp ports (no-response) MAC Address: 00:50:56:E7:15:C1 (VMware)
Nmap scan report for 192.168.178.130 Host is up (0.0000040s latency). All 1000 scanned ports on 192.168.178.130 are in ignored states. Not shown: 1000 closed tcp ports (reset)
Nmap done: 256 IP addresses (4 hosts up) scanned in 8.50 seconds
┌──(kali㉿kali)-[~] └─$ nmap -T4 -sn 192.168.178.130 Starting Nmap 7.95 ( https://nmap.org ) at 2025-04-20 09:52 EDT Nmap scan report for 192.168.178.130 Host is up. Nmap done: 1 IP address (1 host up) scanned in 0.01 seconds
4.系统版本扫描
1
sudo nmap -O --osscan-guess 192.168.178.130
5.其他扫描
1
nmap 192.168.178.130 -O -sV -T4 -sS -p 22
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
┌──(kali㉿kali)-[~] └─$ nmap 192.168.178.130 -O -sV -T4 -sS -p 22 Starting Nmap 7.95 ( https://nmap.org ) at 2025-04-20 10:10 EDT Nmap scan report for 192.168.178.130 Host is up (0.000062s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 9.9p2 Debian 1 (protocol 2.0) Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: general purpose Running: Linux 2.6.X|5.X OS CPE: cpe:/o:linux:linux_kernel:2.6.32 cpe:/o:linux:linux_kernel:5 cpe:/o:linux:linux_kernel:6 OS details: Linux 2.6.32, Linux 5.0 - 6.2 Network Distance: 0 hops Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 1.49 seconds
open 打开 close 关闭 filltered 过滤 unfilltered 未被过滤(无法确定端口状态)