Skip to content

Method to factor an RSA modulus to subsequently be used to forge digital signatures.

Notifications You must be signed in to change notification settings

idarthjedi/factor-rsa-modulus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

find RSA Modulus

This code was written to support a CTF on a popular hacking-learning platform. The CTF included access to an oracle for signatures of an RSA 1024 private key, but no access to the public key. With a requirement for forging a signature related to a known plain text string.

The maths have been identified in the stackexchange link located at https://crypto.stackexchange.com/questions/43583/deduce-modulus-n-from-public-exponent-and-encrypted-data.

https://www.youtube.com/watch?v=4zahvcJ9glg

https://www.youtube.com/watch?v=oOcTVTpUsPQ

The maths may be a little hard to understand (unless you speak l33t maths), so I converted the MathML/TeX lingo to python code.

I highly recommend understanding the maths, this code is really here to help you learn the maths, not to help you script-kiddie you're way to the flag. :P

A special thanks to Hilbert on said platform, as he patiently helped me both learn and understand said math l33t speak!

DISCLAIMER:

I make no warranties on the applicability or usefulness of this code. It has been designed for learning purposes only.

/r DarthJedi

About

Method to factor an RSA modulus to subsequently be used to forge digital signatures.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages