https://github.com/noraj/kh2hc
Convert OpenSSH known_hosts file hashed with HashKnownHosts to hashes crackable by Hashcat.
https://github.com/noraj/kh2hc
hashcat known-hosts openssh
Last synced: about 1 year ago
JSON representation
Convert OpenSSH known_hosts file hashed with HashKnownHosts to hashes crackable by Hashcat.
- Host: GitHub
- URL: https://github.com/noraj/kh2hc
- Owner: noraj
- License: mit
- Created: 2023-04-12T23:09:48.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-26T23:10:03.000Z (over 1 year ago)
- Last Synced: 2025-04-12T05:38:22.082Z (about 1 year ago)
- Topics: hashcat, known-hosts, openssh
- Language: Ruby
- Homepage: https://noraj.github.io/kh2hc/
- Size: 127 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# kh2hc
[](https://badge.fury.io/rb/kh2hc)

[](https://github.com/noraj/kh2hc/network)
[](https://github.com/noraj/kh2hc/stargazers)
[](https://github.com/noraj/kh2hc/blob/master/LICENSE)
[](https://inventory.raw.pm/tools.html#kh2hc)
[](https://repology.org/project/kh2hc/versions)

> Convert OpenSSH known_hosts file hashed with HashKnownHosts to hashes crackable by Hashcat.
**CLI**
`kh2hc test/file_samples/known_hosts`

**Library**

## Features
- CLI and library
- Convert to:
- an array of hashes (objects) crackable by Hashcat (lib only)
- a hash file crackable by Hashcat
- Check if a known_hosts is hashed
## Installation
```plaintext
$ gem install kh2hc
```
Check the [installation](https://noraj.github.io/kh2hc/yard/file.Installation.html) page on the documentation to discover more methods.
## Documentation
Documentation:
- [Homepage](https://noraj.github.io/kh2hc/)
- [Usage](https://noraj.github.io/kh2hc/yard/file.Usage.html)
## Author
Made by Alexandre ZANNI ([@noraj](https://pwn.by/noraj/)).