Skip to content

Commit

Permalink
Fixes #920
Browse files Browse the repository at this point in the history
  • Loading branch information
stasinopoulos committed Aug 7, 2024
1 parent 21baf93 commit edf7dce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions src/core/injections/controller/injector.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,18 @@ def custom_web_root(url, OUTPUT_TEXTFILE):
message = "Enter URL to use "
message += "for command execution output > "
message = common.read_input(message, default=output, check_batch=True)
output = settings.DEFINED_WEBROOT = message
info_msg = "Using '" + output
info_msg += "' for command execution output."
settings.print_data_to_stdout(settings.print_info_msg(info_msg))
if not settings.DEFINED_WEBROOT:
if not re.search(r'^(?:http)s?://', message, re.I):
common.invalid_option(message)
pass
else:
break
output = settings.DEFINED_WEBROOT = message
info_msg = "Using '" + output
info_msg += "' for command execution output."
settings.print_data_to_stdout(settings.print_info_msg(info_msg))
if not settings.DEFINED_WEBROOT:
pass
else:
break
elif procced_option in settings.CHOICE_QUIT:
raise SystemExit()
else:
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 = "90"
REVISION = "91"
STABLE_RELEASE = False
VERSION = "v"
if STABLE_RELEASE:
Expand Down

0 comments on commit edf7dce

Please sign in to comment.