Weak RSA
Weak RSA writeup by Thamizhiniyan C S
Overview
Initial Setup
Enumeration



Getting the Flag

Last updated
Weak RSA writeup by Thamizhiniyan C S




Last updated
// Installing the necessary dependencies
sudo apt-get install libgmp3-dev libmpc-dev
// Downloading the repository
git clone https://github.com/RsaCtfTool/RsaCtfTool.git
// Creating a virtual environment to download the requirements for the tool to run
python3 -m venv env
// Activating the virtual environment
source ./env/bin/activate
// NOTE: To deactivate the virtual environment after job is done use the following command:
deactivate
// Installing the requirements
pip3 install -r ./RsaCtfTool/requirements.txtpython3 ./RsaCtfTool/RsaCtfTool.py --publickey ./key.pub --private
// Here
// --publickey - mention the path to public key file.
// --private - Display private key if recovered.openssl pkeyutl -in flag.enc -out flag.txt -decrypt -inkey ./private.key
// Here
// pkeyutl - Public key algorithm cryptographic operation command.
// -in - input file.
// -inkey - input private key file.
// -decrypt - Decrypt input data with private key.
// -out - Decrypted output file name and location.