diff --git a/lib/msf/base/sessions/command_shell.rb b/lib/msf/base/sessions/command_shell.rb index 9f4171f556..bd758bd086 100644 --- a/lib/msf/base/sessions/command_shell.rb +++ b/lib/msf/base/sessions/command_shell.rb @@ -487,7 +487,7 @@ class CommandShell end # User input is not a built-in command, write to socket directly - shell_write(cmd + "\n") + shell_write(cmd.chomp + "\n") end #