Pivoting/Lateral Movement
Persistence
Pivoting to SSH
SSH Key Injection
Generate SSH Keys
If
authorized_keys
file doesn't exist create one with your public key:
Other wise append your public key:
Now just connect with your private key:
Using Existing keys
Look for the private key
Once you find it, just copy the key in your
.ssh
directory and ssh in.Also you can, check If the Corresponding private/public Key is known by using this
repo
.
Crack the passphrase
Once you got the private key, you can use
ssh2john
to generate a hash from the key:
Then feed this hash into
John the Ripper
:
Last updated