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 run
use modulename: This command allows you to begin configuring the module that you have chosen
set optionname modulename: This command allows you to set the various options for a given module