From 41287d458bdffaa71113d61b3acefcd91b6f07b0 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 7 Mar 2022 07:52:07 -0500 Subject: [PATCH] Agent: Don't propagate if depth == 0 --- monkey/infection_monkey/master/automated_master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/master/automated_master.py b/monkey/infection_monkey/master/automated_master.py index 370bcfedd..2da3d52e3 100644 --- a/monkey/infection_monkey/master/automated_master.py +++ b/monkey/infection_monkey/master/automated_master.py @@ -162,7 +162,7 @@ class AutomatedMaster(IMaster): # still running. credential_collector_thread.join() - if self._can_propagate(): + if self._can_propagate() and config["depth"] > 0: self._propagator.propagate(config["propagation"], self._stop) payload_thread = create_daemon_thread(