Increase LocalRelay block size, return exploit_uuid in sessions

git-svn-id: file:///home/svn/framework3/trunk@8939 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-03-27 15:44:33 +00:00
parent d0529c325e
commit 432f1676aa
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -94,7 +94,7 @@ module Stream
#
def fd
self
end
end
##
#

View File

@ -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