Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
gtfocli — GTFO Command Line Interface for easy binaries search commands that can be used to bypass local security restrictions in misconfigured systems. | Kitploit
Tools/GitHubGitHub/cmd-tools/gtfocli
Privilege EscalationInformation GatheringCTFPenetration Testing
GitHubcmd-tools/gtfocli

gtfocli

GTFO Command Line Interface for easy binaries search commands that can be used to bypass local security restrictions in misconfigured systems.

View Repository
1811 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

GTFOcli

GTFOcli it's a Command Line Interface for easy binaries search commands that can be used to bypass local security restrictions in misconfigured systems.

Table of Contents

  • Table of Contents
  • Installation
  • Usage
    • Search for Unix binaries
    • Search for Windows binaries
    • Search using dockerized solution
    • CTF
  • Credits
  • Contributing

Installation

Using go:

root@kitploit:~
go install github.com/cmd-tools/gtfocli@latest

Using homebrew:

root@kitploit:~
brew tap cmd-tools/homebrew-tap
brew install gtfocli

Using docker:

root@kitploit:~
docker pull cmdtoolsowner/gtfocli

Usage

Search for unix binaries

Search for binary tar:

root@kitploit:~
gtfocli search tar

Search for binary tar from stdin:

root@kitploit:~
echo "tar" | gtfocli search

Search for binaries located into file;

root@kitploit:~
cat myBinaryList.txt
/bin/bash
/bin/sh
tar
arp
/bin/tail

gtfocli search -f myBinaryList.txt

Search for windows binaries

Search for binary Winget.exe:

root@kitploit:~
gtfocli search Winget --os windows

Search for binary Winget from stdin:

root@kitploit:~
echo "Winget" | gtfocli search --os windows

Search for binaries located into file:

root@kitploit:~
cat windowsExecutableList.txt
Winget
c:\\Users\\Desktop\\Ssh
Stordiag
Bash
c:\\Users\\Runonce.exe
Cmdkey
c:\dir\subDir\Users\Certreq.exe

gtfocli search -f windowsExecutableList.txt --os windows

Search for binary Winget and print output in yaml format (see -h for available formats):

root@kitploit:~
gtfocli search Winget -o yaml --os windows

Search using dockerized solution

Examples:

Search for binary Winget and print output in yaml format:

root@kitploit:~
docker run -i cmdtoolsowner/gtfocli search Winget -o yaml --os windows

Search for binary tar and print output in json format:

root@kitploit:~
echo 'tar' | docker run -i cmdtoolsowner/gtfocli search -o json

Search for binaries located into file mounted as volume in the container:

root@kitploit:~
cat myBinaryList.txt
/bin/bash
/bin/sh
tar
arp
/bin/tail

docker run -i -v $(pwd):/tmp cmdtoolsowner/gtfocli search -f /tmp/myBinaryList.txt

CTF

An example of common use case for gtfocli is together with find:

root@kitploit:~
find / -type f \( -perm 04000 -o -perm -u=s \) -exec gtfocli search {} \; 2>/dev/null

or

root@kitploit:~
find / -type f \( -perm 04000 -o -perm -u=s \) 2>/dev/null | gtfocli search

Credits

Thanks to GTFOBins and LOLBAS, without these projects gtfocli would never have come to light.

Contributing

You want to contribute to this project? Wow, thanks! So please just fork it and send a pull request.

Download Tool