Scripting Operations

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_current_operation_info(self) -> MythicResponse:
2
"""
3
Gets information about the current operation for the user
4
"""
5
6
async def get_all_operations(self) -> MythicResponse:
7
"""
8
Gets information about all operations your operator can see
9
"""
10
11
async def get_operation(self, operation: Operation) -> MythicResponse:
12
"""
13
Gets information about the current user
14
"""
15
16
async def add_or_update_operator_for_operation(
17
self, operation: Operation, operator: Operator
18
) -> MythicResponse:
19
"""
20
Adds an operator to an operation or updates an operator's view/block lists in an operation
21
"""
22
23
async def remove_operator_from_operation(
24
self, operation: Operation, operator: Operator
25
) -> MythicResponse:
26
"""
27
Removes an operator from an operation
28
"""
29
30
async def update_operation(self, operation: Operation) -> MythicResponse:
31
"""
32
Updates information about an operation such as webhook and completion status
33
"""
34
35
async def create_operation(self, operation: Operation) -> MythicResponse:
36
"""
37
Creates a new operation and specifies the admin of the operation
38
"""
Copied!
Last modified 1yr ago
Copy link