renef_file
Read, write, check, resolve, and map files inside the target Android app's process context, including private data files and dumping memory regions to disk.
Instructions
Filesystem operations executed inside the target process context (File.* API).
Runs with the target app's UID/SELinux context, so it can read the app's private data
files (/data/data/<pkg>/...) and dump in-memory payloads directly to disk.
Actions:
read: Read file contents ->File.read(path)write: Dump target memory[address, address+size)to a device file (max 100MB) ->File.write(path, addr, size)exists: Check if file exists ->File.exists(path)readlink: Resolve a symlink target ->File.readlink(path)fdpath: Get filesystem path for an open file descriptor (/proc/self/fd/<fd>) ->File.fdpath(fd)
Args: action: "read", "write", "exists", "readlink", or "fdpath" path: File path on device (required for all actions except "fdpath") fd: File descriptor number (required for "fdpath") address: Source memory address in target (required for "write") size: Number of bytes to dump from memory (required for "write", max 100MB)
Returns: JSON object with operation result
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fd | No | ||
| path | No | ||
| size | No | ||
| action | Yes | ||
| address | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |