Common: Make CredentialsStolenEvent to be a class
This commit is contained in:
parent
1a96e9fd8d
commit
a68a765722
|
@ -1,14 +1,12 @@
|
|||
from dataclasses import field
|
||||
from typing import Sequence
|
||||
|
||||
import pydantic
|
||||
from pydantic import Field
|
||||
|
||||
from common.credentials import Credentials
|
||||
|
||||
from . import AbstractAgentEvent
|
||||
|
||||
|
||||
@pydantic.dataclasses.dataclass(frozen=True)
|
||||
class CredentialsStolenEvent(AbstractAgentEvent):
|
||||
"""
|
||||
An event that occurs when an agent collects credentials from the victim
|
||||
|
@ -17,4 +15,4 @@ class CredentialsStolenEvent(AbstractAgentEvent):
|
|||
:param stolen_credentials: The credentials that were stolen by an agent
|
||||
"""
|
||||
|
||||
stolen_credentials: Sequence[Credentials] = field(default_factory=list)
|
||||
stolen_credentials: Sequence[Credentials] = Field(default_factory=list)
|
||||
|
|
Loading…
Reference in New Issue