Module: Metasploit::Credential::Exporter::Base

Extended by:
ActiveSupport::Concern
Included in:
Core, Pwdump
Defined in:
lib/metasploit/credential/exporter/base.rb

Overview

Defines attributes common to allow exporters.

Instance Method Summary collapse

Instance Method Details

#initialize(attributes = {}) ⇒ Object

Parameters:

  • attributes (Hash{Symbol => String,nil}) (defaults to: {})


33
34
35
36
37
# File 'lib/metasploit/credential/exporter/base.rb', line 33

def initialize(attributes={})
  attributes.each do |attribute, value|
    public_send("#{attribute}=", value)
  end
end