From a390c97b709941fb79a88753c3e119a57af0ae7b Mon Sep 17 00:00:00 2001 From: vakarisz Date: Mon, 3 Oct 2022 17:59:17 +0300 Subject: [PATCH] Island: Add tcp_connections to node --- monkey/monkey_island/cc/models/node.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monkey/monkey_island/cc/models/node.py b/monkey/monkey_island/cc/models/node.py index 715e52bb3..d992d1836 100644 --- a/monkey/monkey_island/cc/models/node.py +++ b/monkey/monkey_island/cc/models/node.py @@ -4,6 +4,7 @@ from pydantic import Field from typing_extensions import TypeAlias from common.base_models import MutableInfectionMonkeyBaseModel +from common.types import SocketAddress from . import CommunicationType, MachineID @@ -24,3 +25,6 @@ class Node(MutableInfectionMonkeyBaseModel): connections: NodeConnections """All outbound connections from this node to other machines""" + + tcp_connections: Mapping[MachineID, FrozenSet[SocketAddress]] = {} + """All successfull outbound TCP connections"""