ctf-writeup/BYUCTF 2023/RSA5
daffainfo 9325852d3a feat: added TSG CTF 2023 2023-11-05 15:59:14 +07:00
..
images feat: added 2 CTF writeup 2023-05-21 21:57:52 +07:00
README.md feat: added TSG CTF 2023 2023-11-05 15:59:14 +07:00
rsa5.txt feat: added 2 CTF writeup 2023-05-21 21:57:52 +07:00

README.md

RSA5

-

About the Challenge

We were given a file that contain 1 modulus, 2 public exponent, and 2 ciphertexts

n = 158307578375429142391814474806884486236362186916188452580137711655290101749246194796158132723192108831610021920979976831387798531310286521988621973910776725756124498277292094830880179737057636826926718870947402385998304759357604096043571760391265436342427330673679572532727716853811470803394787706010603830747

e1 = 65537

c1 = 147465654815005020063943150787541676244006907179548061733683379407115931956604160894199596187128857070739585522099795520030109295201146791378167977530770154086872347421667566213107792455663772279848013855378166127142983660396920011133029349489200452580907847840266595584254579298524777000061248118561875608240

e2 = 65521

c2 = 142713643080475406732653557020038566547302005567266455940547551173573770529850069157484999432568532977025654715928532390305041525635025949965799289602536953914794718670859158768092964083443092374251987427058692219234329521939404919423432910655508395090232621076454399975588453154238832799760275047924852124717

How to Solve?

In this case im using X-RSA to recover the plaintext, and because then choose the 7th option

flag

byuctf{NEVER_USE_SAME_MODULUS_WITH_DIFFERENT_e_VALUES}