Module: Metasploit::Model::Realm::Key
- Defined in:
- lib/metasploit/model/realm/key.rb
Overview
Canonical Metasploit::Credential::Realm#key
s.
Metasploit::Credential::Realm#key
is restricted to values in ALL, so new valid values need to be added to this
module:
- Add a String constant where the constant name is in SCREAMING_SNAKE_CASE and the String in Title Case.
- Add the new constant to ALL.
- Add a new key/value to SHORT_NAMES for this constant.
Constant Summary collapse
- ACTIVE_DIRECTORY_DOMAIN =
An Active Directory domain that is used for authenication in Windows environments.
'Active Directory Domain'
- DB2_DATABASE =
A DB2 database name. Like PostgreSQL, DB2 requires a database to authenticate to.
'DB2 Database'
- ORACLE_SYSTEM_IDENTIFIER =
A System Identifier for an Oracle Database.
'Oracle System Identifier'
- POSTGRESQL_DATABASE =
A PostgreSQL database name. Unlike, MySQL, PostgreSQL requires the user to authenticate to a specific database and does not allow authenticating to just a server (which would be an
Mdm::Service
). 'PostgreSQL Database'
- RSYNC_MODULE =
An RSYNC module (share) name, which can optionally require authentication.
'RSYNC Module'
- WILDCARD =
This is a Wildcard Realm Type which indicates we don't know or care what type of Realm it is.
'*'
- ALL =
All values that are valid for Credential::Realm#key.
[ ACTIVE_DIRECTORY_DOMAIN, DB2_DATABASE, ORACLE_SYSTEM_IDENTIFIER, POSTGRESQL_DATABASE, RSYNC_MODULE, WILDCARD ]
- SHORT_NAMES =
A map of short names, suitable for use on the command line, to the full human-readable constants above.
{ 'domain' => ACTIVE_DIRECTORY_DOMAIN, 'db2db' => DB2_DATABASE, 'sid' => ORACLE_SYSTEM_IDENTIFIER, 'pgdb' => POSTGRESQL_DATABASE, 'rsync' => RSYNC_MODULE, 'wildcard' => WILDCARD }