Nothing Special   »   [go: up one dir, main page]

Skip to content

Offline command line tool that searches for GTFOBins binaries that can be used to bypass local security restrictions in misconfigured systems.

Notifications You must be signed in to change notification settings

r1vs3c/searchbins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Searchbins

Offline command line tool that searches for GTFOBins binaries that can be used to bypass local security restrictions in misconfigured systems.

The main purpose of the tool is to give you the possibility to search for GTBOBins binaries offline and from the terminal.

The tool is able to:

  • List the functions of a specific binary which can be abused
  • Show the commands to abuse a specific function or all functions of a binary
  • List all binaries available in GTFOBins
  • List the binaries associated with a specific function
  • List all the functions available in GTFOBins
  • Search GTBOBins binaries from a file and list their respective functions
  • Update GTFOBins database automatically

Demo

demo

Dependencies

For the tool to work properly, the following dependencies need to be installed:

sudo apt install yq jq -y

Installation

git clone https://github.com/r1vs3c/searchbins.git
cd searchbins
./searchbins.sh -h

If you want to run the tool from any path on your system, you can run the following script:

sudo ./install.sh 

Options

____ ____ ____ ____ ____ _  _ ___  _ _  _ ____
[__  |___ |__| |__/ |    |__| |__] | |\ | [__
___] |___ |  | |  \ |___ |  | |__] | | \| ___]  by Juan Rivas (@r1vs3c)

[!] Use: searchbins 
================================================================================
        [-b] Binary to enumerate
                Example: searchbins -b docker

        [-f] Specific function of the binary or binaries
                Example: searchbins -b docker -f shell

        [-a] All available functions of the binary
                Example: searchbins -b docker -a

        [-l] List all available binaries or functions 
                Example: searchbins -l <bins/functions>
                         searchbins -l bins -f suid

        [-s] File to search for binaries
                Example: searchbins -s <path_to_file>

        [-u] Update GTFOBins database

        [-h] Show this panel

Examples

List the functions of a binary

searchbins -b docker

Display commands to abuse a specific function of the binary

searchbins -b docker -f shell

Display commands to abuse all functions associated with the binary

searchbins -b docker -a

List all available binaries

searchbins -l bins

List all available binaries associated with a specific function

searchbins -l bins -f file-download

List of all available functions

searchbins -l functions

Search for potential binaries from a file

searchbins -s bins.txt

Uninstall

sudo rm /usr/local/bin/searchbins
sudo rm -rf /usr/local/share/bins

Credits

Thanks to norbemi and cyrus_and for creating GTFOBins without that this project won't be in existence.

About

Offline command line tool that searches for GTFOBins binaries that can be used to bypass local security restrictions in misconfigured systems.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages