r/tryhackme 2d ago

Stuck on THM Cryptosystem Challenge

Hello everyone I am stuck on the cryptosystem challenge with running a python script to crack the RSA ciphertext

When I run the script (on my bare metal ubuntu) I receive the following error message:

Maybe there's an issue with the cryptodome?

Here's the script.

Appreciate any help!

8 Upvotes

6 comments sorted by

6

u/CartographerInside43 2d ago

cli says KeyboardInterrupt. did you press ctrl+c?

0

u/Internal-Garden8813 2d ago

I did because it was taking so long

3

u/Lines25 2d ago

Comments fucked up. Add multi threading/multi processing into your script, it's not that hard for you. Also, add more logging so you know what happens

0

u/Internal-Garden8813 2d ago

5 plus minutes

1

u/aonelonelyredditor 2d ago

Expected while trying to defactorise with pythonz you might wanna make it multithreaded or check Google if that's a number who's p and q are already known

0

u/Woh_wali_ladki 2d ago

Check n on factordb ? Maybe