Local Enumeration
Run from an existing shell on the box: system info, users, processes, filesystem, credentials lying in plain sight.
Automated Sweeps
linPEAS/LinEnum run everything below (and more) in one pass, worth kicking off in the background while you work through things manually.
System Information
Start broad: what distro, what kernel, what’s actually installed. The kernel version in particular is worth noting immediately, it’s the first thing to cross-reference against a kernel exploit suggester later.Container & Virtualization Check
Worth confirming early, since it changes what “privilege escalation” even means here, root inside a container is not root on the host, and some techniques (kernel exploits especially) behave differently or not at all.Users & Groups
sudo -l is one of the highest-value commands on this entire page, run it immediately after confirming a shell. Whatever it returns feeds directly into the privilege escalation page next.Network Information
127.0.0.1 is invisible from outside but reachable from this shell directly, worth comparing the ss output against what an external nmap scan showed, the difference is often a service worth pivoting through.
Pivoting one-liners: ping sweep and port scan without extra tools
Pivoting one-liners: ping sweep and port scan without extra tools
Useful when this box has reach into a subnet nothing else can touch directly.
Processes & Scheduled Tasks
Filesystem, Permissions & Mounts
Finding a SUID binary, a writable file owned by root, or an interesting capability here is a lead, not a result. What to actually do with each one (GTFOBins lookups, capability abuse, writable-script hijacking) belongs on the privilege escalation page, this page is where you collect the leads.
Credential & Secret Hunting
Looking for anything left behind, config files, scripts, history, logs, that leaks a password, key, or token directly.Broader sweeps: database files, documents, and programming/script files
Broader sweeps: database files, documents, and programming/script files
Cast a wider net once the targeted searches above come up empty.manspider does the same keyword sweep against remote SMB shares instead of the local filesystem, useful once you’ve got a foothold and credentials to try against neighboring hosts.
Domain Indicators (Linux Joined to AD)
A Linux box can be domain-joined viasssd or Winbind, worth checking since it opens up every Kerberos/AD technique on top of whatever local privesc exists.
Automated Enumeration
Running a script catches things a manual pass misses or would take too long to check by hand, worth kicking off early and reviewing its output while continuing the manual checks above.linPEAS
The most thorough automated Linux enumeration script, color-coded output flags likely privesc vectors directly.
LinEnum
Lighter and faster than linPEAS, a reasonable choice when the target is slow or linPEAS’s output is too noisy to wade through.
- linPEAS
- LinEnum
Grab it straight onto the target with Saving a copy first lets you re-run it with flags (
curl or wget, piping directly into sh skips writing to disk at all, useful on a box with limited write access or where you’d rather not leave the script sitting around.-a for all checks including slower ones, -s for superfast mode) and keep the output logged to a file for later review.Password Hash Reference
Useful for recognizing what you’re looking at if you get hashes from/etc/shadow or a dump .
| Algorithm | Format |
|---|---|
| Salted MD5 | $1$… |
| SHA-256 | $5$… |
| SHA-512 | $6$… |
| BCrypt | $2a$… |
| Scrypt | $7$… |
| Argon2 | $argon2i$… |
Quick Reference Tools
GTFOBins
Lookup table of binaries that can be abused for privilege escalation once SUID/sudo/capability enumeration above turns up a candidate.
linPEAS
Automated enumeration, see above.
pspy
Unprivileged process monitoring, catches cron jobs and scheduled tasks live.
linux-exploit-suggester
Matches the kernel version against known local kernel exploits.

