Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 940 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 940 Bytes

CrackMyARS

Robust RSA cracking tool, used for CTF mainly but can have other applications

Setup

Clone this repository git clone https://github.com/jacobj10/CrackMyARS

Build the pacakge python3 setup.py build

Install the pacakge sudo python3 setup.py install

Usage

from CrackMyARS.utils.key import Key

# Instantiate Key (put in keyword args as necessary i.e. n=..., e=...)
x = Key(**kwargs)

# Add necessary files
x.add_pem('PATH_TO_PEM')
x.c_from_file('PATH_TO_C')

# Multiple N and C supported (Only for CRT, of course)
x.add_multiple_c_from_file([FILE_LIST])
x.add_multiple_n_from_file([FILE_LIST])

# Finally, run the internal deciding mechanism to try and retrieve either D if no message or C
x.decide()

DH Simulator

Currently in progress, the DH simulator is intended to demonstrate processes such as secret sharing, DH key exchange, and other crypto schemes implemented in the last few decades!