SSH Private Keys
MITRE ATT&CK™ Unsecured Credentials: Private Keys - T1552.004
Theory
We may search for SSH private key in publicly-exposed services (like webservers ore SMB shares) or in common directories if we gained access to the target.
Practice
Find Private Keys
We may find SSH keys in all .ssh
directories using the find command.
Brute-Force Private Keys
If an SSH private key is password protected, in order to crack it we need to format this key to make John recognize it.
Crack the password of the private key using the formatted text.
Last updated