OverviewDeveloperHacker

PrivEsc Peek: A Tiny Linux Misconfiguration Enumerator

Intermediate0 enrolled · 0 submitted

Want in? Run /enroll in Discord to claim this tier before the build window closes.

The brief

Privilege escalation often starts with the same boring checks: odd SUID binaries, writable cron jobs, loose file permissions. Write a small script that runs those checks on a Linux box and highlights what's worth a closer look.

Your MVP: a single-file script that enumerates a handful of common misconfigurations and prints a tidy, prioritized report.

Core outcomes:

  • Implement at least five checks, for example SUID/SGID files, world-writable files in sensitive paths, writable cron entries, sudo -l output parsing, and PATH hijack risks.
  • Test it only on a machine you own: a local VM or container you deliberately weaken. Plant two or three known issues and prove your script finds them.
  • Cross-reference your findings with GTFOBins to explain why a flagged binary matters.
  • Compare your output to an established tool such as LinPEAS and note one thing yours misses and one thing it keeps simpler.

This is about understanding the checks, not out-featuring existing tools. Read-only enumeration only; no exploitation code is required.

Deliverables

  • The enumeration script (shell or Python) with a README covering usage and the checks it performs
  • A description of your test setup and the intentionally planted misconfigurations
  • Sample output showing the script flagging each planted issue, with a short note on why each is risky
  • A brief comparison with LinPEAS (or similar) noting differences in coverage

Resources