From 285a183f277aee27f54b9e5e5291d35ce49754bf Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 10 Oct 2018 09:02:47 -0500 Subject: [PATCH] Land #10781, Fix error in rpc_shell_read RPC method. --- lib/msf/core/rpc/v10/rpc_session.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/core/rpc/v10/rpc_session.rb b/lib/msf/core/rpc/v10/rpc_session.rb index c73c94995a..1c79e6a3d9 100644 --- a/lib/msf/core/rpc/v10/rpc_session.rb +++ b/lib/msf/core/rpc/v10/rpc_session.rb @@ -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