Skip to content

Commit

Permalink
Bug fix regarding help (?) command. Ref: #905
Browse files Browse the repository at this point in the history
  • Loading branch information
stasinopoulos committed Apr 29, 2024
1 parent f48c39c commit 3d33206
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/core/injections/controller/shell_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def check_option(separator, TAG, cmd, prefix, suffix, whitespace, http_request_m
return go_back, go_back_again

# The "quit" option
elif any(("quit", "exit")):
elif os_shell_option == "quit" or os_shell_option == "exit":
logs.print_logs_notification(filename, url)
raise SystemExit()

Expand Down
2 changes: 1 addition & 1 deletion src/core/modules/shellshock/shellshock.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def check_options(url, cmd, cve, check_header, filename, os_shell_option, http_r
return go_back, go_back_again

# The "quit" option
elif any(("quit", "exit")):
elif os_shell_option == "quit" or os_shell_option == "exit":
raise SystemExit()

"""
Expand Down
4 changes: 2 additions & 2 deletions src/core/shells/bind_tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def shell_options(option):
print(settings.print_warning_msg(warn_msg))
elif option.lower() == "?":
menu.reverse_tcp_options()
elif any(("quit", "exit")):
elif option.lower() == "quit" or option.lower() == "exit":
raise SystemExit()
elif option[0:4].lower() == "set ":
if option[4:10].lower() == "rhost ":
Expand Down Expand Up @@ -502,7 +502,7 @@ def configure_bind_tcp(separator):
elif option.lower() == "?":
menu.bind_tcp_options()
continue
elif any(("quit", "exit")):
elif option.lower() == "quit" or option.lower() == "exit":
raise SystemExit()
elif option.lower() == "os_shell" or option.lower() == "back":
settings.BIND_TCP = False
Expand Down
4 changes: 2 additions & 2 deletions src/core/shells/reverse_tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def shell_options(option):
print(settings.print_warning_msg(warn_msg))
elif option.lower() == "?":
menu.reverse_tcp_options()
elif any(("quit", "exit")):
elif option.lower() == "quit" or option.lower() == "exit":
raise SystemExit()
elif option[0:4].lower() == "set ":
if option[4:10].lower() == "lhost ":
Expand Down Expand Up @@ -708,7 +708,7 @@ def configure_reverse_tcp(separator):
if option.lower() == "?":
menu.reverse_tcp_options()
continue
if any(("quit", "exit")):
if option.lower() == "quit" or option.lower() == "exit":
raise SystemExit()
elif option.lower() == "os_shell" or option.lower() == "back":
settings.REVERSE_TCP = 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 @@ -247,7 +247,7 @@ def sys_argv_errors():
DESCRIPTION = "The command injection exploiter"
AUTHOR = "Anastasios Stasinopoulos"
VERSION_NUM = "4.0"
REVISION = "39"
REVISION = "40"
STABLE_RELEASE = False
VERSION = "v"
if STABLE_RELEASE:
Expand Down

0 comments on commit 3d33206

Please sign in to comment.