gtfobinSUID V1.2
Developed by strikoder
gtfobinSUID is a lightweight Python tool for automating SUID/SGID binary enumeration. It compares discovered binaries against the GTFOBins database and supports both online and offline modes.
In offline mode, it uses a local database file (db.txt), which can be automatically updated by scraping the latest entries from GTFOBins.
🎥 Demo
🔹 Features
- Works on Linux, macOS, and Windows
- Handles versioned binary names (python3, perl5.42, etc.)
- Prints the command to enumerate SUID/GUID on Linux systems on demand
- Minimal, no dependencies beyond
requests(likely preinstalled on Kali Linux) - Shows hints for binaries that might have vulnearbilites when they have SUID enabled like pkexec and sudo
- Checks if a binary exists on GTFOBins under SUID or Limited SUID and prints
[FOUND],[FOUND - Limited SUID], or[NOT FOUND]as it processes
Flags
- --online (Default): fetches live data directly from GTFOBins
- --update-db: automatically pulls all GTFOBins SUID and Limited SUID entries
- --offline (Auto-Switch with no network): uses a local
db.txtfor environments without internet
Installation
Choose your preferred installation method:
Method 1: pipx
Install in an isolated environment using pipx:
pipx install gtfobinsuid
Method 2: pip
Install globally or in a virtual environment:
pip3 install gtfobinsuid
Method 3: From Source
Clone the repository and install dependencies:
git clone https://github.com/strikoder/gtfobinSUID.git
cd gtfobinsuid
pip install requests
Method 4: Standalone Script
Download and run directly without installation:
Using wget:
wget -q -O gtfobinsuid.py "https://raw.githubusercontent.com/strikoder/gtfobinSUID/main/gtfobinsuid.py"
chmod +x gtfobinsuid.py
./gtfobinsuid.py
Using curl:
curl -sL -o gtfobinsuid.py "https://raw.githubusercontent.com/strikoder/gtfobinSUID/main/gtfobinsuid.py"
chmod +x gtfobinsuid.py
./gtfobinsuid.py
Usage
1. Basic usage
Paste your SUID/SGID enum output directly:
python3 gtfobinsuid.py
Then paste something like:
/usr/bin/find
/usr/bin/passwd
/usr/bin/sudo
/bin/mount
Press Ctrl+d (Linux/macOS) or Ctrl+z + Enter (Windows) to finish.
You’ll see immediate output:
[FOUND] find -> https://gtfobins.github.io/gtfobins/find/
[NOT FOUND] sudo
[!] HINT: 'sudo' with SUID might indicate CVE exploits or misconfigurations (check Baron Samedit & version vulnerabilities)
[NOT FOUND] mount
2. Force online or offline
- Force online only:
python3 gtfobinsuid.py --online
- Force offline mode (requires
db.txt):python3 gtfobinsuid.py --offline
3. Update the local database
You can refresh db.txt automatically from GTFOBins:
python3 gtfobinsuid.py --update-db
This will:
- Fetch all SUID and Limited SUID binaries directly from the GTFOBins website
- Save them to
db.txt - Print how many entries were found
Example output:
[*] Fetching GTFOBins lists...
[+] Database updated successfully: db.txt
195 SUID entries
64 Limited SUID entries
How it works
- Extracts basenames from your pasted enumeration results.
Example:/usr/bin/sudo→sudo - Checks each binary:
- If online: queries the GTFOBins page for that binary.
- If offline: looks up the name in
db.txt.
- Prints result immediately for each binary.
🧑💻 Author
Strikoder
Penetration Tester & ex AI Engineer
Metadata
Release files for gtfobinsuid 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gtfobinsuid-1.3.0.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gtfobinsuid-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.6 kB
Release files / gtfobinsuid-1.3.0.tar.gz
| Download URL | gtfobinsuid-1.3.0.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08a0e24aea2508dbc6d47dc69f443a71f7223f70eaec7ea222774bbd66822b89
|
|
BLAKE2b-256 checksum How to use checksums |
b3d432d14171a554a7a93b505d1d9cb8870b17b1271b5c050525447b9270805e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / gtfobinsuid-1.3.0-py3-none-any.whl
| Download URL | gtfobinsuid-1.3.0-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da685e519364cc37a7b90aeda0ac69977e9970101b20dacdb1fdb8ac2da7ce88
|
|
BLAKE2b-256 checksum How to use checksums |
7a1eba56eaac781870bd246ab9763f47e625629147eec9ede369a5492919513c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|