edited the way that the patch ID is displayed, will now pull the ID from origin/master

This commit is contained in:
ekultek 2017-10-21 08:45:19 -05:00
parent b2ff3da457
commit d813e70ac1
2 changed files with 4 additions and 2 deletions

View file

@ -32,7 +32,7 @@ fc11145007c1c3f47cbda44ced93e73f ./lib/attacks/admin_panel_finder/__init__.py
c5ebb0c56c9ae3b9a72a14e3f05afa16 ./lib/attacks/intel_me/__init__.py
1faa2b5dfad6eb538bbfe42942d2a9da ./lib/core/errors.py
d41d8cd98f00b204e9800998ecf8427e ./lib/core/__init__.py
61d607a67d50b6a9c372ba2a8bd33bec ./lib/core/settings.py
28df692d6ecc5d0888e8a63466666c5b ./lib/core/settings.py
d41d8cd98f00b204e9800998ecf8427e ./var/google_search/__init__.py
d28b1b648539106a488067b951a9dd7c ./var/google_search/search.py
d41d8cd98f00b204e9800998ecf8427e ./var/__init__.py

View file

@ -25,10 +25,12 @@ try:
except NameError:
raw_input = input # Python 3
# get the master patch ID when a patch is pushed to the program
PATCH_ID = str(subprocess.check_output(["git", "rev-parse", "origin/master"]))[:6]
# clone link
CLONE = "https://github.com/ekultek/zeus-scanner.git"
# current version <major.minor.commit.patch ID>
VERSION = "1.0.56.d28b"
VERSION = "1.0.56.{}".format(PATCH_ID)
# colors to output depending on the version
VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30}
# version string formatting