metasploit_data_models 0.16.8-java → 0.16.9-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/models/mdm/host.rb +6 -0
- data/lib/metasploit_data_models/version.rb +1 -1
- data/spec/app/models/mdm/host_spec.rb +4 -3
- data/spec/app/models/mdm/module/ref_spec.rb +1 -1
- data/spec/app/models/mdm/ref_spec.rb +1 -1
- data/spec/app/models/mdm/vuln_spec.rb +1 -1
- metadata +5 -29
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b731ba1f43bb6169b05a20a13fddfb8586e62d6b
|
4
|
+
data.tar.gz: d13f90eb96eafeabf6f126d179fa4ab26c1b7e6f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8389ece1faa0ad00529d58f59128fcffbb61bff3abef409dc83151bd23dcbe93db068ba406e1aff43bc8cbfe5eb86fda147968be87bf05f3d65710df0b9db674
|
7
|
+
data.tar.gz: ad0da45acc8baa77cb1a89497bef350ca78301211a4685cdc1be9de709d2676523d77c432ffb9336eff4f1db1375488bfaa8c935ff0fa54bc743cc465e6ce323
|
data/app/models/mdm/host.rb
CHANGED
@@ -53,6 +53,12 @@ class Mdm::Host < ActiveRecord::Base
|
|
53
53
|
# Associations
|
54
54
|
#
|
55
55
|
|
56
|
+
# @!attribute [rw] clients
|
57
|
+
# Users connected to this host
|
58
|
+
#
|
59
|
+
# @return [Array<Mdm::Client>]
|
60
|
+
has_many :clients, class_name: 'Mdm::Client', dependent: :destroy
|
61
|
+
|
56
62
|
# @!attribute [rw] task_hosts
|
57
63
|
# Details about what Tasks touched this host
|
58
64
|
#
|
@@ -4,5 +4,5 @@ module MetasploitDataModels
|
|
4
4
|
# metasploit-framework/data/sql/migrate to db/migrate in this project, not all models have specs that verify the
|
5
5
|
# migrations (with have_db_column and have_db_index) and certain models may not be shared between metasploit-framework
|
6
6
|
# and pro, so models may be removed in the future. Because of the unstable API the version should remain below 1.0.0
|
7
|
-
VERSION = '0.16.
|
7
|
+
VERSION = '0.16.9'
|
8
8
|
end
|
@@ -96,8 +96,9 @@ describe Mdm::Host do
|
|
96
96
|
|
97
97
|
context 'associations' do
|
98
98
|
it { should have_many(:creds).class_name('Mdm::Cred').through(:services) }
|
99
|
-
|
100
|
-
|
99
|
+
it { should have_many(:clients).class_name('Mdm::Client').dependent(:destroy) }
|
100
|
+
it { should have_many(:exploit_attempts).class_name('Mdm::ExploitAttempt').dependent(:destroy) }
|
101
|
+
it { should have_many(:exploited_hosts).class_name('Mdm::ExploitedHost').dependent(:destroy) }
|
101
102
|
it { should have_many(:host_details).class_name('Mdm::HostDetail').dependent(:destroy) }
|
102
103
|
it { should have_many(:hosts_tags).class_name('Mdm::HostTag') }
|
103
104
|
it { should have_many(:loots).class_name('Mdm::Loot').dependent(:destroy).order('loots.created_at DESC') }
|
@@ -149,7 +150,7 @@ describe Mdm::Host do
|
|
149
150
|
end
|
150
151
|
|
151
152
|
it 'should list unique Mdm::Module::Detail' do
|
152
|
-
host.module_details.
|
153
|
+
expect(host.module_details).to match_array([module_detail])
|
153
154
|
end
|
154
155
|
|
155
156
|
it 'should have duplicate Mdm::Module::Details if collected through chain' do
|
@@ -89,7 +89,7 @@ describe Mdm::Vuln do
|
|
89
89
|
end
|
90
90
|
|
91
91
|
it 'should list unique Mdm::Module::Detail' do
|
92
|
-
vuln.module_details.
|
92
|
+
expect(vuln.module_details).to match_array([module_detail])
|
93
93
|
end
|
94
94
|
|
95
95
|
it 'should have duplicate Mdm::Module::Details if collected through chain' do
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metasploit_data_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.16.8
|
4
|
+
version: 0.16.9
|
6
5
|
platform: java
|
7
6
|
authors:
|
8
7
|
- Samuel Huckins
|
@@ -12,7 +11,7 @@ authors:
|
|
12
11
|
autorequire:
|
13
12
|
bindir: bin
|
14
13
|
cert_chain: []
|
15
|
-
date: 2013-12-
|
14
|
+
date: 2013-12-23 00:00:00.000000000 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: rake
|
@@ -21,13 +20,11 @@ dependencies:
|
|
21
20
|
- - '>='
|
22
21
|
- !ruby/object:Gem::Version
|
23
22
|
version: '0'
|
24
|
-
none: false
|
25
23
|
requirement: !ruby/object:Gem::Requirement
|
26
24
|
requirements:
|
27
25
|
- - '>='
|
28
26
|
- !ruby/object:Gem::Version
|
29
27
|
version: '0'
|
30
|
-
none: false
|
31
28
|
prerelease: false
|
32
29
|
type: :development
|
33
30
|
- !ruby/object:Gem::Dependency
|
@@ -37,13 +34,11 @@ dependencies:
|
|
37
34
|
- - '>='
|
38
35
|
- !ruby/object:Gem::Version
|
39
36
|
version: '0'
|
40
|
-
none: false
|
41
37
|
requirement: !ruby/object:Gem::Requirement
|
42
38
|
requirements:
|
43
39
|
- - '>='
|
44
40
|
- !ruby/object:Gem::Version
|
45
41
|
version: '0'
|
46
|
-
none: false
|
47
42
|
prerelease: false
|
48
43
|
type: :development
|
49
44
|
- !ruby/object:Gem::Dependency
|
@@ -53,13 +48,11 @@ dependencies:
|
|
53
48
|
- - '>='
|
54
49
|
- !ruby/object:Gem::Version
|
55
50
|
version: '0'
|
56
|
-
none: false
|
57
51
|
requirement: !ruby/object:Gem::Requirement
|
58
52
|
requirements:
|
59
53
|
- - '>='
|
60
54
|
- !ruby/object:Gem::Version
|
61
55
|
version: '0'
|
62
|
-
none: false
|
63
56
|
prerelease: false
|
64
57
|
type: :development
|
65
58
|
- !ruby/object:Gem::Dependency
|
@@ -69,13 +62,11 @@ dependencies:
|
|
69
62
|
- - '>='
|
70
63
|
- !ruby/object:Gem::Version
|
71
64
|
version: 3.2.13
|
72
|
-
none: false
|
73
65
|
requirement: !ruby/object:Gem::Requirement
|
74
66
|
requirements:
|
75
67
|
- - '>='
|
76
68
|
- !ruby/object:Gem::Version
|
77
69
|
version: 3.2.13
|
78
|
-
none: false
|
79
70
|
prerelease: false
|
80
71
|
type: :runtime
|
81
72
|
- !ruby/object:Gem::Dependency
|
@@ -85,13 +76,11 @@ dependencies:
|
|
85
76
|
- - '>='
|
86
77
|
- !ruby/object:Gem::Version
|
87
78
|
version: '0'
|
88
|
-
none: false
|
89
79
|
requirement: !ruby/object:Gem::Requirement
|
90
80
|
requirements:
|
91
81
|
- - '>='
|
92
82
|
- !ruby/object:Gem::Version
|
93
83
|
version: '0'
|
94
|
-
none: false
|
95
84
|
prerelease: false
|
96
85
|
type: :runtime
|
97
86
|
- !ruby/object:Gem::Dependency
|
@@ -101,13 +90,11 @@ dependencies:
|
|
101
90
|
- - '>='
|
102
91
|
- !ruby/object:Gem::Version
|
103
92
|
version: '0'
|
104
|
-
none: false
|
105
93
|
requirement: !ruby/object:Gem::Requirement
|
106
94
|
requirements:
|
107
95
|
- - '>='
|
108
96
|
- !ruby/object:Gem::Version
|
109
97
|
version: '0'
|
110
|
-
none: false
|
111
98
|
prerelease: false
|
112
99
|
type: :development
|
113
100
|
- !ruby/object:Gem::Dependency
|
@@ -117,13 +104,11 @@ dependencies:
|
|
117
104
|
- - '>='
|
118
105
|
- !ruby/object:Gem::Version
|
119
106
|
version: '0'
|
120
|
-
none: false
|
121
107
|
requirement: !ruby/object:Gem::Requirement
|
122
108
|
requirements:
|
123
109
|
- - '>='
|
124
110
|
- !ruby/object:Gem::Version
|
125
111
|
version: '0'
|
126
|
-
none: false
|
127
112
|
prerelease: false
|
128
113
|
type: :runtime
|
129
114
|
- !ruby/object:Gem::Dependency
|
@@ -133,13 +118,11 @@ dependencies:
|
|
133
118
|
- - '>='
|
134
119
|
- !ruby/object:Gem::Version
|
135
120
|
version: '0'
|
136
|
-
none: false
|
137
121
|
requirement: !ruby/object:Gem::Requirement
|
138
122
|
requirements:
|
139
123
|
- - '>='
|
140
124
|
- !ruby/object:Gem::Version
|
141
125
|
version: '0'
|
142
|
-
none: false
|
143
126
|
prerelease: false
|
144
127
|
type: :runtime
|
145
128
|
description: Implements minimal ActiveRecord models and database helper code used in both the Metasploit Framework (MSF) and Metasploit commercial editions.
|
@@ -469,6 +452,7 @@ files:
|
|
469
452
|
- spec/support/shared/examples/mdm/module/detail/supports_stance_with_mtype.rb
|
470
453
|
homepage: ''
|
471
454
|
licenses: []
|
455
|
+
metadata: {}
|
472
456
|
post_install_message:
|
473
457
|
rdoc_options: []
|
474
458
|
require_paths:
|
@@ -477,25 +461,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
477
461
|
requirements:
|
478
462
|
- - '>='
|
479
463
|
- !ruby/object:Gem::Version
|
480
|
-
segments:
|
481
|
-
- 0
|
482
|
-
hash: 2
|
483
464
|
version: '0'
|
484
|
-
none: false
|
485
465
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
486
466
|
requirements:
|
487
467
|
- - '>='
|
488
468
|
- !ruby/object:Gem::Version
|
489
|
-
segments:
|
490
|
-
- 0
|
491
|
-
hash: 2
|
492
469
|
version: '0'
|
493
|
-
none: false
|
494
470
|
requirements: []
|
495
471
|
rubyforge_project:
|
496
|
-
rubygems_version: 1.
|
472
|
+
rubygems_version: 2.1.9
|
497
473
|
signing_key:
|
498
|
-
specification_version:
|
474
|
+
specification_version: 4
|
499
475
|
summary: Database code for MSF and Metasploit Pro
|
500
476
|
test_files:
|
501
477
|
- spec/app/models/mdm/client_spec.rb
|