githubEdit

Very Smooth

Challenge

Forget safe primes... Here, we like to live life dangerously... >:)

Solution

  1. Searching online for "pollard smooth prime" finds Pollard's p − 1 algorithmarrow-up-right.

  2. Using RsaCtfToolarrow-up-right with the pollard_p_1 attack by running python RsaCtfTool.py --uncipher [c] -e 65537 -n [n] --attack pollard_p_1 doesn't work since it doesn't try enough primes (relevant source codearrow-up-right). So, we adapt their script to create the solution script.pyarrow-up-right, which tries 7000 primes.

  3. Interestingly, this prime is in factordb so RsaCtfToolarrow-up-right will print the flag immediately when using the factordb attack.

Flag

picoCTF{376ebfe7}

Last updated