msfconsole
Verified for current stable LTS
Msfconsole Command: Set Variable Value
Use for set variable value with Msfconsole. Exact CLI syntax to set variable value using Msfconsole.
When to use this: Use for set variable value with Msfconsole.
Command Syntax
set <variable_name> <value> set <variable_name> <value> Command Breakdown
set is the base executable for this command.
FAQ
Purpose: Exact syntax to set variable value 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: Execute Console Commands
sudo msfconsole -x "<use auxiliary/scanner/portscan/tcp; set PORTS 80,443; set RHOSTS example.com; run; quit>" 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: Show Module Options show options