renef_mem_manage
Allocate, free, or change page permissions in target process memory for Android ARM64 instrumentation and reverse engineering.
Instructions
Allocate, free, or change page permissions in target process memory (Renef v0.4.0 API).
Actions:
alloc: Allocatesizebytes with permissionsprot(e.g.,"rw-","rwx","r-x") ->Memory.allocalloc_str: Allocate a NUL-terminated copy oftextin target memory ->Memory.allocStrfree: Free memory allocated ataddress(optionalsize) ->Memory.freeprotect: Change memory protection of[address, address+size)toprot->Memory.protect
Args: action: "alloc", "alloc_str", "free", or "protect" address: Memory address (required for "free" and "protect") size: Byte size (required for "alloc" and "protect"; optional for "free") text: String content (required for "alloc_str") prot: Permission string like "rw-", "r-x", "rwx" (default: "rw-")
Returns: JSON object with result address or confirmation
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": {
"action": "<action>"
},
"name": "renef_mem_manage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prot | No | rw- | |
| size | No | ||
| text | No | ||
| action | Yes | ||
| address | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |