Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stasinopoulos committed Mar 16, 2016
1 parent 5a63749 commit e553123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/shells/reverse_tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ def other_reverse_shells():
elif other_shell.lower() == "reverse_tcp":
print Fore.YELLOW + settings.WARNING_SIGN + "You are already into the 'reverse_tcp' mode." + Style.RESET_ALL
continue
elif reverse_tcp_option.lower() == "quit":
sys.exit(0)
elif other_shell.lower() in settings.SHELL_OPTIONS:
return other_shell
elif other_shell[0:3].lower() == "set":
if other_shell[4:9].lower() == "lhost":
check_lhost(other_shell[10:])
if other_shell[4:9].lower() == "lport":
check_lport(other_shell[10:])
elif other_shell.lower() == "quit":
sys.exit(0)
else:
print Back.RED + settings.ERROR_SIGN + "The '" + other_shell + "' option, is not valid." + Style.RESET_ALL
continue
Expand Down

0 comments on commit e553123

Please sign in to comment.