Skip to content
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
noorqureshi/privesc-linux-gtfobinsLinux, cloud and containers

privesc-linux-gtfobins

⁨Linux privilege escalation via sudo rules, SUID/SGID binaries, and capabilities using GTFOBins techniques. Load with a Linux shell needing root, on `sudo -l` output, SUID/`getcap` findings, or "escalate on Linux". Signals: allowed sudo commands, SUID binaries, file capabilities, cron/PATH abuse.⁩

v2026.10.14-ee0e0c53 installs+3 in 7 days27 StarsMITsynced 22 hours ago

Install

No NotHoly CLI yet? Install it first.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/privesc-linux-gtfobins

Writes to ⁦~/.notholy/skills⁩ after checking the signature and the SHA-256.

SignatureSigned, ed25519
GFc20waMDm…A5FaJmDQ==The CLI checks the SHA-256 and the signature before it writes a file.
Package58732447…38467d99
587324472b45…f13738467d991 file · ⁦1.3 KB⁩
ScanLowno findings
The scan found nothing to flag in this version.See the full scan
Sourcegithub.com/NoorQureshi/security-skills/tree/main/skills/privesc/privesc-linux-gtfobins@ee0e0c5

When it applies

You have a low-priv Linux shell. The fastest root is almost always a misconfig — a sudo rule, a SUID binary, or a file capability that a known GTFOBins technique turns into a root shell or file read/write. Do this before kernel exploits.

Why it works

Many normal binaries can spawn shells, read/write files, or run commands. When such a binary runs with elevated rights — via sudo, the SUID bit, or a capability like cap_setuid — that power becomes yours. GTFOBins catalogs the exact escape for each binary.

Method

  1. Enumerate the three vectors:
    • sudo -l — commands you can run as root/another user (even NOPASSWD).
    • find / -perm -4000 -type f 2>/dev/null — SUID binaries.
    • getcap -r / 2>/dev/null — file capabilities (cap_setuid, cap_dac_read_search).
  2. Look up the binary on GTFOBins for the matching function (sudo / suid / capabilities) and run the exact escape (e.g. sudo vim -c ':!/bin/sh', find . -exec /bin/sh \; if SUID, a capability-based python -c 'import os;os.setuid(0);...').
  3. Also check: writable cron jobs / scripts run as root (pspy to watch), writable PATH entries a root process calls, LD_PRELOAD/env_keep in sudo, wildcard injection in root scripts.
  4. Stabilize the root shell and grab proof.

Gotchas

  • sudo -l NOPASSWD entries are the quickest win — check first.
  • A SUID binary that drops privileges is safe; GTFOBins tells you which escapes actually keep root.
  • linpeas finds all three fast, but understand the vector before firing — some escapes need exact args.

Verify success

A shell/command running as root (id shows uid=0), or root-only file read/write, via the misconfig.

References

GTFOBins; linpeas; "Linux privilege escalation" (HackTricks); pspy.

Files in this version

Permissions

PermissionDeclaredFound by the scan
Reads filesNoNo
Writes filesNoNo
Runs shell commandsNoNo
Uses the networkNoNo
Uses connectorsNoNo
Drives a browserNoNo

Scan findings

Reviewed on Nov 13, 2026

The scan found nothing to flag in this version.

A clean scan lowers the risk but does not prove a package is safe. Read what you install.

VersionPublishedCommitSHA-256SignaturePermission change
v2026.10.14-ee0e0c5Nov 13, 2026ee0e0c558732447Signed–

Ask anything your scope allows.

Create an account, add credits and ask the first question in the chat or the terminal.

  1. 1/3

    Create the account

    Individual or company. You can switch to a company later without losing balance or keys.

    IndividualCompany
  2. 2/3

    Add credits

    By card. Pay per token, no subscription.

    $5.00minimum deposit
  3. 3/3

    Ask

    In the chat, or install the CLI and run notholy login in your terminal.

    $ notholy login