Agent: User current_depth instead of get_monkey_depth() in PowerShell

This commit is contained in:
Ilija Lazoroski 2022-03-15 16:59:26 +01:00
parent e8a162ab5b
commit 153d65eca0
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ from infection_monkey.exploit.powershell_utils.powershell_client import (
IPowerShellClient,
PowerShellClient,
)
from infection_monkey.exploit.tools.helpers import get_monkey_depth, get_random_file_suffix
from infection_monkey.exploit.tools.helpers import get_random_file_suffix
from infection_monkey.model import DROPPER_ARG, RUN_MONKEY, VictimHost
from infection_monkey.utils.commands import build_monkey_commandline
from infection_monkey.utils.environment import is_windows_os
@ -196,7 +196,7 @@ class PowerShellExploiter(HostExploiter):
def _run_monkey_executable_on_victim(self, executable_path):
monkey_execution_command = build_monkey_execution_command(
self.host, get_monkey_depth() - 1, executable_path
self.host, self.current_depth - 1, executable_path
)
logger.info(