added a catch for the max retries error, along with how to bypass it, good luck

This commit is contained in:
ekultek 2017-10-12 18:55:29 -05:00
parent a05c26e376
commit b380c6e7c4
2 changed files with 8 additions and 2 deletions

View file

@ -22,7 +22,7 @@ except NameError:
# clone link
CLONE = "https://github.com/ekultek/zeus-scanner.git"
# current version <major.minor.commit.patch ID>
VERSION = "1.0.42.a8d5"
VERSION = "1.0.42.49ab"
# colors to output depending on the version
VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30}
# version string formatting

View file

@ -2,7 +2,6 @@
import optparse
import os
import sys
import random
import subprocess
import time
@ -654,6 +653,13 @@ if __name__ == "__main__":
"fix the URL you want to scan and try again...", level=40
))
shutdown()
elif "Max retries exceeded with url" in str(e):
logger.fatal(set_color(
"you have hit the max retries, to continue using Zeus "
"it is recommended to use a proxy (--proxy/--proxy-file) "
"along with a new user-agent (--random-agent/--agent).", level=50
))
shutdown()
else:
logger.exception(set_color(
"ran into exception '{}' exception has been saved to log file...".format(e), level=50