Attacks against plain RSA (When RSA does not padding) and it is able to send arbitrary cipher for server to decrypt.

Attacks against plain RSA (When RSA does not padding) and it is able to send arbitrary cipher for server to decrypt.

RSA_ChosenCiphertextAttack is a Attacks against plain RSAtools (When RSA does not padding) and it is able to send arbitrary cipher for server to decrypt.
+ example.rb
— The file to generate such attack
— First output is the ciphertext, which flag ** e mod N
— First input is the (int) that will be decrypt
— Second output is the decryption result of your input

RSA_ChosenCiphertextAttack: example.rb

RSA_ChosenCiphertextAttack: example.rb : generate and output Cipertext.

+ rsachosenciphertextattack_api.rb
— The file to provide api to do the attack
— Usage:

example.rb Script :

rsachosenciphertextattack_api.rb Script:

Tested on All Unix Platform

Source : https://github.com/zongyuwu