Agent: Add IMaster

This commit is contained in:
Shreya Malviya 2021-11-22 18:23:37 +05:30
parent e9749dd826
commit bd31cfd947
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
import abc
class IMaster(metaclass=abc.ABCMeta):
@abc.abstractmethod
def start(self) -> None:
"""
With the help of the puppet, starts and instructs the Agent to
perform various actions like scanning or exploiting a specific host.
"""
pass
@abc.abstractmethod
def terminate(self) -> None:
"""
Effectively marks the Agent as dead, telling all actions being
performed by the Agent to stop.
"""
pass
@abc.abstractmethod
def cleanup(self) -> None:
"""
With the help of the puppet, instructs the Agent to cleanup whatever
is required since the Agent was killed.
"""
pass