mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
created a disclaimer that you have to accept to run the program. this will be shown once during the first run of the program.
This commit is contained in:
parent
759a8d47c1
commit
0b07d367e4
2 changed files with 23 additions and 1 deletions
|
|
@ -8,6 +8,26 @@ import whichcraft
|
||||||
import lib.settings
|
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()):
|
def check_os(current=platform.platform()):
|
||||||
"""
|
"""
|
||||||
check the users operating system..
|
check the users operating system..
|
||||||
|
|
@ -114,6 +134,8 @@ def main(rewrite="{}/bin/executed.txt", verbose=False):
|
||||||
"yet...".format(platform.platform()), level=50
|
"yet...".format(platform.platform()), level=50
|
||||||
))
|
))
|
||||||
if check_if_run():
|
if check_if_run():
|
||||||
|
if not disclaimer():
|
||||||
|
exit(1)
|
||||||
lib.settings.logger.info(lib.settings.set_color(
|
lib.settings.logger.info(lib.settings.set_color(
|
||||||
"seems this is your first time running the appication, "
|
"seems this is your first time running the appication, "
|
||||||
"doing setup please wait..."
|
"doing setup please wait..."
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ except NameError:
|
||||||
# clone link
|
# clone link
|
||||||
CLONE = "https://github.com/ekultek/zeus-scanner.git"
|
CLONE = "https://github.com/ekultek/zeus-scanner.git"
|
||||||
# current version <major.minor.commit.patch ID>
|
# current version <major.minor.commit.patch ID>
|
||||||
VERSION = "1.0.16"
|
VERSION = "1.0.17"
|
||||||
# colors to output depending on the version
|
# colors to output depending on the version
|
||||||
VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30}
|
VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30}
|
||||||
# version string formatting
|
# version string formatting
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue