From 72e037833575935f6c79d32d1d3752ec9a6853aa Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 24 Aug 2021 11:52:12 +0530 Subject: [PATCH] agent: Fix import path in powershell exploiter --- monkey/infection_monkey/exploit/powershell.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/monkey/infection_monkey/exploit/powershell.py b/monkey/infection_monkey/exploit/powershell.py index dd08bba5d..5ba03b5b7 100644 --- a/monkey/infection_monkey/exploit/powershell.py +++ b/monkey/infection_monkey/exploit/powershell.py @@ -12,13 +12,10 @@ import infection_monkey.monkeyfs as monkeyfs from common.utils.exceptions import FailedExploitationError from common.utils.exploit_enum import ExploitType from infection_monkey.exploit.HostExploiter import HostExploiter -from infection_monkey.exploit.tools.helpers import ( - build_monkey_commandline, - get_monkey_depth, - get_target_monkey_by_os, -) +from infection_monkey.exploit.tools.helpers import get_monkey_depth, get_target_monkey_by_os from infection_monkey.exploit.web_rce import WIN_ARCH_32, WIN_ARCH_64 from infection_monkey.model import DROPPER_ARG, GET_ARCH_WINDOWS, RUN_MONKEY, VictimHost +from infection_monkey.utils.commands import build_monkey_commandline LOG = logging.getLogger(__name__)