read_file
Read the contents of a file on a remote target server using the ReadFile API, returning the data for analysis during penetration testing.
Instructions
Reads a file using the ReadFile win32 API call. Returns the contents of that file.
Args:
agent_id: ID of agent to read file from
file_path: Path to the file to read on the target server
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": {
"agent_id": "<agent_id>",
"file_path": "<file_path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| file_path | Yes |