forked from p15670423/monkey
Fixed monkey ignoring depth restrictions
This commit is contained in:
parent
d5021540ca
commit
10d1e7dc0b
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue