forked from p15670423/monkey
Island: Add CommunicationType Enum
This commit is contained in:
parent
b6e04074a4
commit
54db99350d
|
@ -10,3 +10,4 @@ from monkey_island.cc.models.report.report import Report
|
||||||
from .simulation import Simulation, SimulationSchema, IslandMode
|
from .simulation import Simulation, SimulationSchema, IslandMode
|
||||||
from .user_credentials import UserCredentials
|
from .user_credentials import UserCredentials
|
||||||
from .machine import Machine
|
from .machine import Machine
|
||||||
|
from .communication_type import CommunicationType
|
||||||
|
|
|
@ -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"
|
|
@ -282,3 +282,10 @@ underscore_attrs_are_private
|
||||||
extra
|
extra
|
||||||
allow_mutation
|
allow_mutation
|
||||||
validate_assignment
|
validate_assignment
|
||||||
|
|
||||||
|
# CommunicationType
|
||||||
|
CommunicationType
|
||||||
|
SCANNED
|
||||||
|
EXPLOITED
|
||||||
|
CC
|
||||||
|
CC_TUNNEL
|
||||||
|
|
Loading…
Reference in New Issue