Class: Rex::Proto::DRDA::Packet::MGRLVLLS_PARAM

Inherits:
Struct
  • Object
show all
Defined in:
lib/rex/proto/drda/packet.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ MGRLVLLS_PARAM

Returns a new instance of MGRLVLLS_PARAM.



14
15
16
17
18
19
20
# File 'lib/rex/proto/drda/packet.rb', line 14

def initialize(args={})
  self[:codepoint] = Constants::MGRLVLLS
  self[:payload] = "\x14\x03\x00\x0a\x24\x07\x00\x0a" +
    "\x14\x74\x00\x05\x24\x0f\x00\x08" +
    "\x14\x40\x00\x09\x1c\x08\x04\xb8"
  self[:length] = self[:payload].to_s.size+4
end

Instance Attribute Details

#codepointObject

Returns the value of attribute codepoint

Returns:

  • (Object)

    the current value of codepoint



13
14
15
# File 'lib/rex/proto/drda/packet.rb', line 13

def codepoint
  @codepoint
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



13
14
15
# File 'lib/rex/proto/drda/packet.rb', line 13

def length
  @length
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



13
14
15
# File 'lib/rex/proto/drda/packet.rb', line 13

def payload
  @payload
end

Instance Method Details

#to_sObject



21
22
23
# File 'lib/rex/proto/drda/packet.rb', line 21

def to_s
  self.to_a.pack("nna*")
end