-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssh2john: add EC AES-256-CBC conversion #5641
Conversation
Thank you! This implements some of what #5430 says. Have you checked whether the resulting "hashes" are currently supported by |
I haven't tested this with John to be honest but I have successfully cracked a hash with hashcat mode 22951 ( |
Thanks. Can you also test it with John, please? |
echo johnjohn > johnpass
openssl ecparam -name secp521r1 -genkey | openssl ec -aes256 -out john.key -passout file:johnpass
# patched version from this PR
python3 ~/john/run/ssh2john.py john.key > john-hash.txt
I'm not sure if I'm doing this right, but it doesn't seem like this is currently working with john: John the Ripper 1.9.0-jumbo-1+bleeding-207445ab54 2024-12-29 04:12:05 +0100 OMP [linux-gnu 64-bit x86_64 AVX512BW AC]
Hashcat works: cut -d: -f2- john-hash.txt > hashcat-hash.txt
hashcat -a 3 -m 22951 --keep-guessing -1 john hashcat-hash.txt '?1?1?1?1?1?1?1?1'
|
Thank you very much @Nothing4You! I think we can merge this and deal with support in John as part of #5634. |
No description provided.