katana.units.crypto — Cryptography

These units handle procedures that are often necessary for challenges in the Cryptography category of CTFs.

Note

Often times, these units can take a long amount of time and bottleneck Katana’s operations. If you know you do not need these checks, include --exclude crypto in your command.

Crypto units are often applicable to lots of targets, and considering they can do some brute-force operations, they often take up a lot of processing and can waste time for Katana’s operations.

For this reason, we implemented a commonly used katana.units.crypto.CryptoUnit that checks to ensure the target is not a viable URL (to not clobber web units) and it is not a potentially useful file (like an image, document, or something else specific).

class katana.units.crypto.CryptoUnit(*args, **kwargs)

This Unit will raise katana.unit.NotApplicable if the unit is a URL or a potentially useful file.