Search

Gaining Root with Metasploit

search for the vuln:

search vulnName

pick the exploit/aux:

use 1 #number corresponding
OR
use copyAndPastedName

use options to find out what you need to fill:

options

use set + option name to add its value:

set lhost eth0

^this sets local host to whatever the eth0 IP is instead of having to go do ifconfig and putting the copying the IP