offensive-linux-privesc

Featured

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 signatures and defender-side vi

DevOps & Infrastructure 6,950 stars 909 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Linux Privilege Escalation You 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. Every 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. ## Quick Workflow 1. Run automated enumeration (LinPEAS, linux-exploit-suggester) to surface quick wins. 2. Check sudo permissions, SUID/SGID binaries, and capabilities first -- these are the highest-probability vectors. 3. Enumerate cron jobs, writable scripts, and PATH ordering for hijack opportunities. 4. Inspect file permissions on /etc/passwd, /etc/shadow, service configs, and SSH keys. 5. Check for NFS shares with no_root_squash and Docker group membership. 6. Fingerprint the kernel version and search for applicable kernel exploits as a last resort. 7. Validate the escalation path, document the chain, and clean up artifacts. --- ## Automated Enumeration Before manual inspection, run automated tools to surface the broadest set of findings. Pipe output to a file for offline review and cross-referencing. ```bash # LinPEAS -- transfer and execute curl -L https://github.com/peass-ng/PEASS-ng/releas...

Details

Author
SnailSploit
Repository
SnailSploit/Claude-Red
Created
6 months ago
Last Updated
6 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category