From 08f1f83b74a2b887d9931439721f4e14add853dd Mon Sep 17 00:00:00 2001 From: ekultek Date: Thu, 16 Nov 2017 09:16:58 -0600 Subject: [PATCH] patch for a permissions issue, will tell you to run as sudo now (issue #155) --- etc/checksum/md5sum.md5 | 4 ++-- lib/core/settings.py | 4 ++-- zeus.py | 13 ++++++++++--- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/etc/checksum/md5sum.md5 b/etc/checksum/md5sum.md5 index 2ffb334..7e7dd54 100644 --- a/etc/checksum/md5sum.md5 +++ b/etc/checksum/md5sum.md5 @@ -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 diff --git a/lib/core/settings.py b/lib/core/settings.py index c6113ac..be20093 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -55,7 +55,7 @@ CLONE = "https://github.com/ekultek/zeus-scanner.git" ISSUE_LINK = "https://github.com/ekultek/zeus-scanner/issues" # current version -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 diff --git a/zeus.py b/zeus.py index 0d1e8ad..ae8903c 100755 --- a/zeus.py +++ b/zeus.py @@ -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