Agent: Change propagation timestamp in WMI

This commit is contained in:
Ilija Lazoroski 2022-10-07 14:49:49 +02:00
parent c09c2c2127
commit 6950dcdf0c
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ from infection_monkey.utils.threading import interruptible_iter
logger = logging.getLogger(__name__)
WMI_EXPLOITER_TAG = "wmi-expliter"
WMI_EXPLOITER_TAG = "wmi-exploiter"
class WmiExploiter(HostExploiter):
@ -104,6 +104,7 @@ class WmiExploiter(HostExploiter):
target_path = get_agent_dst_path(self.host)
propagation_timestamp = time()
remote_full_path = SmbTools.copy_file(
self.host,
downloaded_agent,
@ -133,7 +134,6 @@ class WmiExploiter(HostExploiter):
} + build_monkey_commandline(self.servers, self.current_depth + 1)
# execute the remote monkey
propagation_timestamp = time()
result = WmiTools.get_object(wmi_connection, "Win32_Process").Create(
cmdline, ntpath.split(remote_full_path)[0], None
)