You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A structured, hands-on reference on escalating from a low-privileged Linux foothold to root — enumeration and methodology, sudo and SUID abuse, capabilities, cron and systemd timers, kernel exploits, container and namespace escapes, and credential mining — written from an offensive-security perspective (escalate, then detect and defend).
Warning
Educational use only
These are personal study notes. Every technique here is documented for use only against systems you own or are explicitly authorized to test (your own lab, a CTF, an authorized engagement). Escalating privileges on a host you do not have written permission to assess is unlawful in most jurisdictions. Examples use lab placeholders (10.10.14.7 attacker, a VM you control) — substitute your own.
What's inside
50+ notes organized by escalation vector, each in a consistent shape: concept → hands-on enumeration/exploitation (bash) → detection → defenses → related notes.
Full vector coverage — automated enumeration (LinPEAS/LinEnum/pspy + an in-repo bash enum script), sudo misconfig & version bypasses (GTFOBins, LD_PRELOAD, Baron Samedit, sudo -u#-1), SUID/SGID & shared-library/PATH hijacking, Linux capabilities, cron & systemd-timer abuse, kernel LPEs (DirtyCow, DirtyPipe, OverlayFS, PwnKit), NFS no_root_squash, Docker/LXD group & namespace escapes, session/IPC abuse (screen/tmux, D-Bus), and credential mining (configs, history, backups, SSH keys, memory).
A methodology checklist, a hardening consolidation, two guided labs + a lab-setup script, and two skills assessments.
On GitHub — every note is fully readable and its cross-references are relative Markdown links clickable in the GitHub web UI; tables and callouts render inline. Start here and follow the Map of Content.
Also great in Obsidian — clone the repo and open the folder as a vault; the same relative links resolve, so click-through, backlinks, and graph view all work.
Conventions
Commands target a Linux target with a Kali attacker unless noted; adapt IPs, paths, and usernames.
Addresses, credentials, and filenames are lab placeholders — replace them with your own.
PoCs that were not run in-place are marked with a # untested comment.
Every technique note pairs detection and defense guidance — documented to be understood and defended against, not just executed.
Offensive Linux Privilege Escalation — hands-on study notes: enumeration, sudo/SUID/capabilities, cron & systemd timers, kernel LPEs (DirtyPipe/OverlayFS/PwnKit), container & namespace escapes, and credential mining. Each technique with detection & defenses. CC BY 4.0.