Works with the AI Agents you already use
linux privesc quickwins
A prioritized privilege escalation ladder for Linux environments focusing on high-yield misconfigurations and secrets.
$5
linux privesc quickwins
Example session with this skill installed
I have a shell as the 'www-data' user on a Linux box. Give me the prioritized check list for privilege escalation.
- Read your context and instructions
- Compiled the linux privesc quickwins
I have analyzed the environment and established a prioritized ladder for privilege escalation. Follow these steps from top to bottom to find the path of least resistance.
Linux Privilege Escalation Strategy
| Priority | Vector | Rationale | Command / Check |
|---|---|---|---|
| 1 | Capabilities | Instant root if set on interpreters. Often missed by SUID-only scans. | getcap -r / 2>/dev/null |
| 2 | Sudo Rights | Check for NOPASSWD or binary wildcards in sudoers. | sudo -l |
| 3 | SUID Binaries | Look for non-standard binaries with the SUID bit set. | find / -perm -4000 -type f |
| 4 | Cron Jobs | Writable scripts run by root allow for easy payload injection. | cat /etc/crontab |
| 5 | Config Secrets | Hardcoded creds in .env or .conf files often allow su to a higher user. | `grep -riE 'pass(wd |
| 6 | Root Services | Internal-only services (e.g., dev servers) running as root. | ss -tlnp |
Recommended First Move
Run the following to check for capabilities. If python, perl, or php appears with cap_setuid+ep, use the corresponding one-liner:
# Example for Python capability exploit
python3 -c 'import os; os.setuid(0); os.system("/bin/sh")'
Next steps
- Run the capability check immediately to rule out the fastest win.
- If no capabilities are found, list all SUID binaries and compare them to the GTFOBins database.
- Audit the
/optand/srvdirectories for any custom deployment scripts with weak permissions.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Post-exploitation stalls when you land a low-privilege shell and lose momentum manual-searching for misconfigurations. Spending hours on kernel exploits before checking for basic misconfigurations like cap_setuid or writable cron jobs wastes critical engagement time.
What it does
- Executes a prioritized search for
cap_setuidcapabilities on interpreters like Python, Perl, and PHP for instant root. - Audits SUID binaries and cross-references them against GTFOBins patterns.
- Scans for writable root-run paths and cron jobs to identify PATH hijacking or script injection opportunities.
- Extracts cleartext credentials from application configs, environment files, and shell histories.
- Identifies internal services running as root that provide file-write primitives for RCE.
Frameworks & tools
Linux, Bash, GTFOBins, getcap, systemctl, and standard Unix discovery utilities.
Why this beats prompting it yourself
Standard LLMs often provide generic or noisy commands that trigger EDR. This skill uses a strict, "cheapest-first" ladder that prioritizes high-yield, low-noise vectors like capabilities and config secrets over complex exploits, ensuring you don't miss the easy wins.
Use cases
- Escalating from a web shell to root on a misconfigured web server.
- Auditing internal dev environments for dangerous elevation wildcards.
- Identifying lateral movement paths via hardcoded credentials in
/opt.
Known limitations
Requires an active shell on a Linux-based system. Does not include automated binary exploitation for memory corruption vulnerabilities.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.
Requires an existing shell on a Linux system. No support for Windows or automated kernel exploit compilation.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago