Lame
Executive summary — Lame is an old Easy Linux box, the very first machine ever retired on Hack The Box. It exposes Samba 3.0.20, vulnerable to CVE-2007-2447 («username map script»): an SMB username with shell metacharacters causes command injection. Since Samba runs as root, execution is direct root — no escalation afterwards. A single hop: Samba → Root.
| Platform | Hack The Box |
| Operating system | Linux |
| Difficulty | Easy |
| Status | Retired |
| Target IP | 10.129.23.46 |
Attack map
[21,22,139,445,3632] Recon: anonymous FTP, SSH, Samba, distccd
│ The surface is noisy, but there's only one strong lead
▼
[139/445] Samba smbd 3.0.20-Debian
│ CVE-2007-2447 — «username map script»: command injection via the SMB username
▼
[ROOT] Samba runs as root → direct root shell (no privesc)
1. Initial setup and recon
Before scanning, we add the machine to /etc/hosts so we can refer to it by name instead of repeating the IP in every command:
echo "10.129.23.46 lame.htb" | sudo tee -a /etc/hosts
We check basic connectivity with a ping before running the port scan:
ping -c 1 lame.htb
Why the TTL matters: besides confirming the box responds, the response's TTL gives an early hint about the OS. Linux usually sits near
64; Windows near128. Not conclusive, but it steers enumeration.
nmap -sC -sV lame.htb
21/tcp open ftp vsftpd 2.3.4
22/tcp open ssh
139/tcp open netbios-ssn
445/tcp open netbios-ssn Samba smbd 3.0.20-Debian
3632/tcp open distccd
The key clue isn't the number of open ports, but the Samba version: 3.0.20-Debian. It dates back to 2007 and carries a well-known, well-documented RCE.
Resumen ejecutivo — Lame es un Linux Easy antiguo, la primera máquina retirada de Hack The Box. Expone Samba 3.0.20, vulnerable a CVE-2007-2447 («username map script»): un nombre de usuario SMB con metacaracteres de shell provoca inyección de comandos. Como Samba corre como root, la ejecución es directa como root — sin escalada posterior. Un solo salto: Samba → Root.
| Plataforma | Hack The Box |
| Sistema operativo | Linux |
| Dificultad | Easy |
| Estado | Retired |
| IP objetivo | 10.129.23.46 |
Mapa del ataque
[21,22,139,445,3632] Reconocimiento: FTP anónimo, SSH, Samba, distccd
│ La superficie es ruidosa, pero la pista fuerte es una sola
▼
[139/445] Samba smbd 3.0.20-Debian
│ CVE-2007-2447 — «username map script»: inyección de comandos vía el usuario SMB
▼
[ROOT] Samba corre como root → shell directa como root (sin escalada)
1. Preparación y reconocimiento inicial
Antes de escanear, añadimos la máquina a /etc/hosts para poder referirnos a ella por nombre en vez de repetir la IP en cada comando:
echo "10.129.23.46 lame.htb" | sudo tee -a /etc/hosts
Comprobamos conectividad básica con un ping antes de lanzar el escaneo de puertos:
ping -c 1 lame.htb
Por qué importa el TTL: además de confirmar que la máquina responde, el TTL de la respuesta da una primera pista del sistema operativo. En Linux suele verse cercano a
64; en Windows, cercano a128. No es una prueba definitiva, pero orienta la enumeración.
nmap -sC -sV lame.htb
21/tcp open ftp vsftpd 2.3.4
22/tcp open ssh
139/tcp open netbios-ssn
445/tcp open netbios-ssn Samba smbd 3.0.20-Debian
3632/tcp open distccd
La pista clave no es la cantidad de puertos abiertos, sino la versión de Samba: 3.0.20-Debian. Es de 2007 y arrastra una RCE conocida y bien documentada.
This content is Root Access only. Everything else on the site — the free tier, the whole public library — stays open.
See Root Access plansNo account? Create one free then upgrade from your console.
Este contenido es solo para Root Access. Todo lo demás del sitio — el nivel gratuito, toda la biblioteca pública — sigue abierto.
Ver planes de Root Access¿Sin cuenta? Crea una gratis y luego mejora desde tu consola.