renef_mem_write
Write bytes or integers directly into a target process's memory, with optional patching for read-only or executable code pages. Supports hex, u8, u16, u32, and u64 types.
Instructions
Write bytes or integers to target process memory (with optional code-page patching).
When
patch=True(or writing to read-only/executable code pages), usesMemory.patchwhich automatically handlesmprotectand instruction cache flushing.Supports
type:"hex"(e.g."C0035FD6"= ARM64RET),"u8","u16","u32","u64".
Args:
address: Target memory address (e.g., "0x7f8a1c2b0")
value: Hex bytes string (for type="hex") or integer string (decimal or "0x..." hex)
type: Data type - "hex" (default), "u8", "u16", "u32", "u64"
patch: Force Memory.patch (auto mprotect for RX/RO code pages)
Returns: JSON status confirming bytes written
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>",
"value": "<value>"
},
"name": "renef_mem_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | hex | |
| patch | No | ||
| value | Yes | ||
| address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |