forked from p34709852/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,
|
||||
target: str,
|
||||
propagation_success: bool,
|
||||
exploiter_name: str = "",
|
||||
tags: frozenset = frozenset(),
|
||||
error_message: str = "",
|
||||
):
|
||||
|
@ -140,7 +139,7 @@ class HostExploiter:
|
|||
source=get_agent_id(),
|
||||
target=IPv4Address(target),
|
||||
success=propagation_success,
|
||||
exploiter_name=exploiter_name or self.__class__.__name__,
|
||||
exploiter_name=self.__class__.__name__,
|
||||
error_message=error_message,
|
||||
tags=tags,
|
||||
)
|
||||
|
@ -150,7 +149,6 @@ class HostExploiter:
|
|||
self,
|
||||
target: str,
|
||||
exploitation_success: bool,
|
||||
exploiter_name: str = "",
|
||||
tags: frozenset = frozenset(),
|
||||
error_message: str = "",
|
||||
):
|
||||
|
@ -158,7 +156,7 @@ class HostExploiter:
|
|||
source=get_agent_id(),
|
||||
target=IPv4Address(target),
|
||||
success=exploitation_success,
|
||||
exploiter_name=exploiter_name or self.__class__.__name__,
|
||||
exploiter_name=self.__class__.__name__,
|
||||
error_message=error_message,
|
||||
tags=tags,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue