From 0b07d367e49e633ebbdc23f8e2c36cabe62c802f Mon Sep 17 00:00:00 2001 From: ekultek Date: Mon, 25 Sep 2017 12:06:07 -0500 Subject: [PATCH] created a disclaimer that you have to accept to run the program. this will be shown once during the first run of the program. --- bin/unzip_gecko.py | 22 ++++++++++++++++++++++ lib/settings.py | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/bin/unzip_gecko.py b/bin/unzip_gecko.py index 1c74449..ce1fb06 100644 --- a/bin/unzip_gecko.py +++ b/bin/unzip_gecko.py @@ -8,6 +8,26 @@ import whichcraft import lib.settings +def disclaimer(): + question = raw_input( + "\033[91mAttacking targets without consent is not only illegal, but it " + "is unethical and frowned upon in most countries. By installing this " + "program you are agreeing that you are responsible for your own actions, " + "you are over the age of 18 or legally considered an adult in your " + "place of origin, and that you will obey all laws, regulations, and " + "rules set forth by your place of origin. You will only see this disclaimer " + "once. If you agree to the conditions type 'yes'...\033[0m" + ) + if question.upper() == "YES": + return True + else: + lib.settings.logger.fatal(lib.settings.set_color( + "you have not agreed with the terms of service, so " + "Zeus will shut down now...", level=50 + )) + return False + + def check_os(current=platform.platform()): """ check the users operating system.. @@ -114,6 +134,8 @@ def main(rewrite="{}/bin/executed.txt", verbose=False): "yet...".format(platform.platform()), level=50 )) if check_if_run(): + if not disclaimer(): + exit(1) lib.settings.logger.info(lib.settings.set_color( "seems this is your first time running the appication, " "doing setup please wait..." diff --git a/lib/settings.py b/lib/settings.py index 9da534e..18be676 100644 --- a/lib/settings.py +++ b/lib/settings.py @@ -22,7 +22,7 @@ except NameError: # clone link CLONE = "https://github.com/ekultek/zeus-scanner.git" # current version -VERSION = "1.0.16" +VERSION = "1.0.17" # colors to output depending on the version VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30} # version string formatting