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