Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 471 Bytes

RsaCtfTool.md

File metadata and controls

16 lines (14 loc) · 471 Bytes

References

  1. RsaCtfTool

SSH

Test for weak SSH RSA keys

ssh-keyscan -t rsa [ip] | sed "s/^[^ ]* //" > /tmp/[ip].pub
ssh-keygen -e -m pem -f /tmp/[ip].pub > /tmp/[ip].pem
./RsaCtfTool.py --publickey /tmp/[ip].pem

x509

# openssl x509 -inform DER -in [path_to_certificate].der -out [path_to_certificate].pem
python RsaCtfTool.py --publickey [path_to_certificate] --private > [path_to_recovered_key]