forked from p15670423/monkey
Agent: Rename variables in HostExploiter
This commit is contained in:
parent
254b4e1c6c
commit
e2453e481c
|
@ -27,12 +27,12 @@ class HostExploiter:
|
|||
|
||||
@property
|
||||
@abstractmethod
|
||||
def _exploiter_tags(self) -> Tuple[str, ...]:
|
||||
def _EXPLOITER_TAGS(self) -> Tuple[str, ...]:
|
||||
pass
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def _propagation_tags(self) -> Tuple[str, ...]:
|
||||
def _PROPAGATION_TAGS(self) -> Tuple[str, ...]:
|
||||
pass
|
||||
|
||||
def __init__(self):
|
||||
|
@ -153,7 +153,7 @@ class HostExploiter:
|
|||
exploiter_name=self.__class__.__name__,
|
||||
error_message=error_message,
|
||||
timestamp=time,
|
||||
tags=frozenset(tags or self._exploiter_tags),
|
||||
tags=frozenset(tags or self._EXPLOITER_TAGS),
|
||||
)
|
||||
self.agent_event_queue.publish(exploitation_event)
|
||||
|
||||
|
@ -171,6 +171,6 @@ class HostExploiter:
|
|||
exploiter_name=self.__class__.__name__,
|
||||
error_message=error_message,
|
||||
timestamp=time,
|
||||
tags=frozenset(tags or self._propagation_tags),
|
||||
tags=frozenset(tags or self._PROPAGATION_TAGS),
|
||||
)
|
||||
self.agent_event_queue.publish(propagation_event)
|
||||
|
|
Loading…
Reference in New Issue