SSHrecover
is a Proof of Concept project based on this video by IppSec that shows how it's possible to recover RSA private and public varibles from a total or partial SSH key.
The project it's written in GoLang and does not require any non-default packages/dependencies. The script can be ran without compiling with
go run main.go <filename> (priv / pub) [full]
to compile the script you can run
go build
in the project directory.
- Parsing private key
./sshrecover id_rsa priv
# or to print the full parameter values
./sshrecover id_rsa priv full
- Parsing public key
./sshrecover id_rsa.pub pub
# or to print the full parameter values
./sshrecover id_rsa.pub pub full