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.NotApplicableif the unit is a URL or a potentially useful file.
katana.units.crypto.affine— Affine Cipherkatana.units.crypto.atbash— Atbash Cipherkatana.units.crypto.caesar255— Caesar Cipher with ASCII 255katana.units.crypto.caesar— Caesar Cipher with 26 Letterskatana.units.crypto.dna— T,A,C,G,U DNA Letterskatana.units.crypto.phonetic— NATO Phonetic Alphabetkatana.units.crypto.polybius— Polybius Square Cipherkatana.units.crypto.quipqiup— Online Substitution Cipher solverkatana.units.crypto.railfence— Railfence Cipherkatana.units.crypto.reverse— Simple Reversekatana.units.crypto.rot47— ROT47 Cipherkatana.units.crypto.rsa— Attempt to solve RSAkatana.units.crypto.t9— T9 phone keypad cipherkatana.units.crypto.vigenere— Vigenere Cipherkatana.units.crypto.xor— XOR Operation