Works with the AI tools 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
- Generated the document
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.
linux-privesc-quickwins.pdf
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
What you get
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.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 7 days ago
- Passed all security checks, Safe to install