metasploit_exec
Execute a Metasploit Framework module non-interactively on a remote Kali machine via msfconsole, running one module with options and exiting cleanly for authorized penetration testing.
Instructions
Execute a Metasploit Framework module non-interactively on the remote Kali machine via msfconsole. Runs a single module with provided options and exits cleanly. Only for authorized penetration testing engagements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | Yes | Full module path. Example: "exploit/multi/handler" or "auxiliary/scanner/portscan/tcp" | |
| options | Yes | Module options as key-value pairs. Example: {"RHOSTS": "192.168.1.10", "RPORT": "445"} | |
| payload | No | Payload to use with exploit modules. Example: "windows/x64/meterpreter/reverse_tcp" | |
| run_command | No | "run" or "exploit" executes the module, "check" only tests if the target is vulnerable | run |