-
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
update ssh2john to support all algs from openssh #5430
Comments
Thank you @noraj! Is this something you'd like to work on? We'd appreciate a pull request. (Assuming that your analysis here is correct. I did not verify.) |
@solardiz What would you expect? ssh2john supporting all possibilities supported by john only or all possibilities supported by ssh-keygen? Also, in the light of #4564 and #5255 and many others, wouldn't it be good to separate all the tools from I don't think I'm able to PR, I dont't understand what combination of key size, key type, encryption type, etc. would lead to a hash type and why. Having |
Perhaps first make
This was suggested and I thought of it, and my current opinion is that no - it's better to keep them in here. We do need to release more often and to clean things up, but a separate repo and having to make separate releases isn't the way there.
I agree. Perhaps we could get rid of our own numeric cipher types and include the info in "hashes" with less re-processing. However, I have no idea who would do that and when. So adding support for what's missing first is reasonable. |
It's not about John itself but one of the companion tool provided with it:
ssh2john
.https://github.com/openwall/john/blob/bleeding-jumbo/run/ssh2john.py
ssh2john
supports a very limited set of algorithmsjohn/run/ssh2john.py
Lines 41 to 45 in 173b562
Whereas most of the algs supported by openssh are not supported by ssh2john.
The following script can be used to generate a key for each alg and try to ssh2john it for each. You'll see a lot are not supported even if they are supported by John.
For example, EC with AES 128 looks supported but John but not by ssh2john
john/src/ssh_fmt_plug.c
Lines 375 to 384 in 173b562
ssh2hon from
John the Ripper 1.9.0-jumbo-1+bleeding-173b5629e8 2024-01-18 00:08:42 +0100 MPI + OMP [linux-gnu 64-bit x86_64 AVX AC]
The text was updated successfully, but these errors were encountered: