patch for an issue where you could not run the enumerate file flag (-f)

This commit is contained in:
ekultek 2017-10-12 18:05:19 -05:00
parent 307751e14f
commit a05c26e376
2 changed files with 4 additions and 5 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.aeb1"
VERSION = "1.0.42.a8d5"
# colors to output depending on the version
VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30}
# version string formatting

View file

@ -2,6 +2,7 @@
import optparse
import os
import sys
import random
import subprocess
import time
@ -456,10 +457,8 @@ if __name__ == "__main__":
"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"]
options = (opt.useRandomDork, opt.dorkToUse, opt.dorkFileToUse, opt.fileToEnumerate)
to_use = which_log_to_use["dork"] if any(arg for arg in options) is True else which_log_to_use["spider"]
try:
urls_to_use = get_latest_log_file(to_use)
except TypeError: