msf_module_execute
Executes an installed Metasploit module with specified datastore options and returns a job UUID or output, enabling RPC-based red teaming workflows.
Instructions
Execute an installed module with its datastore options; returns job/UUID or output.
Inspect module.info and module.options first. Execution may continue after this tool returns. Poll job.list, module.running_stats, or module.results using msf_rpc. Binary output is represented as a $binary base64 object.
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": {
"module_type": "<module_type>",
"module_name": "<module_name>",
"options": "<options>"
},
"name": "msf_module_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | Yes | ||
| module_name | Yes | ||
| module_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||