:py:mod:`dissect.target.helpers.cyber` ====================================== .. py:module:: dissect.target.helpers.cyber Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.target.helpers.cyber.Color dissect.target.helpers.cyber.CyberIO Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: dissect.target.helpers.cyber.cyber dissect.target.helpers.cyber.cyber_print dissect.target.helpers.cyber.nms dissect.target.helpers.cyber.matrix Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.target.helpers.cyber.CAN_CYBER dissect.target.helpers.cyber.NMS_MASK_TABLE dissect.target.helpers.cyber.NMS_TYPE_EFFECT_SPEED dissect.target.helpers.cyber.NMS_JUMBLE_SECONDS dissect.target.helpers.cyber.NMS_JUMBLE_LOOP_SPEED dissect.target.helpers.cyber.NMS_REVEAL_SECONDS dissect.target.helpers.cyber.NMS_REVEAL_LOOP_SPEED dissect.target.helpers.cyber.MATRIX_CHARS dissect.target.helpers.cyber.MATRIX_MAX_SPEED dissect.target.helpers.cyber.MATRIX_MAX_CASCADES dissect.target.helpers.cyber.MATRIX_MAX_COLS dissect.target.helpers.cyber.MATRIX_FRAME_DELAY dissect.target.helpers.cyber.MATRIX_REVEAL_SECONDS .. py:data:: CAN_CYBER :value: True .. py:data:: NMS_MASK_TABLE :value: ['!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '~', '.', '/', ':', ';', '<',... .. py:data:: NMS_TYPE_EFFECT_SPEED .. py:data:: NMS_JUMBLE_SECONDS :value: 1 .. py:data:: NMS_JUMBLE_LOOP_SPEED :value: 35 .. py:data:: NMS_REVEAL_SECONDS :value: 2 .. py:data:: NMS_REVEAL_LOOP_SPEED :value: 50 .. py:data:: MATRIX_CHARS .. py:data:: MATRIX_MAX_SPEED :value: 5 .. py:data:: MATRIX_MAX_CASCADES :value: 600 .. py:data:: MATRIX_MAX_COLS :value: 20 .. py:data:: MATRIX_FRAME_DELAY :value: 0.03 .. py:data:: MATRIX_REVEAL_SECONDS :value: 4 .. py:class:: Color Bases: :py:obj:`enum.Enum` Generic enumeration. Derive from this class to define new enumerations. .. py:attribute:: BLACK :value: 30 .. py:attribute:: RED :value: 31 .. py:attribute:: GREEN :value: 32 .. py:attribute:: YELLOW :value: 33 .. py:attribute:: BLUE :value: 34 .. py:attribute:: MAGENTA :value: 35 .. py:attribute:: CYAN :value: 36 .. py:attribute:: WHITE :value: 37 .. py:class:: CyberIO(color: Optional[Color] = None, run_at_end: bool = False, **kwargs) Bases: :py:obj:`io.StringIO` Text I/O implementation using an in-memory buffer. The initial_value argument sets the value of object. The newline argument is like the one of TextIOWrapper's constructor. .. py:method:: write(s: str) -> int Write string to file. Returns the number of characters written, which is always equal to the length of the string. .. py:function:: cyber(color: Optional[Color] = Color.YELLOW, run_at_end: bool = False, **kwargs) -> Iterator[None] .. py:function:: cyber_print(buf: str, color: Optional[Color] = None, **kwargs) -> None .. py:function:: nms(buf: str, color: Optional[Color] = None, mask_space: bool = False, mask_indent: bool = True, **kwargs) -> None .. py:function:: matrix(buf: str, color: Optional[Color] = None, **kwargs) -> None