Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
stasinopoulos committed Sep 17, 2024
1 parent 94842b2 commit 82957ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/core/injections/controller/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ def continue_tests(err):
# Ignoring (problematic) HTTP error codes.
if len(settings.IGNORE_CODE) != 0 and any(str(x) in str(err).lower() for x in settings.IGNORE_CODE):
return True

# Possible WAF/IPS
try:
if (str(err.code) == settings.FORBIDDEN_ERROR or \
Expand All @@ -914,8 +914,12 @@ def continue_tests(err):
settings.print_data_to_stdout(settings.print_warning_msg(warn_msg))
settings.WAF_ENABLED = True

message = ""
if str(err.code) == settings.NOT_FOUND_ERROR:
message = "It is not recommended to continue in this kind of cases. "

while True:
message = "Do you want to ignore the response HTTP error code '" + str(err.code)
message += "Do you want to ignore the response HTTP error code '" + str(err.code)
message += "' and continue the tests? [Y/n] > "
continue_tests = common.read_input(message, default="Y", check_batch=True)
if continue_tests in settings.CHOICE_YES:
Expand Down
2 changes: 2 additions & 0 deletions src/core/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,8 @@ def main(filename, url, http_request_method):
message = "Do you want to use URL #" + str(url_num) + " to perform tests? [Y/n] > "
next_url = common.read_input(message, default="Y", check_batch=True)
if next_url in settings.CHOICE_YES:
info_msg = "Testing URL '" + url + "'."
settings.print_data_to_stdout(settings.print_info_msg(info_msg))
break
elif next_url in settings.CHOICE_NO:
perform_check = False
Expand Down
2 changes: 1 addition & 1 deletion src/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def sys_argv_errors():
DESCRIPTION = "The command injection exploiter"
AUTHOR = "Anastasios Stasinopoulos"
VERSION_NUM = "4.0"
REVISION = "95"
REVISION = "96"
STABLE_RELEASE = False
VERSION = "v"
if STABLE_RELEASE:
Expand Down

0 comments on commit 82957ef

Please sign in to comment.