agent: Add missing space in build_monkey_commandline
This commit is contained in:
parent
8ee1ce6706
commit
96cf8fc052
|
@ -7,7 +7,7 @@ def build_monkey_commandline(
|
||||||
target_host: VictimHost, depth: int, vulnerable_port: str, location: str = None
|
target_host: VictimHost, depth: int, vulnerable_port: str, location: str = None
|
||||||
) -> str:
|
) -> str:
|
||||||
|
|
||||||
return " ".join(
|
return " " + " ".join(
|
||||||
build_monkey_commandline_explicitly(
|
build_monkey_commandline_explicitly(
|
||||||
GUID,
|
GUID,
|
||||||
target_host.default_tunnel,
|
target_host.default_tunnel,
|
||||||
|
|
|
@ -100,7 +100,7 @@ def test_build_monkey_commandline():
|
||||||
example_host = VictimHost(ip_addr="bla")
|
example_host = VictimHost(ip_addr="bla")
|
||||||
example_host.set_default_server("101010")
|
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(
|
actual = build_monkey_commandline(
|
||||||
target_host=example_host, depth=0, vulnerable_port="80", location="/home/bla"
|
target_host=example_host, depth=0, vulnerable_port="80", location="/home/bla"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue