Scripting Operators

What does this hook into?

Scripting tasking involves the following RESTful endpoints on an instance of Mythic. This means you need to create a new Mythic instance (i.e. mythic = Mythic(username="blah" ... ) and then call these functions like mythic.get_payloads():
1
async def get_self(self) -> MythicResponse:
2
"""
3
Gets information about the current user
4
"""
5
6
async def get_operator(self, operator: Operator) -> MythicResponse:
7
"""
8
Gets information about the current user
9
"""
10
11
async def create_operator(self, operator: Operator) -> MythicResponse:
12
"""
13
Creates a new operator with the specified username and password.
14
If the operator name already exists, just returns information about that operator.
15
"""
16
17
async def update_operator(self, operator: Operator) -> MythicResponse:
18
"""
19
Updates information about the specified operator.
20
"""
Copied!
Last modified 1yr ago
Copy link