forked from p15670423/monkey
Common: Define StolenCredentialsEvent
This commit is contained in:
parent
5558d075be
commit
889863bb93
|
@ -0,0 +1,18 @@
|
||||||
|
from dataclasses import dataclass
|
||||||
|
from typing import Sequence
|
||||||
|
|
||||||
|
from common.credentials import Credentials
|
||||||
|
|
||||||
|
from . import AbstractEvent
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass(frozen=True)
|
||||||
|
class StolenCredentialsEvent(AbstractEvent):
|
||||||
|
"""
|
||||||
|
An event that was initiated/observed when an agent collects credentials from the victim.
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
:param stolen_credentials: The credentials which were stolen by the source agent
|
||||||
|
"""
|
||||||
|
|
||||||
|
stolen_credentials: Sequence[Credentials]
|
|
@ -214,6 +214,9 @@ _make_simulation # unused method (monkey/monkey_island/cc/models/simulation.py:
|
||||||
AbstractEvent
|
AbstractEvent
|
||||||
tags
|
tags
|
||||||
|
|
||||||
|
# TODO DELETE IN #2176
|
||||||
|
StolenCredentialsEvent
|
||||||
|
|
||||||
|
|
||||||
# TODO DELETE AFTER RESOURCE REFACTORING
|
# TODO DELETE AFTER RESOURCE REFACTORING
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue