Back to course

Using `msfconsole` I: Basics

Cyber Security Mastery: From Zero to Hero

Navigating the Metasploit Console

Start msfconsole from your Kali terminal. You will see the Metasploit prompt: msf6 >.

Essential Commands

CommandFunction
search [keyword]Searches for modules matching the keyword.
use [module_path]Loads a specific module (exploit or auxiliary).
infoDisplays detailed information about the currently loaded module.
show optionsLists all necessary configuration settings (variables) for the module.
set [variable] [value]Sets the value of a specific option.
run or exploitExecutes the loaded module.

Example Workflow

  1. Find the module: msfconsole search ftp

  2. Select the exploit: msfconsole use exploit/unix/ftp/vsftpd_234_backdoor