┌──(root㉿kali)-[/miaosec/maze-sec] └─# nmap -sn 192.168.2.0/24 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-09-24 14:55 CST Nmap scan report for 192.168.2.1 Host is up (0.00035s latency). MAC Address: 0A:00:27:00:00:07 (Unknown) Nmap scan report for 192.168.2.2 Host is up (0.00044s latency). MAC Address: 08:00:27:8B:9E:BA (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.2.16 Host is up (0.00058s latency). MAC Address: 08:00:27:C5:75:79 (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.2.4 Host is up. Nmap done: 256 IP addresses (4 hosts up) scanned in 2.14 seconds
靶机IP:192.168.2.16
2、端口扫描
1.全端口扫描
1 2 3 4 5 6 7 8 9 10 11
┌──(root㉿kali)-[/miaosec/maze-sec] └─# nmap --min-rate 10000 -p- 192.168.2.16 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-09-24 14:55 CST Nmap scan report for 192.168.2.16 Host is up (0.00080s latency). Not shown: 65534 closed tcp ports (reset) PORT STATE SERVICE 80/tcp open http MAC Address: 08:00:27:C5:75:79 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 5.74 seconds
┌──(root㉿kali)-[/miaosec/maze-sec] └─# nmap --min-rate 10000 -sT -sV -sC -O -p80 192.168.2.16 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-09-24 14:56 CST Nmap scan report for 192.168.2.16 Host is up (0.00080s latency).
PORT STATE SERVICE VERSION 80/tcp open http Apache httpd 2.2.22 ((Ubuntu)) |_http-title: HYH |_http-server-header: Apache/2.2.22 (Ubuntu) MAC Address: 08:00:27:C5:75:79 (Oracle VirtualBox virtual NIC) 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 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 and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 9.01 seconds
3.udp扫描
1 2 3 4 5 6 7 8 9 10 11
┌──(root㉿kali)-[/miaosec/maze-sec] └─# nmap -sU --top-ports 100 192.168.2.16 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-09-24 14:56 CST Nmap scan report for 192.168.2.16 Host is up (0.0011s latency). Not shown: 55 closed udp ports (port-unreach), 44 open|filtered udp ports (no-response) PORT STATE SERVICE 5353/udp open zeroconf MAC Address: 08:00:27:C5:75:79 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 50.81 seconds