Agent: Set default depth cmd parameter to 0
If user runs the agent it should start with depth 0, because usually it means that it's running on the island
This commit is contained in:
parent
5a48bfcfcc
commit
552e2100fa
|
@ -46,7 +46,7 @@ class MonkeyDrops(object):
|
|||
arg_parser.add_argument("-p", "--parent")
|
||||
arg_parser.add_argument("-t", "--tunnel")
|
||||
arg_parser.add_argument("-s", "--server")
|
||||
arg_parser.add_argument("-d", "--depth", type=positive_int)
|
||||
arg_parser.add_argument("-d", "--depth", type=positive_int, default=0)
|
||||
arg_parser.add_argument("-l", "--location")
|
||||
arg_parser.add_argument("-vp", "--vulnerable-port")
|
||||
self.opts = arg_parser.parse_args(args)
|
||||
|
|
|
@ -106,7 +106,7 @@ class InfectionMonkey:
|
|||
arg_parser.add_argument("-p", "--parent")
|
||||
arg_parser.add_argument("-t", "--tunnel")
|
||||
arg_parser.add_argument("-s", "--server")
|
||||
arg_parser.add_argument("-d", "--depth", type=positive_int)
|
||||
arg_parser.add_argument("-d", "--depth", type=positive_int, default=0)
|
||||
opts = arg_parser.parse_args(args)
|
||||
InfectionMonkey._log_arguments(opts)
|
||||
|
||||
|
|
Loading…
Reference in New Issue