Class: Msf::Payload::MalleableC2::ParsedSet

Inherits:
Object
  • Object
show all
Defined in:
lib/msf/core/payload/malleable_c2.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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