Sha256: 8909400b388615d6c442090daf48fa2ba9498961f53d4ef2d43656e943172078

Contents?: true

Size: 841 Bytes

Versions: 59

Compression:

Stored size: 841 Bytes

Contents

# Defines attributes common to allow exporters.
module Metasploit::Credential::Exporter::Base
  extend ActiveSupport::Concern

  included do
    include ActiveModel::Validations

    # @!attribute data
    #   A {Hash} that holds the credentials data to be exported.
    #   @return [Hash]
    attr_accessor :data

    # @!attribute output
    #   An {IO} that holds the exported data. {File} in normal usage.
    #   @return [IO]
    attr_accessor :output

    # @!attribute workspace
    #   The {Mdm::Workspace} that the credentials will be exported from
    #   @return[Mdm::Workspace]
    attr_accessor :workspace
  end

  #
  # Instance Methods
  #

  # @param attributes [Hash{Symbol => String,nil}]
  def initialize(attributes={})
    attributes.each do |attribute, value|
      public_send("#{attribute}=", value)
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
metasploit-credential-6.0.11 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.10 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.9 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.8 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.7 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.6 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.5 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.4 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.3 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.2 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.1 lib/metasploit/credential/exporter/base.rb
metasploit-credential-6.0.0 lib/metasploit/credential/exporter/base.rb
metasploit-credential-5.0.9 lib/metasploit/credential/exporter/base.rb
metasploit-credential-5.0.8 lib/metasploit/credential/exporter/base.rb
metasploit-credential-5.0.7 lib/metasploit/credential/exporter/base.rb
metasploit-credential-5.0.6 lib/metasploit/credential/exporter/base.rb
metasploit-credential-5.0.5 lib/metasploit/credential/exporter/base.rb
metasploit-credential-5.0.4 lib/metasploit/credential/exporter/base.rb
metasploit-credential-5.0.3 lib/metasploit/credential/exporter/base.rb
metasploit-credential-5.0.2 lib/metasploit/credential/exporter/base.rb