Fixed monkey ignoring depth restrictions

This commit is contained in:
VakarisZ 2020-05-08 17:14:17 +03:00
parent d5021540ca
commit 10d1e7dc0b
1 changed files with 3 additions and 1 deletions

View File

@ -80,8 +80,10 @@ class InfectionMonkey(object):
self._default_tunnel = self._opts.tunnel self._default_tunnel = self._opts.tunnel
self._default_server = self._opts.server self._default_server = self._opts.server
if self._opts.depth: if self._opts.depth is not None:
WormConfiguration._depth_from_commandline = True WormConfiguration._depth_from_commandline = True
WormConfiguration.depth = self._opts.depth
self._keep_running = True self._keep_running = True
self._network = NetworkScanner() self._network = NetworkScanner()
self._dropper_path = sys.argv[0] self._dropper_path = sys.argv[0]