agent: Add missing space in build_monkey_commandline

This commit is contained in:
Ilija Lazoroski 2021-06-29 18:03:23 +02:00
parent 8ee1ce6706
commit 96cf8fc052
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ def build_monkey_commandline(
target_host: VictimHost, depth: int, vulnerable_port: str, location: str = None
) -> str:
return " ".join(
return " " + " ".join(
build_monkey_commandline_explicitly(
GUID,
target_host.default_tunnel,

View File

@ -100,7 +100,7 @@ def test_build_monkey_commandline():
example_host = VictimHost(ip_addr="bla")
example_host.set_default_server("101010")
expected = f"-p {GUID} -s 101010 -d 0 -l /home/bla -vp 80"
expected = f" -p {GUID} -s 101010 -d 0 -l /home/bla -vp 80"
actual = build_monkey_commandline(
target_host=example_host, depth=0, vulnerable_port="80", location="/home/bla"
)