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
|
@staticmethod
|
||||||
def run_ransomware():
|
def run_ransomware():
|
||||||
|
telemetry_messenger = LegacyTelemetryMessengerAdapter()
|
||||||
|
batching_telemetry_messenger = BatchingTelemetryMessenger(telemetry_messenger)
|
||||||
try:
|
try:
|
||||||
telemetry_messenger = LegacyTelemetryMessengerAdapter()
|
|
||||||
batching_telemetry_messenger = BatchingTelemetryMessenger(telemetry_messenger)
|
|
||||||
RansomewarePayload(
|
RansomewarePayload(
|
||||||
WormConfiguration.ransomware, batching_telemetry_messenger
|
WormConfiguration.ransomware, batching_telemetry_messenger
|
||||||
).run_payload()
|
).run_payload()
|
||||||
|
|
Loading…
Reference in New Issue