Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Practice library / Penetration testing, first steps

Workbook · Medium · 5 hoursFree account

Privilege Escalation — Linux & Windows

SUID, sudo, services, tokens, DLL hijacking — complete privesc reference.

  • privilege-escalation
  • linux
  • windows
  • suid
  • token-impersonation
On this page 12 sections
  1. ·Chapter 1 — PrivEsc Methodology
  2. ·Chapter 2 — Linux Information Gathering
  3. Locked: Chapter 3 — Linux SUID/SGID Abuse
  4. Locked: Chapter 4 — Linux Sudo Misconfigurations
  5. Locked: Chapter 5 — Linux Cron Jobs & PATH Hijacking
  6. Locked: Chapter 6 — Linux Capabilities & NFS
  7. Locked: Chapter 7 — Windows Information Gathering
  8. Locked: Chapter 8 — Windows Service Exploits
  9. Locked: Chapter 9 — Windows Token Impersonation
  10. Locked: Chapter 10 — Windows Registry & Autoruns
  11. Locked: Chapter 11 — Windows DLL Hijacking
  12. Locked: Chapter 12 — Automated PrivEsc Tools

Privilege escalation is the step that turns a foothold into real access. An attacker who lands on a host as a limited user wants root on Linux or SYSTEM on Windows, because that level of access makes persistence, lateral movement and credential theft possible. This workbook covers both operating systems in one reference. The Linux side walks through SUID and SGID binaries, sudo misconfigurations, writable services, cron abuse and kernel exploits. The Windows side covers service permissions, DLL hijacking, token impersonation, unquoted service paths and PowerShell-driven enumeration. The focus is on the methodology: enumerate, identify misconfigurations, and exploit the weakest link. Most privesc paths are configuration flaws, not zero-days.

Chapter 1 — PrivEsc Methodology

Privilege escalation follows a clear methodology: enumerate everything, identify misconfigurations, exploit the weakest link. The goal is to move from a low-privilege shell to root (Linux) or SYSTEM/Administrator (Windows). In most cases the cause is a configuration issue, not a zero-day.

Chapter 2 — Linux Information Gathering

# System info
uname -a; cat /etc/os-release
id; whoami; groups

# Users and sudo
cat /etc/passwd
sudo -l                 # what can current user run as root?

# Interesting files
find / -writable -type f 2>/dev/null | grep -v proc
find / -perm -4000 2>/dev/null  # SUID binaries
cat /etc/crontab; ls /etc/cron*

# Network (unexposed services)
ss -tulnp

Sign in to continue

10 more sections are for signed-in members. It is free: sign in with Google.

Related