a testing framework used for discovering, exploiting, and validating security vulnerabilities. It provides a wide range of tools for reconnaissance, exploitation, payload delivery (e.g., Meterpreter), and post-exploitation tasks.

Commands

PurposeCommand
Start metasploit consolemsfconsole
Search for exploitssearch <keyword>
Use a moduleuse <module-path>
Show options to configure for the module in useshow options
Check to see if target is vulnerable to exploitcheck
Run exploitexploit
Exit metasploitexit

Any options with required set to yes needs to be set for the exploit to work.