Land #10781, Fix error in rpc_shell_read RPC method.

GSoC/Meterpreter_Web_Console
Brent Cook 2018-10-10 09:02:47 -05:00
commit ba0bfb1114
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ class RPC_Session < RPC_Base
def rpc_shell_read( sid, ptr=nil)
s = _valid_session(sid,"shell")
begin
res = s.shell_read(data)
{ "write_count" => res.to_s}
res = s.shell_read()
{ "seq" => 0, "data" => res.to_s}
rescue ::Exception => e
error(500, "Session Disconnected: #{e.class} #{e}")
end