Skip to content

Commit

Permalink
Strip trailing space off of commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTruncer committed Mar 5, 2017
1 parent 582ef2d commit e589983
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Thanks again for your help! #avlol
There's a couple pieces of information that we will need if you create a Github issue. Some of the
primary information is:

* Please provide the version of Veil-Evasion you are using
* Please provide the version of Veil you are using
* Please provide the OS that you are using (version included)
* Please provide the error that you are receiving
* Please post the error on Pastebin, or another similar site, an post the link in the issue
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Veil-Evasion version
## Veil version


## OS Used - all info (architecture, linux flavor, etc)
Expand Down
4 changes: 2 additions & 2 deletions Tools/Evasion/Tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def tool_main_menu(self):
print()
show_evasion_menu = True

evasion_main_command = input('Veil-Evasion command: ')
evasion_main_command = input('Veil-Evasion command: ').strip()

if evasion_main_command.lower() == "back":
evasion_main_command = ''
Expand Down Expand Up @@ -402,7 +402,7 @@ def use_payload(self, selected_payload):
evasion_helpers.print_dict_message(self.payload_option_commands, show_title=False)

while True:
payload_options_cmd = input("\n[" + selected_payload.path + ">>] ")
payload_options_cmd = input("\n[" + selected_payload.path + ">>] ").strip()

if payload_options_cmd.lower() == "back" or payload_options_cmd.lower() == "main":
payload_options_cmd = ""
Expand Down
2 changes: 1 addition & 1 deletion Tools/Ordnance/Tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def tool_main_menu(self, invoked=False):
print()
show_ordnance_menu = True

ordnance_main_command = input('Veil-Ordnance command: ')
ordnance_main_command = input('Veil-Ordnance command: ').strip()

# See if we're listing payloads or encoders
if ordnance_main_command.lower().startswith('list'):
Expand Down
2 changes: 1 addition & 1 deletion lib/common/orchestra.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def main_menu(self):
print("\t" + helpers.color(command) + '\t\t\t' + self.mainmenu_commands[command])
print()

main_menu_command = input('Main menu choice: ')
main_menu_command = input('Main menu choice: ').strip()

if main_menu_command.startswith('use'):

Expand Down

0 comments on commit e589983

Please sign in to comment.