forked from p15670423/monkey
agent: Move telemetry messenger construction out of "try"
This commit is contained in:
parent
13c9e41a4c
commit
be6e76757d
|
@ -472,9 +472,9 @@ class InfectionMonkey(object):
|
|||
|
||||
@staticmethod
|
||||
def run_ransomware():
|
||||
telemetry_messenger = LegacyTelemetryMessengerAdapter()
|
||||
batching_telemetry_messenger = BatchingTelemetryMessenger(telemetry_messenger)
|
||||
try:
|
||||
telemetry_messenger = LegacyTelemetryMessengerAdapter()
|
||||
batching_telemetry_messenger = BatchingTelemetryMessenger(telemetry_messenger)
|
||||
RansomewarePayload(
|
||||
WormConfiguration.ransomware, batching_telemetry_messenger
|
||||
).run_payload()
|
||||
|
|
Loading…
Reference in New Issue