renef_mem_read
Safely read target process memory by checking mapped regions first to avoid crashes. Supports hex, hexdump, string, and integer formats for debugging and reverse engineering.
Instructions
Safely read memory from the target process (checks /proc/self/maps first to avoid crashes).
Supported formats:
hex(default): Raw bytes as hex + printable ASCII preview (sizedefaults to 64, max 1MB)hexdump: Formatted classic hexdump (Memory.hexdump,sizedefaults to 64)string: NUL-terminated UTF-8/C string (Memory.readStr,sizedefaults to 256)u8,u16,u32,u64,pointer: Little-endian unsigned integer
Args: address: Target memory address (e.g., "0x7f8a1c2b0") size: Number of bytes for hex/hexdump (default 64) or max length for string (default 256) format: Output format - "hex", "hexdump", "string", "u8", "u16", "u32", "u64", "pointer"
Returns: JSON object with the read value (or formatted hexdump)
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>"
},
"name": "renef_mem_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| format | No | hex | |
| address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |