Skip to main content History File
- use to access history:
cat ~/.*history | less
su
to the user using password discovered
Config files
- Sometimes config file can hint to hidden plaintext password.
find . -iname '*config*'
in the directory you think might have. - For example ovpn config file might contain auth-user-pass option and a file name.
- This file will contain plaintext credentials. Can then su.
SSH Keys
- Search for SSH private keys that are not configured properly, for eg in / directory:
ls -l /.ssh
- Copy to Kali and change permission:
chmod 600 root_key
- Connect using key:
ssh -i root_key root@IP