This commit is contained in:
aaron
2021-12-03 17:03:57 +01:00
parent 6d35d9bc1d
commit b1df7de91c

View File

@@ -9,9 +9,10 @@ HTB{c0mm0n_m0d_4774ck_15_4n07h3r_cl4ss1c}
- First check the encrypted.txt file and notice that both messages use the same modulus `n`
- This means the ciphertext is subsceptible to a common modulus attack
- Read [this.](https://infosecwriteups.com/rsa-attacks-common-modulus-7bdb34f331a5?gi=3886d5c6d7a)
- Rewrite the whole script in python3 and execute.
```bash
$ python test.py \
$ python decrypt.py \
-n 0xa96e6f96f6aedd5f9f6a169229f11b6fab589bf6361c5268f8217b7fad96708cfbee7857573ac606d7569b44b02afcfcfdd93c21838af933366de22a6116a2a3dee1c0015457c4935991d97014804d3d3e0d2be03ad42f675f20f41ea2afbb70c0e2a79b49789131c2f28fe8214b4506db353a9a8093dc7779ec847c2bea690e653d388e2faff459e24738cd3659d9ede795e0d1f8821fd5b49224cb47ae66f9ae3c58fa66db5ea9f73d7b741939048a242e91224f98daf0641e8a8ff19b58fb8c49b1a5abb059f44249dfd611515115a144cc7c2ca29357af46a9dc1800ae9330778ff1b7a8e45321147453cf17ef3a2111ad33bfeba2b62a047fa6a7af0eef \
-e1 0x10001 \
-e2 0x23 \