sickn33/antigravity-awesome-skills/privilege-escalation-methods
- community
Checking that the SKILL.md file is still in the repository.
Provide comprehensive techniques for escalating privileges from a low-privileged user to root/administrator access on compromised Linux and Windows systems. Essential for penetration testing post-exploitation phase and red team operations.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/privilege-escalation-methodsSKILL.md
⚠️ AUTHORIZED USE ONLYThis skill is for educational purposes or authorized security assessments only.You must have explicit, written permission from the system owner before using this tool.Misuse of this tool is illegal and strictly prohibited.
Mandatory confirmation gateBefore running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:1. Ask the user to state the exact target URL, IP, account, or resource.2. Ask the user to confirm written authorization and the permitted scope.3. Show the exact command(s) and explain their expected effect.4. Wait for explicit confirmation in the current conversation.Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
Privilege Escalation Methods
Purpose
Provide comprehensive techniques for escalating privileges from a low-privileged user to root/administrator access on compromised Linux and Windows systems. Essential for penetration testing post-exploitation phase and red team operations.
Inputs/Prerequisites
- Initial low-privilege shell access on target system
- Kali Linux or penetration testing distribution
- Tools: Mimikatz, PowerView, PowerUpSQL, Responder, Impacket, Rubeus
- Understanding of Windows/Linux privilege models
- For AD attacks: Domain user credentials and network access to DC
Outputs/Deliverables
- Root or Administrator shell access
- Extracted credentials and hashes
- Persistent access mechanisms
- Domain compromise (for AD environments)
Demonstration boundaries
The commands below include destructive overwrites, SUID/persistence changes, password resets and credential extraction. They are reference material for explicitly authorized disposable labs, not a default assessment sequence. Prefer harmless proof of the specific permission boundary, synthetic accounts and owner-agreed canaries; preserve originals and a cleanup/rollback record. Initial access does not authorize domain-wide credential access or persistence. Do not run historical drivers/tools without verifying exact affected versions and stability constraints.
Core Techniques
Linux Privilege Escalation
1. Abusing Sudo Binaries
Exploit misconfigured sudo permissions using GTFOBins techniques:
2. Abusing Scheduled Tasks (Cron)
3. Abusing Capabilities
4. NFS Root Squashing
5. MySQL Privilege Boundaries
The mysql client \! command executes locally as the client OS user; a root database account or root-running server does not make that shell root. Review server process identity, database grants and filesystem permissions separately; do not claim OS escalation from a client shell escape.
Windows Privilege Escalation
1. Token Impersonation
2. Service Abuse
3. Abusing SeBackupPrivilege
4. Abusing SeLoadDriverPrivilege
5. Abusing GPO
Active Directory Attacks
1. Kerberoasting
2. AS-REP Roasting
3. Golden Ticket
4. Pass-the-Ticket
5. Golden Ticket with Scheduled Tasks
Credential Harvesting
LLMNR Poisoning
NTLM Relay
Dumping with VSS
Quick Reference
| Technique | OS | Domain Required | Tool | |
|---|---|---|---|---|
| Sudo Binary Abuse | Linux | No | GTFOBins | |
| Cron Job Exploit | Linux | No | Manual | |
| Capability Abuse | Linux | No | getcap | |
| NFS no_root_squash | Linux | No | mount | |
| Token Impersonation | Windows | No | SweetPotato | |
| Service Abuse | Windows | No | PowerUp | |
| Kerberoasting | Windows | Yes | Rubeus/Impacket | |
| AS-REP Roasting | Windows | Yes | Rubeus | |
| Golden Ticket | Windows | Yes | Mimikatz | |
| Pass-the-Ticket | Windows | Yes | Rubeus | |
| DCSync | Windows | Yes | Mimikatz | |
| LLMNR Poisoning | Windows | Yes | Responder |
Constraints
Must:
- Have initial shell access before attempting escalation
- Verify target OS and environment before selecting technique
- Use appropriate tool for domain vs local escalation
Must Not:
- Attempt techniques on production systems without authorization
- Leave persistence mechanisms without client approval
- Ignore detection mechanisms (EDR, SIEM)
Should:
- Enumerate thoroughly before exploitation
- Document all successful escalation paths
- Clean up artifacts after engagement
Examples
Example 1: Linux Sudo to Root
Example 2: Windows Kerberoasting
Troubleshooting
| Issue | Solution | |
|---|---|---|
| sudo -l requires password | Try other enumeration (SUID, cron, capabilities) | |
| Security tooling blocked | Stop and coordinate with the engagement owner; do not bypass controls outside the approved plan | |
| Kerberoasting returns no hashes | Check for service accounts with SPNs | |
| Token impersonation fails | Verify SeImpersonatePrivilege is present | |
| NFS mount fails | Check NFS version compatibility (vers=2,3,4) |
Additional Resources
For detailed enumeration scripts, use:
- LinPEAS: Linux privilege escalation enumeration
- WinPEAS: Windows privilege escalation enumeration
- BloodHound: Active Directory attack path mapping
- GTFOBins: Unix binary exploitation reference
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Security
- Security scanPassed, 91 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/privilege-escalation-methods/SKILL.md
Popularity
- Repository stars
- 27,510
- Repository forks
- 4,631
- Repository npm downloads, 7 days
- 5,562
- 7-day trend score
- 72
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/privilege-escalation-methods)