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
-
#channel ⇒ Object
Returns the value of attribute channel.
Instance Method Summary collapse
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
270 271 272 |
# File 'lib/msf/base/sessions/modem.rb', line 270 def channel @channel end |
Instance Method Details
#syswrite(buf) ⇒ Object
266 267 268 |
# File 'lib/msf/base/sessions/modem.rb', line 266 def syswrite(buf) channel.dio_write(buf) end |