patch for using Bing as the search engine, Bing apparently was not implemented, sorry

This commit is contained in:
ekultek 2017-10-10 19:41:17 -05:00
parent f8614dc883
commit 92a5b44548
2 changed files with 17 additions and 3 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.36.1053"
VERSION = "1.0.36.6a42"
# colors to output depending on the version
VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30}
# version string formatting

18
zeus.py
View file

@ -288,24 +288,37 @@ if __name__ == "__main__":
configure the search engine if a one different from google is given
"""
non_default_msg = "specified to use non-default search engine..."
se_message = "using '{}' as the search engine..."
if opt.useDDG:
if verbose:
logger.debug(set_color(
"using DuckDuckGo as the search engine...", level=10
se_message.format("DuckDuckGo"), level=10
))
logger.info(set_color(
non_default_msg
))
se = AUTHORIZED_SEARCH_ENGINES["duckduckgo"]
elif opt.useAOL:
logger.warning(set_color(
"AOL will take a little longer due to pop-ups...", level=30
))
if verbose:
logger.debug(set_color(
"using AOL as the search engine...", level=10
se_message.format("AOL"), level=10
))
logger.info(set_color(
non_default_msg
))
se = AUTHORIZED_SEARCH_ENGINES["aol"]
elif opt.useBing:
if verbose:
logger.debug(set_color(
se_message.format("Bing"), level=10
))
logger.info(set_color(
non_default_msg
))
se = AUTHORIZED_SEARCH_ENGINES["bing"]
else:
if verbose:
logger.debug(set_color(
@ -456,6 +469,7 @@ if __name__ == "__main__":
proxy_to_use, agent_to_use = __config_headers()
search_engine = __config_search_engine(verbose=opt.runInVerbose)
print search_engine
try:
# use a personal dork as the query