Skip to content

Commit

Permalink
Shebang line changed to use the default python installation for the e…
Browse files Browse the repository at this point in the history
…nvironment
  • Loading branch information
NCCJC committed May 19, 2020
1 parent c8cca8a commit 8b581c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ Offline command line lookup utility for [GTFOBins](https://gtfobins.github.io/)
- **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 (`pip3 install appdirs`)
- colorama (`pip3 install colorama`)
- git (`pip3 install gitpython`)
- yaml (`pip3 install pyyaml`)
- 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: `pip3 install -r requirements.txt`
These can all be installed with the following command: `pip install -r requirements.txt`

## Installation/Setup
To install GTFOBLookup, git clone the repository to your machine and run `gtfoblookup.py update` whilst connected to the internet:
Expand Down
7 changes: 6 additions & 1 deletion gtfoblookup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python


"""Released as open source by NCC Group Plc - http://www.nccgroup.com/
Expand All @@ -23,6 +23,7 @@
import textwrap
import yaml


repodir = user_cache_dir("GTFOBLookup", "NCC Group")

repos = {"GTFOBins": {
Expand Down Expand Up @@ -503,6 +504,10 @@ def default(args):
printUsage(args)

if __name__ == "__main__":
if sys.version_info[0] < 3:
print(red + "Some functionality only works with Python3. Please " +
"switch to using Python3 to make the most of GTFOBLookup." +
reset)
args = genParser().parse_args()
colorama.init()
args.func(args)
Expand Down

0 comments on commit 8b581c2

Please sign in to comment.