┌──(root㉿kali)-[~/miaosec] └─# nmap -sn 192.168.2.0/24 Starting Nmap 7.98 ( https://nmap.org ) at 2026-02-05 11:41 +0800 Nmap scan report for 192.168.2.1 Host is up (0.00055s latency). MAC Address: 0A:00:27:00:00:07 (Unknown) Nmap scan report for 192.168.2.2 Host is up (0.00053s latency). MAC Address: 08:00:27:52:FA:08 (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.2.71 Host is up (0.00056s latency). MAC Address: 08:00:27:A6:9B:40 (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 7.51 seconds
靶机IP:192.168.2.71
2、端口扫描
1.全端口扫描
1 2 3 4 5 6 7 8 9 10 11
┌──(root㉿kali)-[~/miaosec] └─# nmap --min-rate 10000 -p- 192.168.2.71 Starting Nmap 7.98 ( https://nmap.org ) at 2026-02-05 11:41 +0800 Nmap scan report for 192.168.2.71 Host is up (0.00024s latency). Not shown: 65534 closed tcp ports (reset) PORT STATE SERVICE 80/tcp open http MAC Address: 08:00:27:A6:9B:40 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 50.03 seconds
┌──(root㉿kali)-[~/miaosec] └─# nmap --min-rate 10000 -sT -sC -sV -O -p80 192.168.2.71 Starting Nmap 7.98 ( https://nmap.org ) at 2026-02-05 11:42 +0800 Nmap scan report for 192.168.2.71 Host is up (0.00083s latency).
PORT STATE SERVICE VERSION 80/tcp open http Apache httpd 2.4.57 ((Debian)) |_http-title: Diff3r3ntS3c |_http-server-header: Apache/2.4.57 (Debian) MAC Address: 08:00:27:A6:9B:40 (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|router Running: Linux 4.X|5.X, MikroTik RouterOS 7.X OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5 cpe:/o:mikrotik:routeros:7 cpe:/o:linux:linux_kernel:5.6.3 OS details: Linux 4.15 - 5.19, OpenWrt 21.02 (Linux 5.4), MikroTik RouterOS 7.2 - 7.5 (Linux 5.6.3) 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 10.91 seconds
3.udp扫描
1 2 3 4 5 6 7 8 9 10
┌──(root㉿kali)-[~/miaosec] └─# nmap -sU --top-ports 100 192.168.2.71 Starting Nmap 7.98 ( https://nmap.org ) at 2026-02-05 11:43 +0800 Nmap scan report for 192.168.2.71 Host is up (0.00085s latency). All 100 scanned ports on 192.168.2.71 are in ignored states. Not shown: 59 closed udp ports (port-unreach), 41 open|filtered udp ports (no-response) MAC Address: 08:00:27:A6:9B:40 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 60.24 seconds
candidate@Diff3r3ntS3c:/home/candidate$ cat /etc/crontab # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do.