metasploit-model 0.27.1 → 0.27.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDQ0YTNlM2NmODM5OGNmZDA0YzdkMjFhOGNmZGVhMGMxNjM5OWQ2MA==
4
+ MzdiMDBhZGU3ZWU4NDUwOGY1ZDkyNjk0M2RkZWI0MjUzOGQ3ZTI0Zg==
5
5
  data.tar.gz: !binary |-
6
- NDVlMWM0OWMyZmM0YmFmY2U2MTlkOGQ1MjEyYWE0YmVkZmE0NTJmZA==
6
+ YjJmNjk5MmI2OTRkNGM1MmIxNThlNDU5OTYzODY1NzJlNzQ4ODExOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2Y3NGQ3ZDk1YmY3MTBkYmE3NTkyZGZlYTM3NDI5YWM0OTM1NTQxNzA4ODUz
10
- M2E4MTJlNjlhZGE4NTQ1MWJjYjc5NGVjZTA3MGE4MjcxMzliNGY5NmMxZDQz
11
- YzM3NTY1MjkxYmQ2ZjNkOWRkNGNiOTJkZjFlZmU4ODlmMTQ4Yzk=
9
+ NWFkODQ0NmJiYmQ0YmE4OTgxZDlhODhlOGM0ZDIzNGFjMTBiMGYwNDE5NzEx
10
+ ZDg1OGUxYmEwNWViYWIyOWU1MTA3OWVkMzE3NTlhOWFiNmZmYThlMjc4YzBi
11
+ Yjk5YjhkZTQzYjBlNzQzOGJlNDNiNDJiMzE0NzBlNDg2NGFkZTI=
12
12
  data.tar.gz: !binary |-
13
- YTVjZDQ5NWM4YTgwZmY0ZDI5Y2EwNTk4N2Q2ZTY3MTlkYmYyOTM5ODUwMWE4
14
- NjQxNjUyMWJkNzBjMDkzNDRhN2Y4MDk0N2JkZWFkMTg1ZTIxNmNkZWM5Mjdi
15
- YmNlMjQ3MGYyMGE5YTA3OTg4OGJjMTlhMGI1YmExNTliOGU2OTA=
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
- ACTIVE_DIRECTORY_DOMAIN,
35
- DB2_DATABASE,
36
- ORACLE_SYSTEM_IDENTIFIER,
37
- POSTGRESQL_DATABASE
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' => ACTIVE_DIRECTORY_DOMAIN,
44
- 'db2db' => DB2_DATABASE,
45
- 'sid' => ORACLE_SYSTEM_IDENTIFIER,
46
- 'pgdb' => POSTGRESQL_DATABASE,
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 = 1
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.1
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-18 00:00:00.000000000 Z
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.2.2
512
+ rubygems_version: 2.1.11
513
513
  signing_key:
514
514
  specification_version: 4
515
515
  summary: Metasploit Model Mixins and Validators