Class: Rex::Proto::DRDA::Packet::MGRLVLLS_PARAM
- Inherits:
-
Struct
- Object
- Struct
- Rex::Proto::DRDA::Packet::MGRLVLLS_PARAM
- Defined in:
- lib/rex/proto/drda/packet.rb
Overview
Instance Attribute Summary collapse
-
#codepoint ⇒ Object
Returns the value of attribute codepoint.
-
#length ⇒ Object
Returns the value of attribute length.
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ MGRLVLLS_PARAM
constructor
A new instance of MGRLVLLS_PARAM.
- #to_s ⇒ Object
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] = Rex::Proto::DRDA::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
#codepoint ⇒ Object
Returns the value of attribute codepoint
13 14 15 |
# File 'lib/rex/proto/drda/packet.rb', line 13 def codepoint @codepoint end |
#length ⇒ Object
Returns the value of attribute length
13 14 15 |
# File 'lib/rex/proto/drda/packet.rb', line 13 def length @length end |
#payload ⇒ Object
Returns the value of attribute payload
13 14 15 |
# File 'lib/rex/proto/drda/packet.rb', line 13 def payload @payload end |
Instance Method Details
#to_s ⇒ Object
21 22 23 |
# File 'lib/rex/proto/drda/packet.rb', line 21 def to_s self.to_a.pack("nna*") end |