We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ad2a8 commit abd4ab5Copy full SHA for abd4ab5
lib/msf/base/sessions/powershell.rb
@@ -58,8 +58,8 @@ def shell_command(cmd)
58
buff << res
59
if buff.match(/#{endm}/)
60
# if you see the end marker, read the buffer from the start marker to the end and then display back to screen
61
- buff = buff.split(/#{strm}/)[-1]
62
- buff.gsub!(/PS .*>/, '')
+ buff = buff.split(/#{strm}\r\n/)[-1]
+ buff.gsub!(/\nPS .*>/, '')
63
buff.gsub!(/#{endm}/, '')
64
return buff
65
end
0 commit comments