msfconsole
Run Metasploit exploits, auxiliary scans, and post-exploitation modules through the console interface, with optional resource scripts for multi-step automation.
Instructions
Metasploit Framework console — the primary interface for running exploit, auxiliary, post-exploitation, and payload modules. Use to execute exploits, scan with auxiliary modules, or run post-exploitation tasks. For generating standalone payloads without the console, use msfvenom. For searching modules without opening console, use msf_search. Output: module output, exploit results, or session information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opts | No | Additional commands to chain after the main command | |
| command | Yes | Metasploit command to run (e.g. 'use exploit/windows/smb/ms17_010_eternalblue; set RHOSTS 10.0.0.1; run') | |
| resource_file | No | Path to .rc resource script for multi-step automation (overrides command if set) |