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 )