linux-privilege-escalation

Organizes Linux enumeration and selects exploit paths for privilege escalation.

2|Updated May 15, 2026
One-click install
npx skills add https://github.com/lNwNl/Methodos --skill linux-privilege-escalation-lnwnl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: linux-privilege-escalation
Source: https://github.com/lNwNl/Methodos/tree/main/docker/opencode/skills/linux-privilege-escalation
Command: npx skills add https://github.com/lNwNl/Methodos --skill linux-privilege-escalation-lnwnl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you systematically escalate privileges on Linux when you only have a low-privilege shell, turning vague “privesc” leads into a guided exploitation workflow.

Core Features & Use Cases

  • Linux enumeration and decision-making: Quickly check sudo rights, SUID/SGID binaries, capabilities, cron/timers, writable files, and credential locations, then follow a decision tree to choose the next best avenue.
  • Target-specific exploitation playbooks: Execute escalating techniques across GTFOBins-style SUID abuse, capability abuse (e.g., cap_setuid/cap_sys_admin), cron/path/wildcard injection, writable passwd/shadow, LD_PRELOAD/library hijacking, and group-based container misconfigurations like Docker.
  • Kernel exploit readiness: Map kernel versions to common privilege-escalation exploits and include compilation/cross-compilation and stability guidance to reduce trial-and-error.

Quick Start

Tell the AI: “Generate a Linux privilege-escalation plan for my current low-privilege shell, starting with the exact enumeration commands and the decision tree path, and then recommend the safest next exploit candidates based on what I report back.”

Frequently Asked Questions about linux-privilege-escalation

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

FAQPage Schema
How do I escalate privileges on Linux from a low-privilege shell to root?

Linux privilege escalation from a low-privilege shell involves systematically enumerating sudo rights, SUID binaries, capabilities, and cron jobs, then following a decision tree to select the most effective exploitation path to root.

What is the best way to enumerate a Linux host for privilege escalation vectors?

The best way to enumerate Linux privilege escalation vectors is checking sudo misconfigurations, SUID/SGID binaries, capabilities, cron/timers, writable sensitive files, and credential locations to map available exploitation avenues.

How do I map Linux kernel versions to working privilege escalation exploits?

Mapping Linux kernel versions to privilege escalation exploits requires identifying the kernel version and matching it to known kernel exploits, while considering compilation requirements and system stability to ensure reliable execution.

Can I abuse Linux capabilities like cap_setuid or cap_sys_admin for privilege escalation?

Yes, you can abuse Linux capabilities like cap_setuid and cap_sys_admin for privilege escalation by leveraging the specific privileges granted to binaries to execute commands with elevated permissions and bypass standard user boundaries.

Does being in the docker group allow privilege escalation on Linux?

Yes, being in the docker group allows privilege escalation on Linux because members can mount the host filesystem inside a container, granting root-level access to sensitive host files and system configurations.

What are the limitations of using kernel exploits for Linux privilege escalation?

Limitations of kernel exploits for Linux privilege escalation include potential system instability or crashes, requiring specific compilation or cross-compilation setups, and needing careful stability considerations to avoid rendering the target host unresponsive.