Skip to content
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

This works on rsa known_hosts hashes, what about ecdsa-sha2-nistp256 or ecdsa-sha2-nistp521 #4

Open
robertstrom opened this issue May 24, 2022 · 1 comment

Comments

@robertstrom
Copy link

My known_hosts file contains ssh-rsa and ecdsa-sha2-nistp521 and ecdsa-sha2-nistp256 entries

I have successfully converted an ssh-rsa entry and retrieved the IP address but the other entries error.

I've been running the converter script against one of the 512 entries and trying different hashcat hash types. I have tried these hash types

  • 160
  • 1460
  • 1760

all with no results

I get this error

Hashfile 'decode_known_hosts_file_single_ecdsa-sha2_converted' on line 1 (1d806a...7ae280f65490648d8801b35c88ad09f4): Token length exception
No hashes loaded.

Have you tried, or been able, to decode known_hosts file entries with these other hash types?

Thanks,

Robert

@M-Davies
Copy link

I have tried this against a ecdsa-sha2-nistp256 hash with the default 160 mode and had no issues. It cracked the IP no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants