metasploit_run_module
Execute Metasploit exploit, auxiliary, or post modules via the RPC API, configuring module options and payloads for penetration testing.
Instructions
Purpose: Run a Metasploit exploit, auxiliary, or post module through the RPC API. Constraints: module_type is usually exploit, auxiliary, or post. options should contain module datastore options such as RHOSTS/RPORT/TARGETURI. payload and payload_options are used for exploits.… Example: metasploit_run_module(module_type='exploit', module_name='unix/ftp/vsftpd_234_backdoor'…
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | Yes | Module options dict (e.g. {'RHOSTS': '10.0.0.1'}). | |
| payload | No | Optional payload name for exploits (e.g. 'windows/meterpreter/reverse_tcp'). | |
| module_name | Yes | Module path (e.g. 'windows/smb/ms17_010_eternalblue'). | |
| module_type | Yes | 'exploit', 'auxiliary', or 'post'. | |
| payload_options | No | Optional payload options dict (e.g. {'LHOST': '10.0.0.2', 'LPORT': 4444}). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||