katana.units.crypto.reverse
— Simple Reverse¶
Reverse ciphertext
This will simply reverse the text and look for a flag.
This unit inherits from the
katana.unit.NotEnglishUnit
class, as we can expect
the data to not be readable English (if it is in fact reverse text).
It also inherits from the katana.units.crypto.CryptoUnit
class to ensure it is not a viable URL or potentially useful file.
-
class
katana.units.crypto.reverse.
Unit
(manager: katana.manager.Manager, target: katana.target.Target) Bases:
katana.unit.NotEnglishUnit
,katana.units.crypto.CryptoUnit
-
BLOCKED_GROUPS
= ['crypto'] These are tags for groups to not recurse into. Recursing into other crypto units would be silly.
-
GROUPS
= ['crypto', 'reverse'] These are “tags” for a unit. Considering it is a Crypto unit, “crypto” is included.
-
PRIORITY
= 70 Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has a lower priority.
-
RECURSE_SELF
= False Do not recurse into self
-
evaluate
(case: Any) → None Evaluate the target. This simply reverses the target.
Parameters: case – A case returned by enumerate. In this unit, the enumerate
function is not used.Returns: None. This function should not return any data.
-