Agent: Remove SystemInfoCollector references from dropper.py

This commit is contained in:
Mike Salvatore 2022-03-03 11:31:11 -05:00
parent b20abad0b6
commit d3c75200fd
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ from infection_monkey.utils.commands import (
get_monkey_commandline_linux, get_monkey_commandline_linux,
get_monkey_commandline_windows, get_monkey_commandline_windows,
) )
from infection_monkey.utils.environment import is_windows_os
if "win32" == sys.platform: if "win32" == sys.platform:
from win32process import DETACHED_PROCESS from win32process import DETACHED_PROCESS
@ -140,7 +141,7 @@ class MonkeyDrops(object):
location=None, location=None,
) )
if OperatingSystem.Windows == SystemInfoCollector.get_os(): if is_windows_os():
monkey_commandline = get_monkey_commandline_windows( monkey_commandline = get_monkey_commandline_windows(
self._config["destination_path"], monkey_options self._config["destination_path"], monkey_options
) )