metasploit-model 0.27.1 → 0.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/metasploit/model/realm/key.rb +13 -8
- data/lib/metasploit/model/version.rb +1 -1
- data/spec/lib/metasploit/model/realm/key_spec.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzdiMDBhZGU3ZWU4NDUwOGY1ZDkyNjk0M2RkZWI0MjUzOGQ3ZTI0Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjJmNjk5MmI2OTRkNGM1MmIxNThlNDU5OTYzODY1NzJlNzQ4ODExOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWFkODQ0NmJiYmQ0YmE4OTgxZDlhODhlOGM0ZDIzNGFjMTBiMGYwNDE5NzEx
|
10
|
+
ZDg1OGUxYmEwNWViYWIyOWU1MTA3OWVkMzE3NTlhOWFiNmZmYThlMjc4YzBi
|
11
|
+
Yjk5YjhkZTQzYjBlNzQzOGJlNDNiNDJiMzE0NzBlNDg2NGFkZTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmFiYjM2MGQyMGU5OTkyNDRkMTYxYzM3OGI2MDY4ZTI2MTM3ZGU1NmFmOWM1
|
14
|
+
NzU2YWM2MGRkNDM5ZWY2ZDc5ZmNmODVmNzRlZmE1YjIzNjQwNWQzMDBiOWZk
|
15
|
+
N2U1NzkyOTc3OTI2NjVjNjk1OGU1ZGUyMjU4YzJjMzZhMzgyYjA=
|
@@ -29,20 +29,25 @@ module Metasploit::Model::Realm::Key
|
|
29
29
|
# database and does not allow authenticating to just a server (which would be an `Mdm::Service`).
|
30
30
|
POSTGRESQL_DATABASE = 'PostgreSQL Database'
|
31
31
|
|
32
|
+
# This is a Wildcard Realm Type which indicates we don't know or care what type of Realm it is.
|
33
|
+
WILDCARD = '*'
|
34
|
+
|
32
35
|
# All values that are valid for {Metasploit::Credential::Realm#key}.
|
33
36
|
ALL = [
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
37
|
+
ACTIVE_DIRECTORY_DOMAIN,
|
38
|
+
DB2_DATABASE,
|
39
|
+
ORACLE_SYSTEM_IDENTIFIER,
|
40
|
+
POSTGRESQL_DATABASE,
|
41
|
+
WILDCARD
|
38
42
|
]
|
39
43
|
|
40
44
|
# A map of short names, suitable for use on the command line, to the
|
41
45
|
# full human-readable constants above.
|
42
46
|
SHORT_NAMES = {
|
43
|
-
'domain'
|
44
|
-
'db2db'
|
45
|
-
'sid'
|
46
|
-
'pgdb'
|
47
|
+
'domain' => ACTIVE_DIRECTORY_DOMAIN,
|
48
|
+
'db2db' => DB2_DATABASE,
|
49
|
+
'sid' => ORACLE_SYSTEM_IDENTIFIER,
|
50
|
+
'pgdb' => POSTGRESQL_DATABASE,
|
51
|
+
'wildcard' => WILDCARD
|
47
52
|
}
|
48
53
|
end
|
@@ -7,7 +7,7 @@ module Metasploit
|
|
7
7
|
# The minor version number, scoped to the {MAJOR} version number.
|
8
8
|
MINOR = 27
|
9
9
|
# The patch number, scoped to the {MINOR} version number.
|
10
|
-
PATCH =
|
10
|
+
PATCH = 2
|
11
11
|
|
12
12
|
# The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the {PRERELEASE} in the
|
13
13
|
# {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
|
@@ -19,6 +19,7 @@ describe Metasploit::Model::Realm::Key do
|
|
19
19
|
it { should include described_class::ACTIVE_DIRECTORY_DOMAIN }
|
20
20
|
it { should include described_class::ORACLE_SYSTEM_IDENTIFIER }
|
21
21
|
it { should include described_class::POSTGRESQL_DATABASE }
|
22
|
+
it { should include described_class::WILDCARD }
|
22
23
|
end
|
23
24
|
|
24
25
|
context 'ORACLE_SYSTEM_IDENTIFIER' do
|
@@ -39,6 +40,15 @@ describe Metasploit::Model::Realm::Key do
|
|
39
40
|
it { should be_in described_class::ALL }
|
40
41
|
end
|
41
42
|
|
43
|
+
context 'WILDCARD' do
|
44
|
+
subject(:wildcard) do
|
45
|
+
described_class::WILDCARD
|
46
|
+
end
|
47
|
+
|
48
|
+
it { should == '*' }
|
49
|
+
it { should be_in described_class::ALL }
|
50
|
+
end
|
51
|
+
|
42
52
|
context 'SHORT_NAMES' do
|
43
53
|
subject { described_class::SHORT_NAMES }
|
44
54
|
it 'should have String keys' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metasploit-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Imhoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -509,7 +509,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
509
509
|
version: '0'
|
510
510
|
requirements: []
|
511
511
|
rubyforge_project:
|
512
|
-
rubygems_version: 2.
|
512
|
+
rubygems_version: 2.1.11
|
513
513
|
signing_key:
|
514
514
|
specification_version: 4
|
515
515
|
summary: Metasploit Model Mixins and Validators
|