Code Monkey home page Code Monkey logo

gtfobins's Introduction

GTFO binaries

The script will scan for SUID binaries on the system and check them against GTFOBins for potential vulnerabilities and privilege escalation techniques.

What are GTFO Binaries

Gtfobins has made a significant impact on the cybersecurity landscape by providing a comprehensive collection of “gtfo” binaries and associated techniques. Accoring to DotComMagazine Gtfobins are a collection of Linux/Unix-binaries. These binaries can be leveraged to escalate privileges, bypass security restrictions, and gain unauthorized access to systems.

Thus empowers security professionals to test the security of their systems and identify potential vulnerabilities. It serves as a valuable resource for penetration testing, vulnerability assessments, and red teaming exercises. Additionally, system administrators can leverage Gtfobins to better understand the risks associated with certain binaries and implement appropriate security measures to protect their systems. This tool will help you do just that.

GTFOBins Vulnerability Scanner

Walkthrough

Overview

The GTFOBins Vulnerability Scanner is a tool designed to identify potential vulnerabilities and privilege escalation techniques in SUID binaries on a Linux system. It leverages information from GTFOBins, a curated list of Unix binaries that can be exploited by an attacker to bypass local security restrictions. This tool will help you identify the low hanging fruits in your system which you can then place security controls over.

Features

  • Scans the system for SUID binaries.
  • Checks identified SUID binaries against GTFOBins for potential vulnerabilities.
  • Displays potential privilege escalation techniques for vulnerable binaries such as e.g. SUDO, SUID, SHELL, FILE-READ, FILE-WRITE, FILE-DOWNLOAD, REVERSE SHELL, FILE-UPLOAD, LIMITED SUID, LIBRARY LOAD.
  • Provides information on binaries that are not present in the local system.
  • Welcome screen with ASCII art.

Dependencies

  • curl (Ensure it is installed on your system)
  • latest version of python
  • gitpython is used for Git operations
  • pyyaml is used for parsing YAML content.
  • subprocess: os, threading, argparse, and sys are built-in Python libraries

Options

-v, --verbose: Enable verbose mode. -o, --output : such as result.txt

License

This tool is licensed under the GPL-3.0 License - see the LICENSE file for details.

Acknowledgments and Special Thanks

GTFOBins (gtfobins.github.io) - A fantastic resource for binary exploitation techniques. Credits to this repository for providing the main source for ALL the GTFO Binaries inforamtion.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your enhancements.

Issues and Support

For bug reports or feature requests, please open an issue on GitHub.

Author

Vinal-2 - Author of GTFOBins Vulnerability Scanner

Installation

Clone repository:

git clone https://github.com/vinal-2/GTFObins

Install the tool using pip:

pip install gtfobins-scan

Python:

python -m pip install --upgrade pip

Example use:

Bash:

Identify SUID binaries and check for privilege escalation techniques:

gtfobins-scan

Enable verbose mode:

gtfobins-scan -v

Specify an output file for the scan results:

gtfobins-scan -o output.txt

Enable verbose mode and specify an output file:

gtfobins-scan -v -o output.txt

Python:

Identify SUID binaries and check for privilege escalation techniques:

python gtfobins_scan.py
python3 gtfobins_scan.py

Enable verbose mode and specify an output file:

python gtfobins_scan.py -v
python3 gtfobins_scan.py -v

Specify an output file for the scan results:

python gtfobins_scan.py -o output.txt
python3 gtfobins_scan.py -o output.txt

Enable verbose mode and specify an output file:

python gtfobins_scan.py -v -o output.txt
python3 gtfobins_scan.py -v -o output.txt

gtfobins's People

Contributors

vinal-2 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.