Class: Msf::Payload::MalleableC2::ParsedSet
- Inherits:
-
Object
- Object
- Msf::Payload::MalleableC2::ParsedSet
- Defined in:
- lib/msf/core/payload/malleable_c2.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ ParsedSet
constructor
A new instance of ParsedSet.
Constructor Details
#initialize(key, value) ⇒ ParsedSet
Returns a new instance of ParsedSet.
382 383 384 385 |
# File 'lib/msf/core/payload/malleable_c2.rb', line 382 def initialize(key, value) @key = key.downcase @value = MC2.from_c2_string_value(value) end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
381 382 383 |
# File 'lib/msf/core/payload/malleable_c2.rb', line 381 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
381 382 383 |
# File 'lib/msf/core/payload/malleable_c2.rb', line 381 def value @value end |