From 8b581c2792c40506e1f25a8fe0f4fd2a43578181 Mon Sep 17 00:00:00 2001 From: James conlan Date: Tue, 19 May 2020 10:46:16 +0100 Subject: [PATCH] Shebang line changed to use the default python installation for the environment --- README.md | 12 +++++++----- gtfoblookup.py | 7 ++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2b6d877..22f32b0 100755 --- a/README.md +++ b/README.md @@ -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: diff --git a/gtfoblookup.py b/gtfoblookup.py index 01192d4..7c6871c 100755 --- a/gtfoblookup.py +++ b/gtfoblookup.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python """Released as open source by NCC Group Plc - http://www.nccgroup.com/ @@ -23,6 +23,7 @@ import textwrap import yaml + repodir = user_cache_dir("GTFOBLookup", "NCC Group") repos = {"GTFOBins": { @@ -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)