diff --git a/lib/attacks/admin_panel_finder/__init__.py b/lib/attacks/admin_panel_finder/__init__.py index f8d5466..7b95d60 100644 --- a/lib/attacks/admin_panel_finder/__init__.py +++ b/lib/attacks/admin_panel_finder/__init__.py @@ -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) diff --git a/lib/attacks/sqlmap_scan/__init__.py b/lib/attacks/sqlmap_scan/__init__.py index c00c68f..4d8ced3 100644 --- a/lib/attacks/sqlmap_scan/__init__.py +++ b/lib/attacks/sqlmap_scan/__init__.py @@ -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..."