From ddc4f4d836e9e24871e03b37923617f668a98c99 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 2 Sep 2022 12:13:20 +0200 Subject: [PATCH] Agent: Remove tunnel from aget build command functions --- monkey/infection_monkey/utils/commands.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/monkey/infection_monkey/utils/commands.py b/monkey/infection_monkey/utils/commands.py index b66a622e9..c2c7e188c 100644 --- a/monkey/infection_monkey/utils/commands.py +++ b/monkey/infection_monkey/utils/commands.py @@ -13,7 +13,6 @@ def build_monkey_commandline(target_host: VictimHost, depth: int, location: str return " " + " ".join( build_monkey_commandline_explicitly( GUID, - target_host.default_tunnel, target_host.default_server, depth, location, @@ -23,7 +22,6 @@ def build_monkey_commandline(target_host: VictimHost, depth: int, location: str def build_monkey_commandline_explicitly( parent: str = None, - tunnel: str = None, server: str = None, depth: int = None, location: str = None, @@ -33,9 +31,6 @@ def build_monkey_commandline_explicitly( if parent is not None: cmdline.append("-p") cmdline.append(str(parent)) - if tunnel is not None: - cmdline.append("-t") - cmdline.append(str(tunnel)) if server is not None: cmdline.append("-s") cmdline.append(str(server))