Sha256: db270370eae00fe6acb708f1bf77325723337104cd29865e0475b4b3a4e43695
Contents?: true
Size: 1.36 KB
Versions: 3
Compression:
Stored size: 1.36 KB
Contents
# Macro of {#actions} to run at once. class Mdm::Macro < ActiveRecord::Base extend MetasploitDataModels::SerializedPrefs # # Attributes # # @!attribute created_at # When this macro was created. # # @return [DateTime] # @!attribute description # Long description of what the macro does. # # @return [String] # @!attribute name # The name of this macro. # # @return [String] # @!attribute owner # {Mdm::User#username Name of user} that owns this macro. # # @return [String] # @!attribute updated_at # When this macro was last updated. # # @return [DateTime] # # Serialization # # Actions run by this macro. # # @return [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. serialize :actions, MetasploitDataModels::Base64Serializer.new # Preference for this macro, shared across all actions. # # @return [Hash] serialize :prefs, MetasploitDataModels::Base64Serializer.new # The maximum number of seconds that this macro is allowed to run. # # @return [Integer] serialized_prefs_attr_accessor :max_time # # Validations # validates :name, :presence => true, :format => /^[^'|"]+$/ Metasploit::Concern.run(self) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metasploit_data_models-0.24.4 | app/models/mdm/macro.rb |
metasploit_data_models-0.24.3 | app/models/mdm/macro.rb |
metasploit_data_models-0.24.2 | app/models/mdm/macro.rb |