Description: Metasploitable 2 is a vulnerable Linux virtual machine provided by Rapid 7 for penetration testing.
https://sourceforge.net/projects/metasploitable/files/Metasploitable2/
It contains multiple vulnerabilities, this video demonstrates using a Metasploit exploit which takes advantage of a vulnerability in the Distributed Ruby service.
Further information including hints on how to exploit the many other vulnerabilities can be found here -:
https://community.rapid7.com/docs/DOC-1875
Tags: Metasploitable penetration testing ,
Disclaimer: We are a infosec video aggregator and this video is linked from an external website. The original author may be different from the user re-posting/linking it here. Please do not assume the authors to be same without verifying.
another way is to get root access is attack on samba service.
There is lots of way to get root access in metasploitable like you can exploit samba, tikiwiki, tomcat, etc etc ..
I know, that's why I put a link to the hints page which shows you how to exploit the VM via the multitude of vulnerabilities :)