module Metasploit::Credential::Importer::Base
Defines common attributes and helpers for all importers.
Constants
- LONG_FORM_ALLOWED_PRIVATE_TYPE_NAMES
-
Whitelist of the {Metasploit::Credential::Private} subclass names allowed in long-form CSV imports.
- SHORT_FORM_ALLOWED_PRIVATE_TYPE_NAMES
-
Whitelist of the {Metasploit::Credential::Private} subclass names allowed in short-form CSV imports.
Attributes
@!attribute filename
The name of the file that is being imported @return [String]
@!attribute input
An {IO} that holds the import data. {File} in normal usage, {StringIO} in testing @return [IO]
@!attribute origin
An {Metasploit::Credential::Origin} that represents the discrete importation of this set of credential objects @return [Metasploit::Credential::Origin::Import]
@!attribute workspace
The {Mdm::Workspace} that the credentials will be imported into @return[Mdm::Workspace]
Public Class Methods
Source
# File lib/metasploit/credential/importer/base.rb, line 65 def initialize(attributes={}) attributes.each do |attribute, value| public_send("#{attribute}=", value) end end
@param attributes [Hash{Symbol => String,nil}]