RsaCtfTool – Data decrypter tool

Overview

RsaCtfTool decrypts data that uses weak RSA keys. It also recovers private keys using a variety of automated attacks.

 

How to get this tool

To use this tool, please use a method listed below.

In a Linux (Debian OS), run the following command(s).

Clone the repo

git clone https://github.com/sourcekris/RsaCtfTool.git && cd RsaCtfTool/

 

Download directly from the following link:

 

How to execute

Uncipher file :

./RsaCtfTool.py --publickey ./key.pub --uncipher ./ciphered\_file

 

Print private key :

./RsaCtfTool.py --publickey ./key.pub --private

 

Attempt to break multiple public keys with common factor attacks or individually - use quotes around wildcards to stop bash expansion

./RsaCtfTool.py --publickey "*.pub" --private

 

Generate a public key :

./RsaCtfTool.py --createpub --n 7828374823761928712873129873981723...12837182
  --e 65537

 

Dump the parameters from a key:

./RsaCtfTool.py --dumpkey --key ./key.pub

 

Factor with ECM when you know the approximate length in digits of a prime:

./RsaCtfTool.py --publickey key.pub --ecmdigits 25 --verbose --private

 

Reference(s):

 

-----

Next steps:

 

This article was contributed by Gavin Dennis from Jamaica. Gavin is a member of the Caribbean CSPA.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.