katana.units.raw.unbinary
— Convert binary to ASCII¶
Decode data represented as binary values.
This unit will return the data represented in both little-endian notation and in big-endian notation.
-
class
katana.units.raw.unbinary.
Unit
(manager: katana.manager.Manager, target: katana.target.Target) Bases:
katana.unit.RegexUnit
-
GROUPS
= ['raw', 'decode'] These are “tags” for a unit. Considering it is a Raw unit, “raw” is included, as well as the tag “decode”, and the name of the unit itself, “unbinary”.
-
PATTERN
= regex.Regex(b'(([01]{7,8}( ([01]{7,8})){3,}|[01]{32,}))', flags=regex.A | regex.V0) The pattern to match for binary data.
-
PRIORITY
= 50 Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has the default priority.
-
evaluate
(match) Evaluate the target. Convert the binary data found within 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.
-