Buff
parent
c234714013
commit
01c2bc0287
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue