LinuxCommandLibrary

msfconsole

TLDR

Start Metasploit console

$ msfconsole
copy
Execute resource script
$ msfconsole -r [script.rc]
copy
Execute single command
$ msfconsole -x "[use exploit/multi/handler; run]"
copy
Quiet mode
$ msfconsole -q
copy
Connect to database
$ msfconsole -d
copy
Show version
$ msfconsole -v
copy

SYNOPSIS

msfconsole [options]

DESCRIPTION

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.
msfconsole is Metasploit Framework CLI.

PARAMETERS

-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.

CAVEATS

Authorized testing only. Requires proper setup. Resource intensive.

HISTORY

msfconsole is part of Metasploit Framework, created by H.D. Moore in 2003 for penetration testing.

SEE ALSO

msfvenom(1), nmap(1), msfpc(1)

Copied to clipboard