Class: Rex::Proto::DRDA::PASSWORD_PARAM
- Inherits:
-
Struct
- Object
- Struct
- Rex::Proto::DRDA::PASSWORD_PARAM
- Defined in:
- lib/rex/proto/drda/packet.rb
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 = {}) ⇒ PASSWORD_PARAM
constructor
A new instance of PASSWORD_PARAM.
- #to_s ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ PASSWORD_PARAM
Returns a new instance of PASSWORD_PARAM.
195 196 197 198 199 |
# File 'lib/rex/proto/drda/packet.rb', line 195 def initialize(args={}) self[:codepoint] = Constants::PASSWORD self[:payload] = Rex::Text.to_ebcdic(args[:payload].to_s) self[:length] = self[:payload].size + 4 end |
Instance Attribute Details
#codepoint ⇒ Object
Returns the value of attribute codepoint
194 195 196 |
# File 'lib/rex/proto/drda/packet.rb', line 194 def codepoint @codepoint end |
#length ⇒ Object
Returns the value of attribute length
194 195 196 |
# File 'lib/rex/proto/drda/packet.rb', line 194 def length @length end |
#payload ⇒ Object
Returns the value of attribute payload
194 195 196 |
# File 'lib/rex/proto/drda/packet.rb', line 194 def payload @payload end |