Class: Msf::Payload::MalleableC2::ParsedDirective
- Inherits:
-
Object
- Object
- Msf::Payload::MalleableC2::ParsedDirective
- Defined in:
- lib/msf/core/payload/malleable_c2.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, args) ⇒ ParsedDirective
constructor
A new instance of ParsedDirective.
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
#args ⇒ Object
Returns the value of attribute args.
435 436 437 |
# File 'lib/msf/core/payload/malleable_c2.rb', line 435 def args @args end |
#type ⇒ Object
Returns the value of attribute type.
435 436 437 |
# File 'lib/msf/core/payload/malleable_c2.rb', line 435 def type @type end |