CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/documentation/modules/post/solaris/escalate/pfexec.md
Views: 1904
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
)