forked from p15670423/monkey
agent: Catch and log exceptions thrown by the ransomware payload
This commit is contained in:
parent
33a6e72df5
commit
59efaabd50
|
@ -469,5 +469,8 @@ class InfectionMonkey(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def run_ransomware():
|
def run_ransomware():
|
||||||
|
try:
|
||||||
telemetry_messenger = TelemetryMessengerWrapper()
|
telemetry_messenger = TelemetryMessengerWrapper()
|
||||||
RansomewarePayload(WormConfiguration.ransomware, telemetry_messenger).run_payload()
|
RansomewarePayload(WormConfiguration.ransomware, telemetry_messenger).run_payload()
|
||||||
|
except Exception as ex:
|
||||||
|
LOG.error(f"An unexpected error occurred while running the ransomware payload: {ex}")
|
||||||
|
|
Loading…
Reference in New Issue