msfconsole
Verified for current stable LTS
Msfconsole Command: Execute Console Commands
Use for execute console commands with Msfconsole. Exact CLI syntax to execute console commands using Msfconsole.
When to use this: Use for execute console commands with Msfconsole.
Command Syntax
sudo msfconsole -x "<use auxiliary/scanner/portscan/tcp; set PORTS 80,443; set RHOSTS example.com; run; quit>" sudo msfconsole -x "<use auxiliary/scanner/portscan/tcp; set PORTS 80,443; set RHOSTS example.com; run; quit>" Command Breakdown
-x- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to execute console commands using Msfconsole.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Msfconsole Command: Launch Interactive Console
sudo msfconsole Msfconsole Command: Run Loaded Module <run|exploit> Msfconsole Command: Run Specific Resource File sudo msfconsole -r <path/to/file.rc> Msfconsole Command: Set Variable Value set <variable_name> <value> Msfconsole Command: Show Module Options show options