metasploit-model 0.27.1-java → 0.27.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c46dce723315fb4a86dcd57d2801f925142d73c8
|
4
|
+
data.tar.gz: 89af4916b2791506fa3173e1084c938fc3f0310c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f3769e90062bc8b63bbffe3ad8cd214eb626d800013db1ff1b95d711c90520a40e048d6c5f889b105da6c63712c5e3f53edf7e6d660502d1c5b6b2e8a1bd666
|
7
|
+
data.tar.gz: ef110769de258bf7fd1ab25dd66894a3de53b6585a2b02849a4fbcc708e2a84a5d02709bc1819f34c7575e1397673bc7982d296621174269c9dbe009f99566c5
|
@@ -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: java
|
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
|