From 6950dcdf0c85bce7e95ca53496bc4acfd9ac8a54 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 7 Oct 2022 14:49:49 +0200 Subject: [PATCH] Agent: Change propagation timestamp in WMI --- monkey/infection_monkey/exploit/wmiexec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/exploit/wmiexec.py b/monkey/infection_monkey/exploit/wmiexec.py index d04a01032..0b755e74c 100644 --- a/monkey/infection_monkey/exploit/wmiexec.py +++ b/monkey/infection_monkey/exploit/wmiexec.py @@ -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 )