← 返回命令列表

Linux command

msfconsole 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start Metasploit console

msfconsole

Execute resource script

msfconsole -r [script.rc]

Execute single command

msfconsole -x "[use exploit/multi/handler; run]"

Quiet mode

msfconsole -q

Connect to database

msfconsole -d

Show version

msfconsole -v

说明

msfconsole is the Metasploit Framework console. It provides access to exploits and security tools. The tool is the primary Metasploit interface. Used for penetration testing and security research.

参数

-r _FILE_
Execute resource script.
-x _CMD_
Execute command string.
-q
Quiet mode, no banner.
-d
Connect to database.
-v
Show version.
--help
Display help information.

FAQ

What is the msfconsole command used for?

msfconsole is the Metasploit Framework console. It provides access to exploits and security tools. The tool is the primary Metasploit interface. Used for penetration testing and security research.

How do I run a basic msfconsole example?

Run `msfconsole` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r _FILE_ do in msfconsole?

Execute resource script.