┌──(root㉿kali)-[/miao/maze-sec/config] └─# nmap -sn 192.168.2.0/24 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-07-08 12:51 CST Nmap scan report for 192.168.2.1 Host is up (0.00057s latency). MAC Address: 0A:00:27:00:00:0A (Unknown) Nmap scan report for 192.168.2.2 Host is up (0.00026s latency). MAC Address: 08:00:27:F5:57:69 (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.2.49 Host is up (0.00059s latency). MAC Address: 08:00:27:34:0E:CA (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.12 seconds
IP地址为:192.168.2.49
二、端口扫描
1、全端口扫描
1 2 3 4 5 6 7 8 9 10 11 12
┌──(root㉿kali)-[/miao/maze-sec/config] └─# nmap --min-rate 10000 -p- 192.168.2.49 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-07-08 12:52 CST Nmap scan report for 192.168.2.49 Host is up (0.0014s latency). Not shown: 65533 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http MAC Address: 08:00:27:34:0E:CA (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 38.34 seconds
┌──(root㉿kali)-[/miao/maze-sec/config] └─# nmap --min-rate 10000 -sT -sV -sC -O -p22,80 192.168.2.49 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-07-08 12:54 CST Nmap scan report for 192.168.2.49 Host is up (0.00070s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.4p1 Debian 5+deb11u3 (protocol 2.0) | ssh-hostkey: | 3072 f6:a3:b6:78:c4:62:af:44:bb:1a:a0:0c:08:6b:98:f7 (RSA) | 256 bb:e8:a2:31:d4:05:a9:c9:31:ff:62:f6:32:84:21:9d (ECDSA) |_ 256 3b:ae:34:64:4f:a5:75:b9:4a:b9:81:f9:89:76:99:eb (ED25519) 80/tcp open http nginx 1.18.0 |_http-server-header: nginx/1.18.0 |_http-title: ConfigMaster - \xE6\x99\xBA\xE8\x83\xBD\xE8\xBF\x90\xE7\xBB\xB4\xE9\x85\x8D\xE7\xBD\xAE\xE7\xAE\xA1\xE7\x90\x86\xE5\xB9\xB3\xE5\x8F\xB0 MAC Address: 08:00:27:34:0E:CA (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: 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 8.52 seconds
3、UDP端口扫描
1 2 3 4 5 6 7 8 9 10 11
┌──(root㉿kali)-[/miao/maze-sec/config] └─# nmap -sU --top-ports 100 192.168.2.49 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-07-08 12:56 CST Nmap scan report for 192.168.2.49 Host is up (0.0012s latency). Not shown: 99 closed udp ports (port-unreach) PORT STATE SERVICE 68/udp open|filtered dhcpc MAC Address: 08:00:27:34:0E:CA (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 109.08 seconds
mikannse@Config:~$ sudo /usr/sbin/nginx -c /home/mikannse/mikannse.conf mikannse@Config:~$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file inwhich to save the key (/home/mikannse/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/mikannse/.ssh/id_rsa Your public key has been saved in /home/mikannse/.ssh/id_rsa.pub The key fingerprint is: SHA256:i5kh2t8iim3icLeD8r7DEM2ZKMJ59R4B0Jgxn1eg/a8 mikannse@Config The key's randomart image is: +---[RSA 3072]----+ | +*..... | | ooo+.. | |.+.o.+.o. | |=o=. .o. | |o.. . o S. | |. o . * .. | |.oo.o + . . | |++=.oo.. . | |oB*+.o...E | +----[SHA256]-----+
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat Jul 5 00:48:20 2025 from 192.168.3.94 root@Config:~# id uid=0(root) gid=0(root) groups=0(root)