Sha256: a257711551e586f5ed1f403f57e86d0f476a19fcca481b3b7536ad7e63dbe8aa

Contents?: true

Size: 1.03 KB

Versions: 63

Compression:

Stored size: 1.03 KB

Contents

module Metasploit
  module Credential
    module Exporter
      # Defines attributes common to allow exporters.
      module 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
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
metasploit-credential-0.13.0 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.12.0 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.10.2 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.10.1 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.10.1-java lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.10.1.pre.dep.pre.railties lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.10.0.pre.dep.pre.railties lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.9.1 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.9.0 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.9.0-java lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.9 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.8 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.7-java lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.7 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.6 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.6.pre.realm.pre.uniqueness lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.4-java lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.4 lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.3-java lib/metasploit/credential/exporter/base.rb
metasploit-credential-0.8.3 lib/metasploit/credential/exporter/base.rb