summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2023-02-23 05:41:54 -0500
committerdusoleil <howcansocksbereal@gmail.com>2023-02-23 22:52:58 -0500
commitf8cabdb49cbbc993790efd0d9844cde3d4617347 (patch)
treeb283d4c1c6ec26d11a7ece225c556269d588b136
parent9f4648dae644f2fb9deb4c68859d6cdfd0bc0530 (diff)
downloadsploit-f8cabdb49cbbc993790efd0d9844cde3d4617347.tar.gz
sploit-f8cabdb49cbbc993790efd0d9844cde3d4617347.zip
Add the version to the splash screen
Print the current version (sourced from git describe) when sploit starts up. Signed-off-by: dusoleil <howcansocksbereal@gmail.com> Reviewed-by: Malfurious <m@lfurio.us>
-rw-r--r--sploit/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sploit/main.py b/sploit/main.py
index 0f949f9..d918418 100644
--- a/sploit/main.py
+++ b/sploit/main.py
@@ -5,8 +5,9 @@ import traceback
from sploit.comm import *
from sploit.log import *
+from sploit import __version__
-def print_banner(color, line1='', line2='', line3=''):
+def print_banner(color, line1=__version__, line2='', line3=''):
ilog()
ilog(' ░▒█▀▀▀█░▒█▀▀█░▒█░░░░▒█▀▀▀█░▀█▀░▀▀█▀▀ ', end='', color=ALT)
ilog(line1, color=ALT)