minor change to sqlmap scan, will not output '{}' if there are no arguments passed

This commit is contained in:
ekultek 2017-10-01 08:28:14 -05:00
parent c9916d0468
commit 67a1738278
2 changed files with 7 additions and 2 deletions

View file

@ -146,7 +146,7 @@ def sqlmap_scan_main(url, port=None, verbose=None, auto_search=False, opts=None,
lib.settings.logger.info(lib.settings.set_color(
"starting sqlmap scan on url: '{}'...".format(url)
))
if opts is not None:
if opts:
if verbose:
lib.settings.logger.debug(lib.settings.set_color(
"using arguments: '{}'...".format(___dict_args()), level=10
@ -154,6 +154,11 @@ def sqlmap_scan_main(url, port=None, verbose=None, auto_search=False, opts=None,
lib.settings.logger.info(lib.settings.set_color(
"adding arguments to sqlmap API..."
))
else:
if verbose:
lib.settings.logger.debug(lib.settings.set_color(
"no arguments passed, skipping...", level=10
))
lib.settings.logger.warning(lib.settings.set_color(
"please keep in mind that this is the API, output will "
"not be saved to log file, it may take a little longer "

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.25.b683"
VERSION = "1.0.25.fe911"
# colors to output depending on the version
VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30}
# version string formatting