In this recipe, we will examine the Metasploit Console (MSFCONSOLE). The MSFCONSOLE is primarily used to manage the Metasploit database, manage sessions, and configure and launch Metasploit modules. Essentially, for the purpose of exploitation, the MSFCONSOLE will get you connected to a host so that you can launch your exploits against it.
Some common commands that you will use when interacting with the console are:
help
: This command will allow you to view the help file for the command you are trying to runuse modulename
: This command allows you to begin configuring the module that you have chosenset optionname modulename
: This command allows you to set the various options for a given modulesearch modulename
: This command allows you to search for an individual moduleexit
: This command allows you to exit the MSFCONSOLE