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.
2 parents dca2607 + abd4ab5 commit 2942cb1Copy full SHA for 2942cb1
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