Hands-On Web Penetration Testing with Metasploit
上QQ阅读APP看书,第一时间看更新

MSF console commands

The MSF console commands can be categorized as follows:

  • Core MSF console commands: These commands are the most common and general-purpose commands that are used in the MSF console.
  • Module management commands: MSF modules are managed using these commands. You can edit, load, search, and use Metasploit modules with the help of these commands.
  • MSF job management commands: Using these commands, you can handle Metasploit module job operations such as creating a job using a handler, listing the jobs running in the background, and killing and renaming jobs.
  • Resource script management commands: When using resource scripts, you can use these commands to perform script execution in the console. You can either give a stored script file for execution or store the commands that are used at the start of the MSF console to a file.
  • Backend database commands: These commands are used to manage the database; that is, to check for a DB connection, set up the connection and disconnect it, restore/import the DB in MSF, back up/export DBs out of MSF, and list the saved information related to the target.
  • Credentials management commands: You can view and manage the saved credentials using the creds command.
  • Plugin commands: The plugins in the MSF console can be managed using plugin commands. These commands are available for all the plugins that are loaded.

To learn how to use the msfconsole command, please refer to the following URL: https://www.offensive-security.com/metasploit-unleashed/msfconsole-commands/.

The MSF console not only allows us to utilize the vast number of modules in it, but it also gives us the option to customize the console itself, according to the user. Let's check out how we can customize the console.