I have an Ubuntu 12.04 VirtualBox machine in which some days ago I changed the password. Now when I used the machine again I've forgotten the password and can't get root access.
I tried to get hashes from the shadow file to use with the john but I can't read without root access, even tried to get a session with Metasploit but can't find any option to get Linux hashes and neither could I get root privileges with Metasploit, and also can't access the disk offline as its VDI image.
Also tried but couldn't download john to Ubuntu as I can't use the apt-get
either, the machine contains some important data.
So is there any way in Metasploit to get root or some tool (like samdump2 for Windows) to download through the browser and manually get the hashes from a live system or maybe some exploit?