diff --git a/lib/msf/core/rpc/session.rb b/lib/msf/core/rpc/session.rb index 18de485d0e..4af5577976 100644 --- a/lib/msf/core/rpc/session.rb +++ b/lib/msf/core/rpc/session.rb @@ -21,7 +21,8 @@ class Session < Base 'workspace' => s.workspace.to_s, 'target_host' => s.target_host.to_s, 'username' => s.username.to_s, - 'uuid' => s.uuid.to_s + 'uuid' => s.uuid.to_s, + 'exploit_uuid' => s.exploit_uuid.to_s } end res diff --git a/lib/rex/io/stream.rb b/lib/rex/io/stream.rb index 1d128e54ea..73c74daa0b 100644 --- a/lib/rex/io/stream.rb +++ b/lib/rex/io/stream.rb @@ -94,7 +94,7 @@ module Stream # def fd self - end + end ## # diff --git a/lib/rex/services/local_relay.rb b/lib/rex/services/local_relay.rb index dda76a08d0..d094accab3 100644 --- a/lib/rex/services/local_relay.rb +++ b/lib/rex/services/local_relay.rb @@ -401,9 +401,8 @@ protected # and write it to the other else begin - # Read from the read fd 32k at a time (helps with big downloads) - data = rfd.sysread(32768) # Pass the data onto the other fd, most likely writing it. + data = rfd.sysread(65536) rfd.other_stream.on_other_data(data) # If we catch an error, close the connection rescue ::Exception