Tool to work with the RSA encryption algorithm encrypts, decrypts, recovers the private key by exploiting attacks.
usage: ToasterRSATool.py [-h] [-n N] [-p P] [-q Q] [-e E] [-d D] [-c C] [-n2 N2] [--key KEY] [--encrypt ENCRYPT]
| Argument | Description |
|---|---|
| -h, --help | show this help message and exit |
| -n N | Module n |
| -p P | Factor p |
| -q Q | Factor q |
| -e E | Public exponent |
| -d D | Private exponent |
| -c C | Cipher text |
| -n2 N2 | Second n |
| --key KEY | Path to the key |
| --encrypt ENCRYPT | Encrypt message |
To attack or decrypt RSA provide it with all data you have. In case you provide it with insufficient data for decrypting, the tool will attack.
To encrypt a message use --encrypt "message". Keys are generated and displayed in the console and saved automatically in /keys. To use your own encryption key - add
--key path_to_key
python3 ToasterRSATool.py --encrypt "Your message"
python3 ToasterRSATool.py --key pub.pem --encrypt "Your message"
python3 ToasterRSATool.py --key private.pem -c 1234567890
python3 ToasterRSATool.py -n 1234567890 -c 1234567890 -d 1234567890
python3 ToasterRSATool.py -n 1234567890 -e 65537 -c 1234567890
python3 ToasterRSATool.py --key public.pem -e 65537 -c 1234567890
python3 ToasterRSATool.py -n 1234567890 -e 65537 -c 1234567890 -n2 1234567890
python3 ToasterRSATool.py -n 1234567890 -e 65537 -c 1234567890 -p 1234567890
python3 ToasterRSATool.py -n 1234567890 -e 65537 -c 1234567890 -q 1234567890
- pycryptodome
- factordb-pycli
- gmpy2
- owiener
git clone https://github.com/arkiix/ToasterRSACTFTool
cd ToasterRSACTFTool
pip3 install -r requirements.txt
python3 ToasterRSATool.py
If you fail to install it with the help of this command:
pip3 install -r requirements.txt
Try the following one:
easy_install `cat requirements.txt`