msf_run_module
Execute Metasploit modules with custom options, payloads, and target indices to exploit vulnerabilities. Requires explicit authorization and human confirmation.
Instructions
Execute a Metasploit module with configured options.
WARNING: This is a destructive operation that may exploit vulnerabilities on the target system. Requires explicit authorization and human confirmation.
Args: module_path: Full module path (e.g. "exploit/windows/smb/ms17_010_eternalblue"). options: Module-level options as key-value pairs (e.g. {"RHOSTS": "192.168.1.10"}). target_index: Module target index (0 = default target). payload: Payload to use (e.g. "cmd/unix/reverse_bash", "generic/shell_reverse_tcp"). Leave empty to let Metasploit choose the default payload for the target. payload_options: Payload-level options (e.g. {"LHOST": "192.168.1.100", "LPORT": "4444"}). These are set on the payload object, not the module.
Returns: Execution result with session information if exploitation succeeded.
Note: REQUIRES HUMAN CONFIRMATION. This tool will initiate an actual exploit attempt against the target system. Only execute with explicit authorization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | ||
| payload | No | ||
| module_path | Yes | ||
| target_index | No | ||
| payload_options | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||