katana.units.raw.base85 — Decode Base85¶
Decode Base85 encoded text
This is done by the Python3 base64 module which has the
b85decode function.
-
class
katana.units.raw.base85.Unit(manager: katana.manager.Manager, target: katana.target.Target) Bases:
katana.unit.RegexUnit-
GROUPS= ['raw', 'decode', 'base85'] These are “tags” for a unit. Considering it is a Raw unit, “raw” is included, as well as the tag “decode”, and the unit name “base85”.
-
PATTERN= regex.Regex(b'[\\x21-\\x75]{4,}', flags=regex.A | regex.S | regex.M | regex.V0)
-
PRIORITY= 60 Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has a low priority, uncommon
-
evaluate(match) Evaluate the target. Run
base64.b85decodeon the target and recurse on any new found information.Parameters: match – A match returned by the RegexUnit.Returns: None. This function should not return any data.
-