Git Product home page Git Product logo

nccgroup / gtfoblookup Goto Github PK

View Code? Open in Web Editor NEW
244.0 13.0 40.0 96 KB

Offline command line lookup utility for GTFOBins (https://github.com/GTFOBins/GTFOBins.github.io), LOLBAS (https://github.com/LOLBAS-Project/LOLBAS), WADComs (https://wadcoms.github.io), and HijackLibs (https://hijacklibs.net/).

License: GNU General Public License v3.0

Roff 15.54% Python 84.46%
gtfobins lolbas privesc pentesting pentesting-tools redteam python wadcoms hijacklibs

gtfoblookup's Introduction

GTFOBLookup

Offline command line lookup utility for GTFOBins, LOLBAS, WADComs, and HijackLibs.

Files

  • .gitignore: Gitignore file
  • gtfoblookup.1: Linux man page for GTFOBLookup
  • gtfoblookup.py: GTFOBLookup utility
  • LICENSE.md: License file
  • README.md: This file
  • requirements.txt: List of required Python packages

Dependencies

Whilst GTFOBLookup will run in Python2.7, some features require Python3.

GTFOBLookup requires the following non-standard Python libraries to be installed:

  • appdirs (pip install appdirs)
  • colorama (pip install colorama)
  • git (pip install gitpython)
  • yaml (pip install pyyaml)

These can all be installed with the following command: pip install -r requirements.txt

Installation/Setup

It is recommended to install GTFOBLookup using pipx:

pipx install git+https://github.com/nccgroup/GTFOBLookup.git

Once installed, run gtfoblookup.py update whilst connected to the internet to download local copies of the repositories.

Usage

On Linux, navigate to the GTFOBLookup directory and run man ./gtfoblookup.1 or see below:

gtfoblookup.py [-h] {update,purge,gtfobins,lolbas,wadcoms,hijacklibs} ...

OPTIONS
   Sub-commands
       gtfoblookup.py update
              update local copies of repositories

       gtfoblookup.py purge
              remove local copies of repositories

       gtfoblookup.py gtfobins
              search the local copy of GTFOBins

       gtfoblookup.py lolbas
              search the local copy of LOLBAS

       gtfoblookup.py wadcoms
              search the local copy of WADComs

       gtfoblookup.py hijacklibs
              search the local copy of HijackLibs

OPTIONS 'gtfoblookup.py update'
       usage: gtfoblookup.py update [-h] [-r repo]

       -r repo, --repo repo
              Only update the specified repository

OPTIONS 'gtfoblookup.py purge'
       usage: gtfoblookup.py purge [-h] [-r repo]

       -r repo, --repo repo
              Only delete the specified repository

OPTIONS 'gtfoblookup.py gtfobins'
       usage: gtfoblookup.py gtfobins [-h] {list,search} ...

   Sub-commands
       gtfoblookup.py gtfobins list
              list all types/categories/executables/prerequisites/services/attack types/OSs featured in the local copy of GTFOBins

       gtfoblookup.py gtfobins search
              searchthe GTFOBins repository

OPTIONS 'gtfoblookup.py gtfobins list'
       usage: gtfoblookup.py gtfobins list [-h] attribute

       attribute
              the attribute to list

OPTIONS 'gtfoblookup.py gtfobins search'
       usage: gtfoblookup.py gtfobins search [-h] [-c categories] [-f] executable

       executable
              the executable to search for

       -c categories, --category categories
              category or categories (comma separated) to search in

       -f, --file
              use a file containing a list of executables (one per line) instead of a single executable

OPTIONS 'gtfoblookup.py lolbas'
       usage: gtfoblookup.py lolbas [-h] {list,search} ...

   Sub-commands
       gtfoblookup.py lolbas list
              list all types/categories/executables/prerequisites/services/attack types/OSs featured in the local copy of LOLBAS

       gtfoblookup.py lolbas search
              searchthe LOLBAS repository

OPTIONS 'gtfoblookup.py lolbas list'
       usage: gtfoblookup.py lolbas list [-h] attribute

       attribute
              the attribute to list

OPTIONS 'gtfoblookup.py lolbas search'
       usage: gtfoblookup.py lolbas search [-h] [-c categories] [-t types] [-f]
                                             executable

       executable
              the executable to search for

       -c categories, --category categories
              category or categories (comma separated) to search in

       -t types, --type types
              type or types (comma separated)of executable to search for

       -f, --file
              use a file containing a list of executables (one per line) instead of a single executable

OPTIONS 'gtfoblookup.py wadcoms'
       usage: gtfoblookup.py wadcoms [-h] {list,search} ...

   Sub-commands
       gtfoblookup.py wadcoms list
              list all types/categories/executables/prerequisites/services/attack types/OSs featured in the local copy of WADComs

       gtfoblookup.py wadcoms search
              searchthe WADComs repository

OPTIONS 'gtfoblookup.py wadcoms list'
       usage: gtfoblookup.py wadcoms list [-h] attribute

       attribute
              the attribute to list

OPTIONS 'gtfoblookup.py wadcoms search'
       usage: gtfoblookup.py wadcoms search [-h] [-p prerequisites] [-s services]
                                              [-a attack_types] [-o OSs] [-f]
                                              executable

       executable
              the executable to search for

       -p prerequisites, --prereq prerequisites
              search for executables with a specific prerequisite or prerequisites (comma separated)

       -s services, --service services
              search for executables that interract with aspecific service or services(comma separated)

       -a attack_types, --attacktype attack_types
              search for executables that can be used for aspecific type or types (comma separated) of attacks

       -o OSs, --os OSs
              search for executables that can be run on a specific operating system oroperating systems (comma separated)

       -f, --file
              use a file containing a list of executables (one per line) instead of a single executable

OPTIONS 'gtfoblookup.py hijacklibs'
       usage: gtfoblookup.py hijacklibs [-h] {list,search} ...

  Sub-commands 'gtfoblookup.py hijacklibs'
       gtfoblookup.py hijacklibs list
              list all types/categories/executables/prerequisites/services/attack types/OSs featured in the local copy of HijackLibs

       gtfoblookup.py hijacklibs search
              searchthe HijackLibs repository

OPTIONS 'gtfoblookup.py hijacklibs list'
       usage: gtfoblookup.py hijacklibs list [-h] attribute

       attribute
              the attribute to list

  Sub-commands 'gtfoblookup.py hijacklibs search'
       usage: gtfoblookup.py hijacklibs search [-h] [-a attack_types] [-v vendors] [-f] executable

       executable
              the executable to search for (use "all" to show results for all executables)

OPTIONS 'gtfoblookup.py hijacklibs search'
       -a attack_types, --attacktype attack_types
              search for executables that can be used for aspecific type or types (comma separated) of attacks

       -v vendors, --vendor vendors
              search for executables from a specific vendor or vendors (comma separated)

       -f, --file
              use a file containing a list of executables (one per line) instead of a single executable

gtfoblookup's People

Contributors

jamesconlan96 avatar lapolis avatar nccjc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gtfoblookup's Issues

Using a hardcoded path in shebang

gtfoblookup.py uses a hardcoded shebang #!/usr/bin/python3. This means that on systems that use pyenv or just have python in a different location (e.g. /usr/bin/python) then the script fails to run.

This could be fixed my using #!/usr/bin/env python which would use whichever version of python is default in that environment.

See: https://mail.python.org/pipermail/tutor/2007-June/054828.html

As far as I can see, GTFOBLookup works fine with python2.7 so you don't need to worry about /usr/bin/env python pointing to a python2.7 binary instead of a python3 binary.

WADComs

A new member appeared in the GTFOBins and LOLBAS familly: WADComs (Source).

WADComs is an interactive cheat sheet, containing a curated list of offensive security tools and their respective commands, to be used against Windows/AD environments.

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.