Module: Msf::Sessions::Modem::UdpChannel::DirectChannelWrite

Defined in:
lib/msf/base/sessions/modem.rb

Overview

Routes lsock writes (Rex::Socket::Udp#write/#sendto -> syswrite) straight to the channel, which forwards them to the modem connection, instead of into the local socketpair. Mirrors Meterpreter's DirectChannelWrite.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channel ⇒ Object

Returns the value of attribute channel.



272
273
274
# File 'lib/msf/base/sessions/modem.rb', line 272

def channel
  @channel
end

Instance Method Details

#syswrite(buf) ⇒ Object



268
269
270
# File 'lib/msf/base/sessions/modem.rb', line 268

def syswrite(buf)
  channel.dio_write(buf)
end