Extend accepted clients with Rex Socket stuff
parent
946401ec99
commit
0132f9ce67
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue