Agent: Fix typo in "exploitation_result" key
This commit is contained in:
parent
48e8420b4d
commit
2431e2f20b
|
@ -78,7 +78,7 @@ class EdgeService(Edge):
|
||||||
def update_based_on_exploit(self, exploit: Dict):
|
def update_based_on_exploit(self, exploit: Dict):
|
||||||
self.exploits.append(exploit)
|
self.exploits.append(exploit)
|
||||||
self.save()
|
self.save()
|
||||||
if exploit["exploitation_success"]:
|
if exploit["exploitation_result"]:
|
||||||
self.set_exploited()
|
self.set_exploited()
|
||||||
|
|
||||||
def set_exploited(self):
|
def set_exploited(self):
|
||||||
|
|
|
@ -65,7 +65,7 @@ def update_network_with_exploit(edge: EdgeService, telemetry_json):
|
||||||
new_exploit.pop("machine")
|
new_exploit.pop("machine")
|
||||||
new_exploit["timestamp"] = telemetry_json["timestamp"]
|
new_exploit["timestamp"] = telemetry_json["timestamp"]
|
||||||
edge.update_based_on_exploit(new_exploit)
|
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)
|
NodeService.set_node_exploited(edge.dst_node_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue