forked from p15670423/monkey
agent: Replace f-strings with explicit conversion
This commit is contained in:
parent
5c5d96f79d
commit
36a9e02181
|
@ -27,24 +27,24 @@ def build_monkey_commandline_explicitly(
|
||||||
|
|
||||||
if parent is not None:
|
if parent is not None:
|
||||||
cmdline.append("-p")
|
cmdline.append("-p")
|
||||||
cmdline.append(f"{parent}")
|
cmdline.append(str(parent))
|
||||||
if tunnel is not None:
|
if tunnel is not None:
|
||||||
cmdline.append("-t")
|
cmdline.append("-t")
|
||||||
cmdline.append(f"{tunnel}")
|
cmdline.append(str(tunnel))
|
||||||
if server is not None:
|
if server is not None:
|
||||||
cmdline.append("-s")
|
cmdline.append("-s")
|
||||||
cmdline.append(f"{server}")
|
cmdline.append(str(server))
|
||||||
if depth is not None:
|
if depth is not None:
|
||||||
if int(depth) < 0:
|
if int(depth) < 0:
|
||||||
depth = 0
|
depth = 0
|
||||||
cmdline.append("-d")
|
cmdline.append("-d")
|
||||||
cmdline.append(f"{depth}")
|
cmdline.append(str(depth))
|
||||||
if location is not None:
|
if location is not None:
|
||||||
cmdline.append("-l")
|
cmdline.append("-l")
|
||||||
cmdline.append(f"{location}")
|
cmdline.append(str(location))
|
||||||
if vulnerable_port is not None:
|
if vulnerable_port is not None:
|
||||||
cmdline.append("-vp")
|
cmdline.append("-vp")
|
||||||
cmdline.append(f"{vulnerable_port}")
|
cmdline.append(str(vulnerable_port))
|
||||||
|
|
||||||
return cmdline
|
return cmdline
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue