Agent: Skip ransomware payload if monkey has been killed

This commit is contained in:
Mike Salvatore 2021-08-05 08:20:26 -04:00
parent 57d97d0083
commit 33aa8d1c67
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,8 @@ class InfectionMonkey(object):
LOG.info("Maximum propagation depth has been reached; monkey will not propagate.")
TraceTelem(MAX_DEPTH_REACHED_MESSAGE).send()
InfectionMonkey.run_ransomware()
if self._keep_running and WormConfiguration.alive:
InfectionMonkey.run_ransomware()
# if host was exploited, before continue to closing the tunnel ensure the exploited
# host had its chance to