module Rex::Post::Meterpreter::Extensions::Stdapi::Net::SocketSubsystem::TcpClientChannel::DirectChannelWrite

Simple mixin for lsock in order to help avoid a ruby interpreter issue with ::Socket.pair Instead of writing to the lsock, reading from the rsock and then writing to the channel, we use this mixin to directly write to the channel.

Note: This does not work with OpenSSL as OpenSSL is implemented natively and requires a real socket to write to and we cant intercept the sockets syswrite at a native level.

Note: The deadlock only seems to effect the Ruby build for cygwin.

Attributes

channel[RW]

Public Instance Methods

syswrite( buf ) click to toggle source
# File lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_client_channel.rb, line 73
def syswrite( buf )
  channel._write( buf )
end