From 67a17382783a2fa21b90966f35df5d7d29152bcf Mon Sep 17 00:00:00 2001 From: ekultek Date: Sun, 1 Oct 2017 08:28:14 -0500 Subject: [PATCH] minor change to sqlmap scan, will not output '{}' if there are no arguments passed --- lib/attacks/sqlmap_scan/__init__.py | 7 ++++++- lib/settings.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/attacks/sqlmap_scan/__init__.py b/lib/attacks/sqlmap_scan/__init__.py index 12f3976..0b9e93d 100644 --- a/lib/attacks/sqlmap_scan/__init__.py +++ b/lib/attacks/sqlmap_scan/__init__.py @@ -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 " diff --git a/lib/settings.py b/lib/settings.py index 766605e..ceadef0 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.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