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.
387 388 389 390 |
# File 'lib/msf/core/payload/malleable_c2.rb', line 387 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.
386 387 388 |
# File 'lib/msf/core/payload/malleable_c2.rb', line 386 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
386 387 388 |
# File 'lib/msf/core/payload/malleable_c2.rb', line 386 def value @value end |