Island: Add CommunicationType Enum

This commit is contained in:
Mike Salvatore 2022-08-18 09:14:59 -04:00
parent b6e04074a4
commit 54db99350d
3 changed files with 23 additions and 0 deletions

View File

@ -10,3 +10,4 @@ from monkey_island.cc.models.report.report import Report
from .simulation import Simulation, SimulationSchema, IslandMode
from .user_credentials import UserCredentials
from .machine import Machine
from .communication_type import CommunicationType

View File

@ -0,0 +1,15 @@
from enum import Enum
class CommunicationType(Enum):
"""
An Enum representing different types of communication between agents and the Island
This Enum represents the different was agents can communicate with each other and with the
Island. The value of each member is the member's name in all lower-case characters.
"""
SCANNED = "scanned"
EXPLOITED = "exploited"
CC = "cc"
CC_TUNNEL = "cc_tunnel"

View File

@ -282,3 +282,10 @@ underscore_attrs_are_private
extra
allow_mutation
validate_assignment
# CommunicationType
CommunicationType
SCANNED
EXPLOITED
CC
CC_TUNNEL