Class: Msf::Payload::MalleableC2::ParsedDirective

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(type, args) ⇒ ParsedDirective

Returns a new instance of ParsedDirective.



441
442
443
444
# File 'lib/msf/core/payload/malleable_c2.rb', line 441

def initialize(type, args)
  @type = type.downcase
  @args = args.map {|a| MC2.from_c2_string_value(a)}
end

Instance Attribute Details

#args ⇒ Object

Returns the value of attribute args.



440
441
442
# File 'lib/msf/core/payload/malleable_c2.rb', line 440

def args
  @args
end

#type ⇒ Object

Returns the value of attribute type.



440
441
442
# File 'lib/msf/core/payload/malleable_c2.rb', line 440

def type
  @type
end