msf_resource
Run Metasploit resource scripts to automate multi-step attack sequences, multi-handlers, and complex module chains. Executes .rc file commands sequentially and returns combined output.
Instructions
Execute a Metasploit resource script (.rc file) — batch automation for multi-step Metasploit operations. Use for running pre-written attack sequences, setting up multi-handlers, or automating complex module chains. Resource files contain msfconsole commands (one per line) executed sequentially. Output: combined output of all commands in the script.
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": {
"script_path": "<script_path>"
},
"name": "msf_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_path | Yes | Path to .rc resource script file |