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():
asyncdefget_current_operation_info(self) -> MythicResponse:""" Gets information about the current operation for the user """asyncdefget_all_operations(self) -> MythicResponse:""" Gets information about all operations your operator can see """asyncdefget_operation(self,operation: Operation) -> MythicResponse:""" Gets information about the current user """asyncdefadd_or_update_operator_for_operation(self,operation: Operation,operator: Operator ) -> MythicResponse:""" Adds an operator to an operation or updates an operator's view/block lists in an operation """asyncdefremove_operator_from_operation(self,operation: Operation,operator: Operator ) -> MythicResponse:""" Removes an operator from an operation """asyncdefupdate_operation(self,operation: Operation) -> MythicResponse:""" Updates information about an operation such as webhook and completion status """asyncdefcreate_operation(self,operation: Operation) -> MythicResponse:""" Creates a new operation and specifies the admin of the operation """