Class: Mdm::Macro

Inherits:
ApplicationRecord
  • Object
show all
Extended by:
MetasploitDataModels::SerializedPrefs
Defined in:
app/models/mdm/macro.rb

Overview

Macro of #actions to run at once.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MetasploitDataModels::SerializedPrefs

serialized_prefs_attr_accessor

Instance Attribute Details

#created_atDateTime

When this macro was created.

Returns:

  • (DateTime)


# File 'app/models/mdm/macro.rb', line 9

#descriptionString

Long description of what the macro does.

Returns:

  • (String)


# File 'app/models/mdm/macro.rb', line 14

#nameString

The name of this macro.

Returns:

  • (String)


# File 'app/models/mdm/macro.rb', line 19

#ownerString

Name of user that owns this macro.

Returns:

  • (String)


# File 'app/models/mdm/macro.rb', line 24

#updated_atDateTime

When this macro was last updated.

Returns:

  • (DateTime)


# File 'app/models/mdm/macro.rb', line 29

Instance Method Details

#actionsArray<Hash{Symbol=>Object}>

Actions run by this macro.

Returns:

  • (Array<Hash{Symbol=>Object}>)

    Array of action hashes. Each action hash is have key :module with value of an Mdm::Module::Detail#fullname and and key :options with value of options used to the run the module.



42
# File 'app/models/mdm/macro.rb', line 42

serialize :actions, MetasploitDataModels::Base64Serializer.new

#max_timeInteger

The maximum number of seconds that this macro is allowed to run.

Returns:

  • (Integer)


52
# File 'app/models/mdm/macro.rb', line 52

serialized_prefs_attr_accessor :max_time

#prefsHash

Preference for this macro, shared across all actions.

Returns:

  • (Hash)


47
# File 'app/models/mdm/macro.rb', line 47

serialize :prefs, MetasploitDataModels::Base64Serializer.new