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
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
newbuff = buff.split(/#{strm}/)[-1]
newbuff.gsub!(/PS .*>/, '')
newbuff.gsub!(/#{endm}/, '')
return newbuff
buff = buff.split(/#{strm}/)[-1]
buff.gsub!(/PS .*>/, '')
buff.gsub!(/#{endm}/, '')
return buff
end
end
buff