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.



436
437
438
439
# File 'lib/msf/core/payload/malleable_c2.rb', line 436

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

Instance Attribute Details

#argsObject

Returns the value of attribute args.



435
436
437
# File 'lib/msf/core/payload/malleable_c2.rb', line 435

def args
  @args
end

#typeObject

Returns the value of attribute type.



435
436
437
# File 'lib/msf/core/payload/malleable_c2.rb', line 435

def type
  @type
end