This is the walkthrough of Hack the box machine named Lame.
Lame is the Linux based machine. The IP ADDRESS of the machine is 10.10.10.3
As, always start with scanning with the help of nmap.
Command: nmap -sV -sC -Pn -O -A 10.10.10.3
There, are 4 ports are open 21,22,139,445
Now, here we now, samba and ftp which version is running let search any exploit is available for it
Command: searchsploit vsftpd 2.3.4
Let also search for samba
Now, after that we know the exploit just exploit it using msfconsole
We got the root access