Tooluck logoTooluck
SKILL.md

offensive-linux-privesc

Agent skill fromSnailSploit/Claude-Red

Comprehensive Linux privilege escalation methodology for offensive security engagements. Covers the full attack surface from a low-privilege shell to root: SUID/SGID binary abuse via GTFOBins, Linux capabilities exploitation (cap_setuid, cap_dac_override, cap_dac_read_search), sudo misconfigurations including NOPASSWD rules and Baron Samedit (CVE-2021-3156), cron job abuse through writable scripts, PATH hijacking, and wildcard injection with tar/rsync/chown. Includes writable /etc/passwd attacks, NFS no_root_squash exploitation, kernel exploits (DirtyPipe CVE-2022-0847, DirtyCow CVE-2016-5195, PwnKit CVE-2021-4034), Docker group container escapes, LD_PRELOAD and LD_LIBRARY_PATH hijacking for shared library injection, systemd service misconfigurations, and sensitive file enumeration for credential harvesting. Integrates automated enumeration with LinPEAS, linux-exploit-suggester, pspy for process monitoring, and GTFOBins for binary exploitation. Each technique includes detection signatu

How to install offensive-linux-privesc

install offensive-linux-privesc
# install the Claude-Red pack with the skills CLI
npx skills add SnailSploit/Claude-Red

# or add only this skill to Claude Code: copy the folder

Skills/privesc/offensive-linux-privesc/

# into

~/.claude/skills/offensive-linux-privesc/ (all projects)

.claude/skills/offensive-linux-privesc/ (one project)

Skills/privesc/offensive-linux-privesc/SKILL.md

MITFull file
1# Linux Privilege Escalation
2
3You have a low-privilege shell on a Linux target. Your objective is to escalate to root through systematic enumeration and exploitation of misconfigurations, vulnerable software, and kernel flaws. This skill provides a structured methodology that moves from passive reconnaissance through increasingly aggressive techniques, prioritizing reliability and stealth.
4
5Every engagement starts with situational awareness. Know what you have, what the system exposes, and what defenders can see. Chain low-severity findings into high-impact escalation paths.
6
7## Quick Workflow
8
91. Run automated enumeration (LinPEAS, linux-exploit-suggester) to surface quick wins.
102. Check sudo permissions, SUID/SGID binaries, and capabilities first -- these are the highest-probability vectors.
113. Enumerate cron jobs, writable scripts, and PATH ordering for hijack opportunities.
124. Inspect file permissions on /etc/passwd, /etc/shadow, service configs, and SSH keys.
135. Check for NFS shares with no_root_squash and Docker group membership.
146. Fingerprint the kernel version and search for applicable kernel exploits as a last resort.
157. Validate the escalation path, document the chain, and clean up artifacts.
16
17---
18
19## Automated Enumeration
20
21Before manual inspection, run automated tools to surface the broadest set of findings. Pipe output to a file for offline review and cross-referencing.
22
23```bash
24# LinPEAS -- transfer and execute
25…

Excerpt shown under the repository's MIT license.

More skills in Claude-Red

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates