download keyword inside of the responses array.
Register the file first, keep the returned file_id, then send data with either numbered chunks or byte offsets.
One task can transfer multiple files concurrently because each transfer has its own UUID.
Choose one transfer mode
Do not send
chunk_num and chunk_offset together. chunk_data is base64-encoded in the agent message.
Register an offset transfer
file_id.
Send data
Register a chunk transfer
file_id.
Send data
Resume an interrupted transfer
After an interruption, register with the existing UUID andresume: true:
chunk_offset.
For a numbered transfer it returns the next missing chunk_num and the established chunk_size.
Continue from that value instead of restarting the file.
Use full_path, filename, host, and is_screenshot on registration so Mythic can index and render the file correctly.
The agent can update file metadata later through the normal response/RPC mechanisms.