From d81bcfe9566223478af958ad2955dd12ea1eb123 Mon Sep 17 00:00:00 2001 From: stasinopoulos Date: Fri, 10 May 2024 09:05:23 +0300 Subject: [PATCH] Minor refactoring --- src/core/injections/controller/controller.py | 25 +------------------- src/utils/settings.py | 2 +- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/src/core/injections/controller/controller.py b/src/core/injections/controller/controller.py index 207671f6df..bd5c4b3683 100644 --- a/src/core/injections/controller/controller.py +++ b/src/core/injections/controller/controller.py @@ -778,30 +778,7 @@ def do_check(url, http_request_method, filename): warn_msg = "Commands substitution using backtics is only supported by the (results-based) classic command injection technique. " print(settings.print_warning_msg(warn_msg) + Style.RESET_ALL) - # Check for "wizard" switch. - if menu.options.wizard: - if perform_checks(url, http_request_method, filename) == False: - scan_level = menu.options.level - while int(scan_level) < int(settings.HTTP_HEADER_INJECTION_LEVEL) and settings.LOAD_SESSION != True: - while True: - message = "Do you want to increase to '--level=" + str(scan_level + 1) - message += "' in order to perform more tests? [Y/n] > " - next_level = common.read_input(message, default="Y", check_batch=True) - if next_level in settings.CHOICE_YES: - menu.options.level = int(menu.options.level + scan_level) - if perform_checks(url, http_request_method, filename) == False and scan_level < settings.HTTP_HEADER_INJECTION_LEVEL : - scan_level = scan_level + 1 - else: - break - elif next_level in settings.CHOICE_NO: - break - elif next_level in settings.CHOICE_QUIT: - raise SystemExit() - else: - common.invalid_option(next_level) - pass - else: - perform_checks(url, http_request_method, filename) + perform_checks(url, http_request_method, filename) # All injection techniques seems to be failed! if not settings.INJECTION_CHECKER: diff --git a/src/utils/settings.py b/src/utils/settings.py index a2ef434357..726718f4e3 100755 --- a/src/utils/settings.py +++ b/src/utils/settings.py @@ -247,7 +247,7 @@ def sys_argv_errors(): DESCRIPTION = "The command injection exploiter" AUTHOR = "Anastasios Stasinopoulos" VERSION_NUM = "4.0" -REVISION = "44" +REVISION = "45" STABLE_RELEASE = False VERSION = "v" if STABLE_RELEASE: