Agent: Fix typo in "exploitation_result" key

This commit is contained in:
Mike Salvatore 2022-02-23 12:00:42 -05:00
parent 48e8420b4d
commit 2431e2f20b
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class EdgeService(Edge):
def update_based_on_exploit(self, exploit: Dict):
self.exploits.append(exploit)
self.save()
if exploit["exploitation_success"]:
if exploit["exploitation_result"]:
self.set_exploited()
def set_exploited(self):

View File

@ -65,7 +65,7 @@ def update_network_with_exploit(edge: EdgeService, telemetry_json):
new_exploit.pop("machine")
new_exploit["timestamp"] = telemetry_json["timestamp"]
edge.update_based_on_exploit(new_exploit)
if new_exploit["exploitation_success"]:
if new_exploit["exploitation_result"]:
NodeService.set_node_exploited(edge.dst_node_id)