Little bit confused on this CTF Problem
I'm working on some CTFs right now and I'm stuck on this one problem. There were no write-ups so I'm gonna have to ask a favor from the HBH community. ** (Note: Ctf's done)**
Title: Mystery Man ** Description:** I’m Tony Tan, and I often get weird emails. But I don’t like the feels of this one, and I need to know who sent it. I want the sender’s first name, middle initial, and last name. Don’t email him though, because I don’t want him finding out about this.
What I know right now: "2048R/46726FC6" is a PGP public key. 0x03df93f346726fc6 is something in hex but when I convert it to ASCII, it's just gibberish. When I googled the PGP key, nothing came up.
Thanks in advance for the help.
I assume that RSA is being used.
You have the public key which is n,e and you're looking for the private key which is n,d. I remember back in uni I had a very similar (if not the same) challenge, but honestly if you don't understand how RSA works they're is no way to solve that.
I would recommend you to watch: https://www.youtube.com/watch?v=kYasb426Yjk https://www.youtube.com/watch?v=EC9blllMYFg
Also you might want to read that:
https://people.csail.mit.edu/rivest/RivestKaliski-RSAProblem.pdf
I'm not really good at explaining! Wiki has a great page explaining the problem.
https://en.wikipedia.org/wiki/RSA_problem
The most efficient method known to solve the RSA problem is by first factoring the modulus N, a task believed to be impractical if N is sufficiently large (see integer factorization). The RSA key setup routine already turns the public exponent e, with this prime factorization, into the private exponent d, and so exactly the same algorithm allows anyone who factors N to obtain the private key. Any C can then be decrypted with the private key.
Long story short if your 'n' is not large enough it is possible to get 'd'
Remember that your private key consists of d and n (which you already have in your public key)
You may also want to read an ELI5 explanation https://www.reddit.com/r/explainlikeimfive/comments/5xy75k/eli5_what_makes_it_so_hard_to_factor_the_rsa/