bug/bundler_fix
benpturner 2015-05-07 19:10:33 +01:00
parent c234714013
commit 01c2bc0287
1 changed files with 4 additions and 4 deletions

View File

@ -58,10 +58,10 @@ class Msf::Sessions::PowerShell < Msf::Sessions::CommandShell
buff << res buff << res
if buff.match(/#{endm}/) if buff.match(/#{endm}/)
# if you see the end marker, read the buffer from the start marker to the end and then display back to screen # if you see the end marker, read the buffer from the start marker to the end and then display back to screen
newbuff = buff.split(/#{strm}/)[-1] buff = buff.split(/#{strm}/)[-1]
newbuff.gsub!(/PS .*>/, '') buff.gsub!(/PS .*>/, '')
newbuff.gsub!(/#{endm}/, '') buff.gsub!(/#{endm}/, '')
return newbuff return buff
end end
end end
buff buff