We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57d97d0 commit 33aa8d1Copy full SHA for 33aa8d1
monkey/infection_monkey/monkey.py
@@ -156,7 +156,8 @@ def start(self):
156
LOG.info("Maximum propagation depth has been reached; monkey will not propagate.")
157
TraceTelem(MAX_DEPTH_REACHED_MESSAGE).send()
158
159
- InfectionMonkey.run_ransomware()
+ if self._keep_running and WormConfiguration.alive:
160
+ InfectionMonkey.run_ransomware()
161
162
# if host was exploited, before continue to closing the tunnel ensure the exploited
163
# host had its chance to
0 commit comments