cmd_exec: Trailing line feed in command terminates ssh session
Executing a command with a trailing new line (\n) using cmd_exec kills Linux ssh sessions.
The following will kill a SSH session (Reason: Died):
puts cmd_exec("id\n")
The same is not true for shell and Meterpreter sessions. The command is executed and the session survives.
Hi!
This issue has been left open with no activity for a while now.
We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.