Increase LocalRelay block size, return exploit_uuid in sessions
git-svn-id: file:///home/svn/framework3/trunk@8939 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
d0529c325e
commit
432f1676aa
|
@ -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
|
||||
|
|
|
@ -94,7 +94,7 @@ module Stream
|
|||
#
|
||||
def fd
|
||||
self
|
||||
end
|
||||
end
|
||||
|
||||
##
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue