Scripting Payload Types

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.download_file():
1
async def get_payloadtypes(self) -> MythicResponse:
2
"""
3
Get all payload types registered with Apfell
4
:return:
5
"""
6
7
async def get_payloadtype(
8
self, payload_type: Union[PayloadType, Dict]
9
) -> MythicResponse:
10
"""
11
Get information about a specific payload type
12
:param payload_type:
13
if using PayloadType class, the following must be set:
14
ptype
15
:return:
16
"""
17
18
async def get_payloadtype_commands(
19
self, payload_type: Union[PayloadType, Dict]
20
) -> MythicResponse:
21
"""
22
Get the commands registered for a specific payload type
23
:param payload_type:
24
if using PayloadType class, the following must be set:
25
ptype
26
:return:
27
"""
Copied!
Copy link
Edit on GitHub