Scripting Disabled Commands Profiles

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_all_disabled_commands_profiles():
1
async def get_all_disabled_commands_profiles(self) -> MythicResponse:
2
"""
3
Get all of the disabled command profiles associated with Mythic
4
:return:
5
"""
6
7
async def create_disabled_commands_profile(
8
self, profile: DisabledCommandsProfile
9
) -> MythicResponse:
10
"""
11
Create a new disabled command profiles associated with Mythic
12
:return:
13
"""
14
15
async def update_disabled_commands_profile(
16
self, profile: DisabledCommandsProfile
17
) -> MythicResponse:
18
"""
19
Create a new disabled command profiles associated with Mythic
20
:return:
21
"""
22
23
async def update_disabled_commands_profile_for_operator(
24
self,
25
profile: Union[DisabledCommandsProfile, str],
26
operator: Operator,
27
operation: Operation,
28
) -> MythicResponse:
29
# async def add_or_update_operator_for_operation(self, operation: Operation, operator: Operator)
30
if isinstance(profile, mythic_rest.DisabledCommandsProfile):
31
operator.base_disabled_commands = profile.name
32
else:
33
operator.base_disabled_commands = profile
34
resp = await self.add_or_update_operator_for_operation(operation, operator)
35
return resp
Copied!
Copy link
Edit on GitHub