Mastering the Metasploit Console (MSFCONSOLE)
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 purposes of exploitation, the MSFCONSOLE will get you connected to a host so that you can launch your exploits against it.
Some common commands 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 module
: This command allows you to begin configuring the module that you have chosenset optionname module
: This command allows you to set the various options for a given moduleexploit
: This command launches the exploit modulerun
: This command launches a non-exploit modulesearch module
: This command allows you to search for an individual moduleexit
: This command allows you to exit the MSFCONSOLE
Getting ready
A connection to the Internet...