diff --git a/lib/settings.py b/lib/settings.py index efab185..dbd3c8c 100644 --- a/lib/settings.py +++ b/lib/settings.py @@ -22,7 +22,7 @@ except NameError: # clone link CLONE = "https://github.com/ekultek/zeus-scanner.git" # current version -VERSION = "1.0.31.cc95" +VERSION = "1.0.31.5b3a" # colors to output depending on the version VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30} # version string formatting diff --git a/zeus.py b/zeus.py index 81c524e..92a5c2a 100755 --- a/zeus.py +++ b/zeus.py @@ -46,7 +46,8 @@ from lib.settings import ( SQLMAP_MAN_PAGE_URL, get_true_url, fix_log_file, - DEFAULT_USER_AGENT + DEFAULT_USER_AGENT, + SPIDER_LOG_PATH ) if __name__ == "__main__": @@ -422,8 +423,17 @@ if __name__ == "__main__": def __run_attacks_main(): + which_log_to_use = { + "dork": URL_LOG_PATH, + "spider": SPIDER_LOG_PATH + } + + options = (opt.useRandomDork, opt.dorkToUse, opt.dorkFileToUse) + + to_use = which_log_to_use["dork"] if any(options) is True else which_log_to_use["spider"] + try: - urls_to_use = get_latest_log_file(URL_LOG_PATH) + urls_to_use = get_latest_log_file(to_use) except TypeError: urls_to_use = None