Start Metasploit
$ service postgresql start
$ msfdb init
$ msfconsole
$ msfdb init
$ msfconsole
Basic Commands
Search
$ search [search term]
Select Exploit
$ use [full exploit path]
example $use exploit/multi/http/apache_roller_ognl_injection
View Exploit Options
$ show options
View Advanced Options
$ show advanced
Set Option
$ set [option] [parameter]
example $ set lhost 127.0.0.1
View Payload Options
$ show payloads
$ search [search term]
Select Exploit
$ use [full exploit path]
example $use exploit/multi/http/apache_roller_ognl_injection
View Exploit Options
$ show options
View Advanced Options
$ show advanced
Set Option
$ set [option] [parameter]
example $ set lhost 127.0.0.1
View Payload Options
$ show payloads
Links
Metasploit Tutorial: https://www.offensive-security.com/metasploit-unleashed/