Class: Rex::Proto::DRDA::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.



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

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



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

def codepoint
  @codepoint
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



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

def length
  @length
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



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

def payload
  @payload
end

Instance Method Details

#to_sObject



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

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