Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/post/solaris/escalate/pfexec.md
Views: 11789
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
msfconsole
Get a session
use post/solaris/escalate/pfexec
set SESSION <SESSION>
run
Your session should now have root privileges
Options
PFEXEC_PATH
Path to pfexec (default: /usr/bin/pfexec
)
SHELL_PATH
Path to shell (default: /bin/sh
)