Path: blob/master/documentation/modules/post/solaris/escalate/pfexec.md
32698 views
Description
This module attempts to upgrade a shell session to UID 0 using pfexec.
Vulnerable Application
https://docs.oracle.com/cd/E19253-01/816-4557/prbactm-1/index.html
http://www.c0t0d0s0.org/archives/4844-Less-known-Solaris-features-pfexec.html
http://solaris.wikia.com/wiki/Providing_root_privileges_with_pfexec
Verification Steps
Start
msfconsoleGet a session
use post/solaris/escalate/pfexecset SESSION <SESSION>runYour session should now have root privileges
Options
PFEXEC_PATH
Path to pfexec (default: /usr/bin/pfexec)
SHELL_PATH
Path to shell (default: /bin/sh)