root@sparrow:~/writeups$ cat linux-privilege-escalation.md
// Offensive
Linux Privilege Escalation
30 Nov 2026
· 13 min read
· root access
Overview — A methodology-first Offensive room on Linux privilege escalation. You start with a low-privileged account (karen), learn what to enumerate and why, then work through the classic vectors one by one: kernel exploits, over-permissivesudo, SUID binaries, file capabilities, cron jobs, writablePATHdirectories and NFSno_root_squash. A final capstone box (leonard) forces you to chain several of them without a hint about which one applies.
| Platform | TryHackMe |
| Category | Offensive |
| Difficulty | Medium |
| Room | Linux Privilege Escalation |
| Target IP | MACHINE_IP |
Attack map
low-priv shell (karen / leonard)
|
v
ENUMERATE (kernel, users, sudo -l, SUID, capabilities,
cron, writable dirs, network, NFS exports)
|
+--> old kernel ............ overlayfs exploit (CVE-2015-1328)
+--> sudo -l ............... find / less / nano / LD_PRELOAD
+--> SUID binary ........... nano / base64 -> read shadow, crack
+--> capability on binary .. cap_setuid on vim / view
+--> root cron job ......... writable script / missing script
+--> writable PATH dir ..... hijack a relative command in a SUID tool
+--> NFS no_root_squash .... plant a SUID shell from the attacker
|
v
root
Task 1 — Introduction
There is no universal Linux privilege escalation trick. What works depends on the kernel, the installed software, which languages are available, and how careless the administrators were. The room therefore teaches a loop rather than a recipe: enumerate, spot a candidate, verify it, exploit it, then re-enumerate as the new user. The same loop is what you will use in CTFs, in exams such as OSCP, and on real engagements.
🔒 Clearance required
Root Access unlocks the content you can't see — everything else on the site is already open.
See Root Access plansNo account? Create one free then upgrade from your console.