metasploit_data_models 0.22.5-java → 0.22.6-java
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09b2003dfefe611fc4f3bddea1d5bb7e894f1385
|
4
|
+
data.tar.gz: 2feb0eb53258e42f05c6dfc49a7fa24333ffbebd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 215413797d991c504ad0869b2bb575de4b5ea5b0f062918122a5a4117ad9e0473915f50d6b5f7f9e34669dadf043a4da894262ed3d1b63ff9ebeb7a4384bbee0
|
7
|
+
data.tar.gz: f9bac64410cd4f6133cc550dff25bf95fbe070f7f9839559edd5f491eb6209be5b12e49dfc1116e01b3600085efcf191f083044e54806fa284e50777461226a8
|
data/app/models/mdm/service.rb
CHANGED
@@ -222,14 +222,6 @@ class Mdm::Service < ActiveRecord::Base
|
|
222
222
|
in: PROTOS
|
223
223
|
}
|
224
224
|
|
225
|
-
validates :host_id,
|
226
|
-
uniqueness: {
|
227
|
-
message: 'already has a service with this port and proto',
|
228
|
-
scope: [
|
229
|
-
:port,
|
230
|
-
:proto
|
231
|
-
]
|
232
|
-
}
|
233
225
|
|
234
226
|
#
|
235
227
|
# Class Methods
|
@@ -6,7 +6,7 @@ module MetasploitDataModels
|
|
6
6
|
# The minor version number, scoped to the {MAJOR} version number.
|
7
7
|
MINOR = 22
|
8
8
|
# The patch number, scoped to the {MINOR} version number.
|
9
|
-
PATCH =
|
9
|
+
PATCH = 6
|
10
10
|
|
11
11
|
# The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the `PRERELEASE` in the
|
12
12
|
# {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
|
@@ -154,12 +154,5 @@ describe Mdm::Service do
|
|
154
154
|
it { should validate_numericality_of(:port).only_integer }
|
155
155
|
it { should ensure_inclusion_of(:proto).in_array(described_class::PROTOS) }
|
156
156
|
|
157
|
-
context 'when a duplicate service already exists' do
|
158
|
-
let(:service1) { FactoryGirl.create(:mdm_service)}
|
159
|
-
let(:service2) { FactoryGirl.build(:mdm_service, :host => service1.host, :port => service1.port, :proto => service1.proto )}
|
160
|
-
it 'is not valid' do
|
161
|
-
expect(service2).to_not be_valid
|
162
|
-
end
|
163
|
-
end
|
164
157
|
end
|
165
158
|
end
|
data/spec/dummy/db/structure.sql
CHANGED
@@ -2686,13 +2686,6 @@ CREATE INDEX index_notes_on_ntype ON notes USING btree (ntype);
|
|
2686
2686
|
CREATE INDEX index_refs_on_name ON refs USING btree (name);
|
2687
2687
|
|
2688
2688
|
|
2689
|
-
--
|
2690
|
-
-- Name: index_services_on_host_id_and_port_and_proto; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
2691
|
-
--
|
2692
|
-
|
2693
|
-
CREATE UNIQUE INDEX index_services_on_host_id_and_port_and_proto ON services USING btree (host_id, port, proto);
|
2694
|
-
|
2695
|
-
|
2696
2689
|
--
|
2697
2690
|
-- Name: index_services_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
2698
2691
|
--
|
@@ -2996,6 +2989,8 @@ INSERT INTO schema_migrations (version) VALUES ('20140905031549');
|
|
2996
2989
|
|
2997
2990
|
INSERT INTO schema_migrations (version) VALUES ('20150112203945');
|
2998
2991
|
|
2992
|
+
INSERT INTO schema_migrations (version) VALUES ('20150205192745');
|
2993
|
+
|
2999
2994
|
INSERT INTO schema_migrations (version) VALUES ('21');
|
3000
2995
|
|
3001
2996
|
INSERT INTO schema_migrations (version) VALUES ('22');
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metasploit_data_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.22.
|
4
|
+
version: 0.22.6
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Samuel Huckins
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-02-
|
14
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
@@ -407,6 +407,7 @@ files:
|
|
407
407
|
- db/migrate/20130717150737_remove_pname_validation.rb
|
408
408
|
- db/migrate/20140905031549_add_detected_arch_to_host.rb
|
409
409
|
- db/migrate/20150112203945_remove_duplicate_services.rb
|
410
|
+
- db/migrate/20150205192745_drop_service_uniqueness_index.rb
|
410
411
|
- lib/mdm.rb
|
411
412
|
- lib/mdm/host/operating_system_normalization.rb
|
412
413
|
- lib/mdm/module.rb
|