Privilege Escalation Methods

Guide ethical privilege escalation on Linux and Windows systems.

4.5k|458|Updated Jun 21, 2025
One-click install
npx skills add https://github.com/zebbern/claude-code-guide --skill privilege-escalation-methods
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Privilege Escalation Methods
Source: https://github.com/zebbern/claude-code-guide/tree/main/skills/privilege-escalation-methods
Command: npx skills add https://github.com/zebbern/claude-code-guide --skill privilege-escalation-methods

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides structured guidance for ethically authorized privilege escalation on Linux and Windows targets to enable controlled post-exploitation learning and testing.

Core Features & Use Cases

  • Linux techniques: sudo binary abuse, scheduled task abuse, capabilities abuse, NFS root squashing, and running root-owned services (e.g., MySQL as root).
  • Windows/Active Directory techniques: token impersonation, service abuse, SeBackupPrivilege, SeLoadDriverPrivilege, Kerberoasting, AS-REP roasting, Golden Ticket, Pass-the-Ticket.
  • Use Case: Red team engagements and post-exploitation training scenarios that require gaining or simulating privileged access with proper authorization.

Quick Start

Instruct the AI to outline a targeted privilege escalation assessment plan for a Linux or Windows host, including the steps and example commands to attempt in a controlled, authorized environment.

Frequently Asked Questions about Privilege Escalation Methods

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is post-exploitation privilege escalation and when do I need it?

Privilege escalation is the process of gaining root or administrator access after obtaining an initial shell on Linux or Windows targets. It is needed during authorized red-team engagements or post-exploitation training to simulate privileged access.

How do I abuse sudo binaries and capabilities for Linux privilege escalation?

Linux privilege escalation involves abusing sudo binaries, scheduled cron jobs, file capabilities, and NFS root squashing. You can identify exploitable binaries using GTFOBins and attempt root-owned service abuse, such as exploiting MySQL running as root.

Can I use Mimikatz and Rubeus for Active Directory privilege escalation?

Yes, Mimikatz and Rubeus are used for Windows and Active Directory privilege escalation. They facilitate techniques like token impersonation, Kerberoasting, AS-REP roasting, Golden Ticket generation, and Pass-the-Ticket attacks.

What is the best way to exploit Windows privileges like SeBackupPrivilege and SeLoadDriverPrivilege?

The best way to exploit SeBackupPrivilege and SeLoadDriverPrivilege is through targeted Windows service abuse and token impersonation. These techniques allow you to escalate privileges by leveraging misconfigured service permissions and specific access tokens.

Do I need initial shell access before attempting privilege escalation?

Yes, you need initial shell access with proper authorization before attempting privilege escalation. This skill requires a controlled, authorized environment to guide ethical red-team engagements and post-exploitation training safely.

Why does NFS root squashing fail to provide root access on certain Linux shares?

NFS root squashing fails to provide root access when the server properly remaps root requests to an unprivileged user. However, abusing misconfigured NFS exports where root squashing is disabled allows direct root-level file manipulation.