This section is devoted to all things cryptography. Whilst some of these attacks, such as the padding oracle, would fit well into the web applications section, I feel that since cryptography is such a vast field that it's best to include them all under this section and discuss the various attacks and techniques that can go into breaking both modern cryptography and classical ciphers.

Here I will give a short overview of some very common attack vectors and decryption tools that are going to be necessary, as they're going to be a fundamental tool in your arsenal.



Use RSACtfTool for any RSA keys which appear to be obviously weak. It runs a full suite of tests so it can be used to rule out anything obvious.

./ --publickey ./ --uncipher ./ciphered\_file

Elliptic-Curve Cryptography

When trying to decrypt or encrypt with elliptic-curve cryptography the recommended tool is seccure or python-seccure:

seccure.decrypt(ciphertext, b'my private key')

Classical Ciphers

The most difficult element of cracking a cipher is identifying it's type. There are a number of markers however that can help in reducing the search space. A good resource for this is Practical Cryptography's Guide.

A critical skill in cracking a cipher is identifying the type of cipher it has been encrypted with, then practical cryptography has a goodguideto allowing you to begin initial analysis.

results matching ""

    No results matching ""