forked from p15670423/monkey
Agent: Exploiter name when publishing events to be __class__.__name__
This commit is contained in:
parent
a79d40b42e
commit
95b3556cd0
|
@ -132,7 +132,6 @@ class HostExploiter:
|
||||||
self,
|
self,
|
||||||
target: str,
|
target: str,
|
||||||
propagation_success: bool,
|
propagation_success: bool,
|
||||||
exploiter_name: str = "",
|
|
||||||
tags: frozenset = frozenset(),
|
tags: frozenset = frozenset(),
|
||||||
error_message: str = "",
|
error_message: str = "",
|
||||||
):
|
):
|
||||||
|
@ -140,7 +139,7 @@ class HostExploiter:
|
||||||
source=get_agent_id(),
|
source=get_agent_id(),
|
||||||
target=IPv4Address(target),
|
target=IPv4Address(target),
|
||||||
success=propagation_success,
|
success=propagation_success,
|
||||||
exploiter_name=exploiter_name or self.__class__.__name__,
|
exploiter_name=self.__class__.__name__,
|
||||||
error_message=error_message,
|
error_message=error_message,
|
||||||
tags=tags,
|
tags=tags,
|
||||||
)
|
)
|
||||||
|
@ -150,7 +149,6 @@ class HostExploiter:
|
||||||
self,
|
self,
|
||||||
target: str,
|
target: str,
|
||||||
exploitation_success: bool,
|
exploitation_success: bool,
|
||||||
exploiter_name: str = "",
|
|
||||||
tags: frozenset = frozenset(),
|
tags: frozenset = frozenset(),
|
||||||
error_message: str = "",
|
error_message: str = "",
|
||||||
):
|
):
|
||||||
|
@ -158,7 +156,7 @@ class HostExploiter:
|
||||||
source=get_agent_id(),
|
source=get_agent_id(),
|
||||||
target=IPv4Address(target),
|
target=IPv4Address(target),
|
||||||
success=exploitation_success,
|
success=exploitation_success,
|
||||||
exploiter_name=exploiter_name or self.__class__.__name__,
|
exploiter_name=self.__class__.__name__,
|
||||||
error_message=error_message,
|
error_message=error_message,
|
||||||
tags=tags,
|
tags=tags,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue