Class: Mdm::Task

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/mdm/task.rb

Overview

A task run by Metasploit Pro.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created_byString

Name of user that created this task.

Returns:

  • (String)


# File 'app/models/mdm/task.rb', line 75

#descriptionString

Description of what the this task does.

Returns:

  • (String)


# File 'app/models/mdm/task.rb', line 80

#errorString

Error raised while task was running that caused this task to fail.

Returns:

  • (String)


# File 'app/models/mdm/task.rb', line 85

#infoString

Information about the task's current status. What the task is currently doing.

Returns:

  • (String)


# File 'app/models/mdm/task.rb', line 90

#moduleString

Module full name that was run for this task.

Returns:

  • (String)


# File 'app/models/mdm/task.rb', line 95

#module_uuidString

UUID of #module that was run by this task.

Returns:

  • (String)


# File 'app/models/mdm/task.rb', line 100

#pathString

Path to the log for this task.

Returns:

  • (String)


# File 'app/models/mdm/task.rb', line 105

#progressInteger

Percentage complete.

Returns:

  • (Integer)


# File 'app/models/mdm/task.rb', line 110

#updated_atDateTime

When this task was last updated.

Returns:

  • (DateTime)


# File 'app/models/mdm/task.rb', line 115

Instance Method Details

#optionsHash

Options passed to #module.

Returns:

  • (Hash)


133
# File 'app/models/mdm/task.rb', line 133

serialize :options, MetasploitDataModels::Base64Serializer.new

#resultHash

Result of task running.

Returns:

  • (Hash)


138
# File 'app/models/mdm/task.rb', line 138

serialize :result, MetasploitDataModels::Base64Serializer.new

#settingsHash

Settings used to configure this task outside of the module options.

Returns:

  • (Hash)


143
# File 'app/models/mdm/task.rb', line 143

serialize :settings, MetasploitDataModels::Base64Serializer.new