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 установки+3 за 7 дней27 ЗвездыMITсинхронизировано 22 часа назад
Установка
Ещё нет NotHoly CLI? Сначала установите её.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install noorqureshi/privesc-linux-gtfobinsПишет в ~/.notholy/skills после проверки подписи и SHA-256.
ПодписьПодписано, ed25519
Пакет58732447…38467d99
587324472b45…f13738467d991 файл · 1.3 KBПроверкаНизкийзамечаний нет
Источникgithub.com/NoorQureshi/security-skills/tree/main/skills/privesc/privesc-linux-gtfobins@ee0e0c5
Эта запись еще не переведена на русский, поэтому показан текст на другом языке: English.
На странице
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
- 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).
- 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-basedpython -c 'import os;os.setuid(0);...'). - Also check: writable cron jobs / scripts run as root (
pspyto watch), writablePATHentries a root process calls,LD_PRELOAD/env_keepin sudo, wildcard injection in root scripts. - Stabilize the root shell and grab proof.
Gotchas
sudo -lNOPASSWD entries are the quickest win — check first.- A SUID binary that drops privileges is safe; GTFOBins tells you which escapes actually keep root.
linpeasfinds 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.
Файлы этой версии
- SKILL.md2.4 KB
Права
| Право | Заявлено | Найдено проверкой |
|---|---|---|
| Читает файлы | Нет | Нет |
| Пишет файлы | Нет | Нет |
| Выполняет команды shell | Нет | Нет |
| Ходит в сеть | Нет | Нет |
| Использует коннекторы | Нет | Нет |
| Управляет браузером | Нет | Нет |
Замечания проверки
Проверено 13 нояб. 2026 г.
Проверка не нашла в этой версии ничего подозрительного.
Чистая проверка снижает риск, но не доказывает, что пакет безопасен. Читайте то, что ставите.
| Версия | Опубликована | Коммит | SHA-256 | Подпись | Изменение прав |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | 13 нояб. 2026 г. | ee0e0c5 | 58732447 | Подписана | – |
Ещё от NoorQureshi
Всё от этого издателяЕще в категории «Linux, облака и контейнеры»
Вся категория- detecting-aws-credential-exposure-with-trufflehogmukul975/detecting-aws-credential-exposure-with-trufflehog5
- cloud-gcpnoorqureshi/cloud-gcp4
- container-image-hardeningsecurityskills/container-image-hardening3
- performing-cloud-incident-containment-proceduresmukul975/performing-cloud-incident-containment-procedures3
- implementing-taxii-server-with-opentaxiimukul975/implementing-taxii-server-with-opentaxii3
- detecting-cryptomining-in-cloudmukul975/detecting-cryptomining-in-cloud3
Спрашивайте обо всём, что позволяет ваш скоуп.
Создайте аккаунт, пополните баланс и задайте первый вопрос в чате или в терминале.
- 1/3
Создайте аккаунт
Личный или для компании. Позже можно перейти на аккаунт компании без потери баланса и ключей.
ЛичныйКомпания - 2/3
Пополните баланс
Картой. Оплата за токены, без подписки.
$5.00минимальное пополнение - 3/3
Спрашивайте
В чате, или установите CLI и выполните notholy login в терминале.
$ notholy login