patch for a permissions issue, will tell you to run as sudo now (issue #155)

This commit is contained in:
ekultek 2017-11-16 09:16:58 -06:00
parent 8b3a776af4
commit 08f1f83b74
3 changed files with 14 additions and 7 deletions

View file

@ -1,4 +1,4 @@
65771b3be2fed1052017637d8afde881 ./zeus.py
01ae751f79ec95fe5792a56d62f6a9be ./zeus.py
4b32db388e8acda35570c734d27c950c ./etc/scripts/launch_sqlmap.sh
6ad5f22ec4a6f8324bfb1b01ab6d51ec ./etc/scripts/cleanup.sh
155c9482f690f1482f324a7ffd8b8098 ./etc/scripts/fix_pie.sh
@ -64,7 +64,7 @@ ceb1b278b0861c976dfecc91cb64e53d ./lib/attacks/xss_scan/__init__.py
21faf4679cdeaa731029a48f8963d6e7 ./lib/attacks/nmap_scan/nmap_opts.py
1faa2b5dfad6eb538bbfe42942d2a9da ./lib/core/errors.py
d41d8cd98f00b204e9800998ecf8427e ./lib/core/__init__.py
4b620b0aa18bc65fa95ec648bc70e1fa ./lib/core/settings.py
da9f08a209175067a56a557da804ac00 ./lib/core/settings.py
f8dca2fa45acb95f7081546bf6aec025 ./lib/header_check/__init__.py
d41d8cd98f00b204e9800998ecf8427e ./var/google_search/__init__.py
1c21d355668d4f503a1c4bc41b9f5124 ./var/google_search/search.py

View file

@ -55,7 +55,7 @@ CLONE = "https://github.com/ekultek/zeus-scanner.git"
ISSUE_LINK = "https://github.com/ekultek/zeus-scanner/issues"
# current version <major.minor.commit.patch ID>
VERSION = "1.2.19.{}".format(PATCH_ID)
VERSION = "1.2.20.{}".format(PATCH_ID)
# colors to output depending on the version
VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30}
@ -69,7 +69,7 @@ else:
VERSION_STRING = "\033[92mv{}\033[0m(\033[{}m\033[1mrevision\033[0m)".format(VERSION, VERSION_TYPE_COLORS["other"])
# zeus-scanners saying
SAYING = "Advanced Dork Searching..."
SAYING = "Advanced Reconnaissance..."
# sexy banner
BANNER = """\033[36m

13
zeus.py
View file

@ -342,9 +342,16 @@ if __name__ == "__main__":
"proxy protocols are {} (IE socks5://127.0.0.1:9050)...".format(", ".join(supported_proxy_types)), level=50
))
except Exception as e:
logger.exception(set_color(
"ran into exception '{}'...".format(e), level=50
))
if "Permission denied:" in str(e):
logger.fatal(set_color(
"your permissions are not allowing Zeus to run, "
"try running me with sudo...", level=50
))
shutdown()
else:
logger.exception(set_color(
"ran into exception '{}'...".format(e), level=50
))
request_issue_creation()
pass