Skip to content

Commit

Permalink
Fixes #922
Browse files Browse the repository at this point in the history
  • Loading branch information
stasinopoulos committed Jun 13, 2024
1 parent 4f26543 commit 8d82dad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/requests/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def multi_params_get_value(parameter):
# Replace the value of parameter with INJECT_HERE tag
if len(value) == 0:
if not menu.options.skip_empty:
all_params[param] = ''.join(all_params[param]) + settings.INJECT_TAG
all_params[param] = ''.join(all_params[param] + settings.INJECT_TAG)
else:
all_params[param] = ''.join(all_params[param]).replace(value, value + settings.INJECT_TAG)
all_params[param - 1] = ''.join(all_params[param - 1]).replace(settings.INJECT_TAG, "")
Expand Down Expand Up @@ -409,7 +409,7 @@ def json_format(parameter):
elif settings.IS_XML:
all_params[param] = ''.join(all_params[param]).replace("></", ">" + settings.INJECT_TAG + "</")
else:
all_params[param] = ''.join(all_params[param]) + settings.INJECT_TAG
all_params[param] = ''.join(all_params[param] + settings.INJECT_TAG)
else:
all_params[param] = ''.join(all_params[param]).replace(value, value + settings.INJECT_TAG)
if settings.IS_JSON and len(all_params[param].split("\":")) == 2:
Expand Down Expand Up @@ -621,7 +621,7 @@ def multi_params_get_value(parameter):
# Replace the value of parameter with INJECT tag
if len(value) == 0:
if not menu.options.skip_empty:
all_params[param] = ''.join(all_params[param]) + settings.INJECT_TAG
all_params[param] = ''.join(all_params[param] + settings.INJECT_TAG)
else:
all_params[param] = ''.join(all_params[param]).replace(value, value + settings.INJECT_TAG)
all_params[param - 1] = ''.join(all_params[param - 1]).replace(settings.INJECT_TAG, "")
Expand Down
2 changes: 1 addition & 1 deletion src/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def sys_argv_errors():
DESCRIPTION = "The command injection exploiter"
AUTHOR = "Anastasios Stasinopoulos"
VERSION_NUM = "4.0"
REVISION = "67"
REVISION = "68"
STABLE_RELEASE = False
VERSION = "v"
if STABLE_RELEASE:
Expand Down

0 comments on commit 8d82dad

Please sign in to comment.