forked from p15670423/monkey
Agent: User current_depth instead of get_monkey_depth() in PowerShell
This commit is contained in:
parent
e8a162ab5b
commit
153d65eca0
|
@ -20,7 +20,7 @@ from infection_monkey.exploit.powershell_utils.powershell_client import (
|
||||||
IPowerShellClient,
|
IPowerShellClient,
|
||||||
PowerShellClient,
|
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.model import DROPPER_ARG, RUN_MONKEY, VictimHost
|
||||||
from infection_monkey.utils.commands import build_monkey_commandline
|
from infection_monkey.utils.commands import build_monkey_commandline
|
||||||
from infection_monkey.utils.environment import is_windows_os
|
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):
|
def _run_monkey_executable_on_victim(self, executable_path):
|
||||||
monkey_execution_command = build_monkey_execution_command(
|
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(
|
logger.info(
|
||||||
|
|
Loading…
Reference in New Issue