mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
minor updates, removed the dict args option in sqlmaphook and fixed some output coloring issues
This commit is contained in:
parent
22f622b549
commit
11976b7018
2 changed files with 2 additions and 13 deletions
|
|
@ -162,7 +162,7 @@ def check_for_admin_page(url, exts, protocol="http://", **kwargs):
|
|||
"admin page".format(url), level=50
|
||||
))
|
||||
lib.core.settings.logger.warning(lib.core.settings.set_color(
|
||||
"only writing successful connections to log file..."
|
||||
"only writing successful connections to log file...", level=30
|
||||
))
|
||||
lib.core.settings.write_to_log_file(list(connections), lib.core.settings.ADMIN_PAGE_FILE_PATH, "{}-admin-page.log".format(
|
||||
lib.core.settings.replace_http(url)
|
||||
|
|
|
|||
|
|
@ -150,17 +150,6 @@ def sqlmap_scan_main(url, port=None, verbose=None, opts=None, auto_start=False):
|
|||
the main function that will be called and initialize everything
|
||||
"""
|
||||
|
||||
def ___dict_args():
|
||||
"""
|
||||
create argument tuples for the sqlmap arguments passed by the user
|
||||
"""
|
||||
# create the dict to pass to the sqlmap hook
|
||||
# basically it will just take the key and value
|
||||
# for the argument tuples and create a dictionary
|
||||
# out of them.
|
||||
# IE ('level', '5') -> {'level': '5'}
|
||||
return {key: value for key, value in opts}
|
||||
|
||||
is_started = lib.core.settings.search_for_process("sqlmapapi.py")
|
||||
found_path = find_sqlmap()
|
||||
|
||||
|
|
@ -212,7 +201,7 @@ def sqlmap_scan_main(url, port=None, verbose=None, opts=None, auto_start=False):
|
|||
if opts:
|
||||
if verbose:
|
||||
lib.core.settings.logger.debug(lib.core.settings.set_color(
|
||||
"using arguments: '{}'...".format(___dict_args()), level=10
|
||||
"using arguments: '{}'...".format(opts), level=10
|
||||
))
|
||||
lib.core.settings.logger.info(lib.core.settings.set_color(
|
||||
"adding arguments to sqlmap API..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue