┌──(root㉿kali)-[/miaosec] └─# nmap -sn 192.168.2.0/24 Starting Nmap 7.94SVN ( https://nmap.org ) at 2026-01-06 09:30 CST Nmap scan report for 192.168.2.1 Host is up (0.00053s latency). MAC Address: 0A:00:27:00:00:07 (Unknown) Nmap scan report for 192.168.2.2 Host is up (0.00029s latency). MAC Address: 08:00:27:CC:CD:C8 (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.2.33 Host is up (0.00084s latency). MAC Address: 08:00:27:89:FE:07 (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.09 seconds
靶机IP:192.168.2.33
2、端口扫描
1.全端口扫描
1 2 3 4 5 6 7 8 9 10 11 12
┌──(root㉿kali)-[/miaosec] └─# nmap --min-rate 10000 -p- 192.168.2.33 Starting Nmap 7.94SVN ( https://nmap.org ) at 2026-01-06 09:31 CST Nmap scan report for 192.168.2.33 Host is up (0.00061s latency). Not shown: 65533 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http MAC Address: 08:00:27:89:FE:07 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 3.94 seconds
┌──(root㉿kali)-[/miaosec] └─# nmap --min-rate 10000 -sT -sV -sC -O -p22,80 192.168.2.33 Starting Nmap 7.94SVN ( https://nmap.org ) at 2026-01-06 09:31 CST Nmap scan report for 192.168.2.33 Host is up (0.00082s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 10.2 (protocol 2.0) 80/tcp open http Apache httpd 2.4.66 |_http-title: Did not follow redirect to http://alpine.nyx/ |_http-server-header: Apache/2.4.66 (Unix) MAC Address: 08:00:27:89:FE:07 (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 4.X|5.X OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5 OS details: Linux 4.15 - 5.8 Network Distance: 1 hop Service Info: Host: default
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 8.58 seconds
找到一个域名:alpine.nyx
3.udp扫描
1 2 3 4 5 6 7 8 9 10
┌──(root㉿kali)-[/miaosec] └─# nmap -sU --top-ports 100 192.168.2.33 Starting Nmap 7.94SVN ( https://nmap.org ) at 2026-01-06 09:32 CST Nmap scan report for 192.168.2.33 Host is up (0.0030s latency). All 100 scanned ports on 192.168.2.33 are in ignored states. Not shown: 100 closed udp ports (port-unreach) MAC Address: 08:00:27:89:FE:07 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 98.12 seconds