Privilege Escalation — Hub
Move from low-priv shell to root / SYSTEM / Domain Admin.
Always enumerate fully before complex exploits — easy wins are almost always there.
📌 Notes in This Folder
| Note | Platform | Purpose |
|---|---|---|
| Windows Privileges - OSCP Priority Hub | Windows | whoami /priv star table — SeImpersonate, SeBackup, SeDebug, etc. |
| SeBackupPrivilege | Backup Operators — nxc, diskshadow, robocopy, DLLs, wbadmin — start here | |
| SeRestorePrivilege | SeRestore — wbadmin recovery, write abuse (pairs with SeBackup) | |
| SeManageVolumePrivilege | Volume DACL abuse → write System32 → DLL privesc | |
| SeManageVolumeExploit | SeManageVolumeExploit.exe (CsEnox) — FSCTL DACL rewrite | |
| DLL Injection | Replace DLL (tzres.dll + systeminfo, msfvenom) | |
| DLL Hijacking | DLL search order / missing DLL / writable PATH | |
| Linux | Linux | SUID, sudo, cron, capabilities, kernel |
| pkexec - CVE-2021-4034 PwnKit | Linux | pkexec / polkit local root (CVE-2021-4034) |
| lxc - LXD Privilege Escalation - EDB 46978 | Linux | lxc / lxd group — privileged container → host / at /mnt/root |
| systemd - Writable Service Privilege Escalation | Linux | Writable .service in /etc/systemd/system → edit ExecStart → root |
| disk Group - debugfs Privilege Escalation | Linux | disk group (GID 6) → debugfs read /etc/shadow → crack → root |
| 7zip -snl Symlink Read - usage_management Privilege Escalation | Linux | Writable web dir + sudo 7za -snl backup → read root id_rsa via @listfile |
| Dirty COW - CVE-2016-5195 | Linux | Kernel COW race — old kernels (< 4.8.3) |
| Dirty Pipe - CVE-2022-0847 | Linux | Kernel pipe bug — overwrite /etc/passwd (5.8–5.16) |
| Baron Samedit - CVE-2021-3156 | Linux | sudo heap overflow — no sudoers needed |
| sudo CVE-2019-14287 - User ID -1 Bypass | Linux | sudo < 1.8.28 + (ALL,!root) → sudo -u#-1 /bin/bash |
| OverlayFS - Privilege Escalation | Linux | OverlayFS LPEs — CVE-2023-0386, CVE-2021-3493 |
| DirtyCred - CVE-2022-2588 | Linux | DirtyCred technique — route4 double-free (LES hit) |
| sudo | Linux | Full sudo ref — flags, sudoers syntax, visudo, NOPASSWD privesc |
| Windows PrivEsc | Windows | Services, tokens, AlwaysInstallElevated |
| Potato Attacks | Windows | Token impersonation — GodPotato, PrintSpoofer, SigmaPotato |
| PrintSpoofer | Windows | SeImpersonate → spooler coercion → SYSTEM (second after GodPotato) |
| XAMPP - CVE-2020-11107 Privilege Escalation | Windows | Writable xampp-control.ini → replace editor → EDB-50337 / searchsploit |
| AlwaysInstallElevated - MSI Privilege Escalation | Windows | HKLM + HKCU AlwaysInstallElevated=1 → msfvenom MSI → SYSTEM |
| Churrasco | Windows | Legacy privesc — -d elevated command; SMB transfer via smbserver |
| winExploitSuggester | Windows | Missing-patch suggester — systeminfo → exploit list |
| linux-exploit-suggester | Linux | Kernel exploit suggester — uname → LES |
| Privesc Tools | Both | LinPEAS, WinPEAS — automated enum |
| PowerUp | Windows | PowerShell local privesc (PowerSploit) |
| pspy | Linux | Hidden cron / process monitor (no root) |
| Process - EveryRuns | Both | Quick checklist / THM-style enum |
📌 First Commands After Shell
Linux:
sudo -l
alias # sudo shortcuts, root command aliases
id; whoami; uname -a
id | grep -E 'docker|lxd' # → [[lxc - LXD Privilege Escalation - EDB 46978]]
find / -perm -4000 -type f 2>/dev/nullWindows:
whoami /priv # → [[Windows Privileges - OSCP Priority Hub]]
# SeBackupPrivilege? → [[SeBackupPrivilege]]
# SeRestorePrivilege? → [[SeRestorePrivilege]]
# SeManageVolumePrivilege? → [[SeManageVolumePrivilege]]
systeminfoFull methodology → Privilege escalation · Every Box - Manual Workflow
Backup Operators: SeBackupPrivilege (all dump methods) · SeRestorePrivilege (restore/write)
See full checklists in Linux and Windows PrivEsc.
Linux vs Windows user/hash storage: Registry Hives and Linux Equivalents (/etc/passwd · SAM · SYSTEM · SECURITY · SOFTWARE)