Normalize newlines in CommandShell#run_single

Lines from normal interaction will include a trailing newline, while
lines from resource scripting will not.
GSoC/Meterpreter_Web_Console
William Vu 2019-01-24 12:51:45 -06:00
parent f0aa002009
commit c6f1c10737
1 changed files with 1 additions and 1 deletions

View File

@ -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
#