Extend accepted clients with Rex Socket stuff

bug/bundler_fix
James Lee 2015-10-09 08:53:02 -05:00
parent 946401ec99
commit 0132f9ce67
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@ module Net
module SocketSubsystem
class TcpServerChannel < Rex::Post::Meterpreter::Channel
include Rex::IO::StreamServer
#
# This is a class variable to store all pending client tcp connections which have not been passed
@ -157,7 +158,10 @@ protected
next
end
result = accept_nonblock
break if result != nil
if result != nil
result.extend(Rex::Socket::Tcp)
break
end
end
return result
end