Class: Rex::Proto::DRDA::RDBNAM_PARAM
- Inherits:
-
Struct
- Object
- Struct
- Rex::Proto::DRDA::RDBNAM_PARAM
- Defined in:
- lib/rex/proto/drda/packet.rb
Overview
Relational Database name parameter.
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
- #encode(str) ⇒ Object
-
#initialize(args = {}) ⇒ RDBNAM_PARAM
constructor
A new instance of RDBNAM_PARAM.
- #to_s ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ RDBNAM_PARAM
Returns a new instance of RDBNAM_PARAM.
63 64 65 66 67 |
# File 'lib/rex/proto/drda/packet.rb', line 63 def initialize(args={}) self[:length] = 22 # Since the database name is padded out. self[:codepoint] = Constants::RDBNAM self[:payload] = encode(args[:payload].to_s) end |
Instance Attribute Details
#codepoint ⇒ Object
Returns the value of attribute codepoint
62 63 64 |
# File 'lib/rex/proto/drda/packet.rb', line 62 def codepoint @codepoint end |
#length ⇒ Object
Returns the value of attribute length
62 63 64 |
# File 'lib/rex/proto/drda/packet.rb', line 62 def length @length end |
#payload ⇒ Object
Returns the value of attribute payload
62 63 64 |
# File 'lib/rex/proto/drda/packet.rb', line 62 def payload @payload end |