2025-03-14 21:59:59 -06:00
|
|
|
# msfconsole
|
|
|
|
|
|
|
|
|
|
> Console for the Metasploit Framework.
|
|
|
|
|
> More information: <https://docs.rapid7.com/metasploit/msf-overview>.
|
|
|
|
|
|
|
|
|
|
- Launch the console:
|
|
|
|
|
|
|
|
|
|
`msfconsole`
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Launch the console quietly without any banner:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`msfconsole {{[-q|--quiet]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Do not enable database support:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`msfconsole {{[-n|--no-database]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
- Execute console commands (Note: Use `;` for passing multiple commands):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`msfconsole {{[-x|--execute-command]}} "{{use auxiliary/server/capture/ftp; set SRVHOST 0.0.0.0; set SRVPORT 21; run}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Display help:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`msfconsole {{[-h|--help]}}`
|
|
|
|
|
|
|
|
|
|
- Display version:
|
|
|
|
|
|
|
|
|
|
`msfconsole {{[-v|--version]}}`
|