Class: Rex::Proto::DRDA::SECMEC_PARAM
- Inherits:
-
Struct
- Object
- Struct
- Rex::Proto::DRDA::SECMEC_PARAM
- Defined in:
- lib/rex/proto/drda/packet.rb
Overview
See publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.drda/db2z_accsec.htm for all sorts of info about SECMEC.
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 = {}) ⇒ SECMEC_PARAM
constructor
A new instance of SECMEC_PARAM.
- #to_s ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ SECMEC_PARAM
Returns a new instance of SECMEC_PARAM.
51 52 53 54 55 |
# File 'lib/rex/proto/drda/packet.rb', line 51 def initialize(args={}) self[:length] = 6 self[:codepoint] = Constants::SECMEC self[:payload] = 3 # Plaintext username and password. end |
Instance Attribute Details
#codepoint ⇒ Object
Returns the value of attribute codepoint
50 51 52 |
# File 'lib/rex/proto/drda/packet.rb', line 50 def codepoint @codepoint end |
#length ⇒ Object
Returns the value of attribute length
50 51 52 |
# File 'lib/rex/proto/drda/packet.rb', line 50 def length @length end |
#payload ⇒ Object
Returns the value of attribute payload
50 51 52 |
# File 'lib/rex/proto/drda/packet.rb', line 50 def payload @payload end |
Instance Method Details
#to_s ⇒ Object
56 57 58 |
# File 'lib/rex/proto/drda/packet.rb', line 56 def to_s self.to_a.pack("nnn") end |