Linux Privilege Escalation – the Practical Hacking Cheatsheet Series

The CyberSec Guru

Linux Privilege Escalation Cheatsheet

If you like this post, then please share it:

Buy me A Coffee!

Support The CyberSec Guru’s Mission

🔐 Fuel the cybersecurity crusade by buying me a coffee! Why your support matters: Zero paywalls: Keep the main content 100% free for learners worldwide, Writeup Access: Get complete in-depth writeup with scripts access within 12 hours of machine drop.

“Your coffee keeps the servers running and the knowledge flowing in our fight against cybercrime.”☕ Support My Work

Buy Me a Coffee Button

Linux privilege escalation is one of the most important skills to learn if you are practicing Hack The Box, CTFs, ProLabs, internal pentesting, or real-world Linux post-exploitation.

Getting a shell is only the beginning. The real challenge often starts after that.

Once you land as a low-privileged user, you need to answer questions like:

What can this user run?
Are there sudo misconfigurations?
Are there unusual SUID binaries?
Are there writable root scripts?
Are cron jobs running in the background?
Are there passwords or SSH keys on the system?
Is Docker misconfigured?
Is there an NFS no_root_squash issue?
Is the kernel vulnerable?

That is why Part 3 of my Practical Hacking Cheatsheet Series focuses on:

Linux Privilege Escalation Cheatsheet

This cheatsheet is designed as a clean, practical reference for common Linux privesc vectors seen in HTB machines, CTFs, ProLabs, and pentesting labs. It is not just a random list of commands. The goal is to help you follow a proper methodology after getting a shell and quickly identify realistic paths to root.

The full Linux Privilege Escalation Cheatsheet covers areas like:

Quick wins after getting a shell
sudo -l checks
GTFOBins-based sudo abuse
SUID and SGID binary discovery
PATH hijacking
Shared library injection
Linux capabilities
cron job abuse
pspy monitoring
wildcard injection
kernel exploit checks
DirtyCow, DirtyPipe, PwnKit and sudo-related exploits
Docker escape checks
Docker socket abuse
privileged container abuse
NFS no_root_squash
writable systemd services and timers
internal services on localhost
password reuse
SSH key discovery
MySQL running as root
screen and tmux session hijacking
useful Linux enumeration commands

This part is especially useful when you already have a foothold and need a structured way to move from a normal user shell to root.

For example:

What should I check first after getting a Linux shell?
How do I find SUID binaries?
How do I abuse sudo permissions?
How do I identify dangerous Linux capabilities?
How do I find writable cron scripts?
How do I monitor hidden root processes?
How do I check if I am inside Docker?
How do I exploit an exposed Docker socket?
How do I test for NFS no_root_squash?
When should I consider kernel exploits?

The main idea is simple: Linux privilege escalation is mostly careful enumeration. In many labs, the fastest route to root is not a kernel exploit. It is usually a misconfigured sudo rule, a writable script, a reused password, a leaked SSH key, a custom SUID binary, a Docker misconfiguration, or a root cron job running something you can modify.

Full Cheatsheet Series

This is the complete Practical Hacking Cheatsheet Series:

PartCheatsheetFocus
Part 1Active DirectoryAD attack methodology and commands
Part 2Web ApplicationWeb exploitation techniques and payloads
Part 3Linux PrivescLinux privilege escalation vectors
Part 4Windows PrivescWindows privilege escalation vectors
Part 5Reverse ShellsReverse shell one-liners for all languages
Part 6File TransfersMethods to transfer files between machines
Part 7PivotingSSH tunneling, Chisel, Ligolo, SOCKS
Part 8Password AttacksCracking, spraying, brute-forcing
Part 9Linux EnumerationPost-exploitation Linux enumeration
Part 10Windows EnumerationPost-exploitation Windows enumeration

Each part is made to be practical, clean, and easy to use while solving machines or revising methodology.

Who This Is For

This cheatsheet series is made for:

Hack The Box players
CTF learners
ProLab students
Beginner and intermediate pentesters
Linux security learners
Privilege escalation beginners
Cybersecurity students
People preparing for practical exams
Anyone building organized hacking notes

If you are practicing Linux machines, this cheatsheet gives you a reliable checklist for going from initial shell to root without randomly guessing commands.

Members-only access

One subscription.
Every cheatsheet, forever.

Get the full Linux Privilege Escalation Cheatsheet now — plus every new part of the Practical Hacking Series as it drops, and access to additional series too. No waiting. No separate purchases.

What you unlock
📥
This cheatsheet, in full
Instant access to the complete version the moment you join.
🔄
Every future part, automatically
New cheatsheets drop straight into your membership. No extra cost, ever.
📚
Multiple series, one sub
Access extends across all series — not just this one.
Early access as I build
Members get new content before it’s publicly announced.
$2
per month · cancel anytime
All current & future parts included
Additional series access included
Instant access the moment you join
Get Instant Access — $2/month

Buy me A Coffee!

Support The CyberSec Guru’s Mission

🔐 Fuel the cybersecurity crusade by buying me a coffee! Your contribution powers free tutorials, hands-on labs, and security resources.

Why your support matters:
  • Writeup Access: Get complete writeup access within 12 hours
  • Zero paywalls: Keep the main content 100% free for learners worldwide

Perks for one-time supporters:
☕️ $5: Shoutout in Buy Me a Coffee
🛡️ $8: Fast-track Access to Live Webinars
💻 $10: Vote on future tutorial topics + exclusive AMA access

“Your coffee keeps the servers running and the knowledge flowing in our fight against cybercrime.”☕ Support My Work

Buy Me a Coffee Button

If you like this post, then please share it:

Discover more from The CyberSec Guru

Subscribe to get the latest posts sent to your email!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from The CyberSec Guru

Subscribe now to keep reading and get access to the full archive.

Continue reading