forked from p34709852/monkey
Island: Fix mypy issues in exploit.py
This commit is contained in:
parent
b8230ffb73
commit
9c49cdafa3
|
@ -1,6 +1,6 @@
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
import dateutil
|
from dateutil import parser as dateutil_parser
|
||||||
|
|
||||||
from monkey_island.cc.models import Monkey
|
from monkey_island.cc.models import Monkey
|
||||||
from monkey_island.cc.server_utils.encryption import get_datastore_encryptor
|
from monkey_island.cc.server_utils.encryption import get_datastore_encryptor
|
||||||
|
@ -29,10 +29,10 @@ def process_exploit_telemetry(telemetry_json, _):
|
||||||
|
|
||||||
|
|
||||||
def update_network_with_exploit(edge: EdgeService, telemetry_json):
|
def update_network_with_exploit(edge: EdgeService, telemetry_json):
|
||||||
telemetry_json["data"]["info"]["started"] = dateutil.parser.parse(
|
telemetry_json["data"]["info"]["started"] = dateutil_parser.parse(
|
||||||
telemetry_json["data"]["info"]["started"]
|
telemetry_json["data"]["info"]["started"]
|
||||||
)
|
)
|
||||||
telemetry_json["data"]["info"]["finished"] = dateutil.parser.parse(
|
telemetry_json["data"]["info"]["finished"] = dateutil_parser.parse(
|
||||||
telemetry_json["data"]["info"]["finished"]
|
telemetry_json["data"]["info"]["finished"]
|
||||||
)
|
)
|
||||||
new_exploit = copy.deepcopy(telemetry_json["data"])
|
new_exploit = copy.deepcopy(telemetry_json["data"])
|
||||||
|
|
Loading…
Reference in New Issue