metasploit_data_models 2.0.17 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.travis.yml +1 -1
- data/Gemfile +3 -8
- data/lib/mdm/host/operating_system_normalization.rb +2 -1
- data/lib/metasploit_data_models/engine.rb +7 -7
- data/lib/metasploit_data_models/version.rb +1 -1
- data/metasploit_data_models.gemspec +3 -1
- data/spec/app/models/mdm/client_spec.rb +3 -3
- data/spec/app/models/mdm/cred_spec.rb +34 -34
- data/spec/app/models/mdm/event_spec.rb +9 -9
- data/spec/app/models/mdm/exploit_attempt_spec.rb +5 -5
- data/spec/app/models/mdm/exploited_host_spec.rb +3 -3
- data/spec/app/models/mdm/host_detail_spec.rb +4 -4
- data/spec/app/models/mdm/host_spec.rb +47 -47
- data/spec/app/models/mdm/host_tag_spec.rb +5 -5
- data/spec/app/models/mdm/listener_spec.rb +12 -12
- data/spec/app/models/mdm/loot_spec.rb +8 -8
- data/spec/app/models/mdm/module/action_spec.rb +2 -2
- data/spec/app/models/mdm/module/arch_spec.rb +2 -2
- data/spec/app/models/mdm/module/author_spec.rb +3 -3
- data/spec/app/models/mdm/module/detail_spec.rb +71 -71
- data/spec/app/models/mdm/module/mixin_spec.rb +2 -2
- data/spec/app/models/mdm/module/platform_spec.rb +2 -2
- data/spec/app/models/mdm/module/ref_spec.rb +5 -5
- data/spec/app/models/mdm/module/target_spec.rb +2 -2
- data/spec/app/models/mdm/nexpose_console_spec.rb +15 -15
- data/spec/app/models/mdm/note_spec.rb +11 -11
- data/spec/app/models/mdm/ref_spec.rb +6 -6
- data/spec/app/models/mdm/route_spec.rb +3 -3
- data/spec/app/models/mdm/service_spec.rb +20 -20
- data/spec/app/models/mdm/session_event_spec.rb +3 -3
- data/spec/app/models/mdm/session_spec.rb +14 -14
- data/spec/app/models/mdm/tag_spec.rb +12 -12
- data/spec/app/models/mdm/task_cred_spec.rb +6 -6
- data/spec/app/models/mdm/task_host_spec.rb +6 -6
- data/spec/app/models/mdm/task_service_spec.rb +6 -6
- data/spec/app/models/mdm/task_session_spec.rb +6 -6
- data/spec/app/models/mdm/task_spec.rb +3 -3
- data/spec/app/models/mdm/user_spec.rb +3 -3
- data/spec/app/models/mdm/vuln_attempt_spec.rb +4 -4
- data/spec/app/models/mdm/vuln_detail_spec.rb +3 -3
- data/spec/app/models/mdm/vuln_ref_spec.rb +4 -4
- data/spec/app/models/mdm/vuln_spec.rb +20 -20
- data/spec/app/models/mdm/web_form_spec.rb +3 -3
- data/spec/app/models/mdm/web_page_spec.rb +4 -4
- data/spec/app/models/mdm/web_site_spec.rb +15 -15
- data/spec/app/models/mdm/web_vuln_spec.rb +4 -4
- data/spec/app/models/mdm/workspace_spec.rb +25 -25
- data/spec/app/models/metasploit_data_models/automatic_exploitation/match_result_spec.rb +4 -4
- data/spec/app/models/metasploit_data_models/automatic_exploitation/match_set_spec.rb +2 -2
- data/spec/app/models/metasploit_data_models/automatic_exploitation/match_spec.rb +3 -3
- data/spec/app/models/metasploit_data_models/automatic_exploitation/run_spec.rb +5 -5
- data/spec/app/models/metasploit_data_models/module_run_spec.rb +3 -3
- data/spec/app/models/metasploit_data_models/search/visitor/includes_spec.rb +4 -8
- data/spec/app/models/metasploit_data_models/search/visitor/joins_spec.rb +12 -12
- data/spec/app/models/metasploit_data_models/search/visitor/relation_spec.rb +16 -16
- data/spec/app/models/metasploit_data_models/search/visitor/where_spec.rb +3 -3
- data/spec/dummy/config/environments/test.rb +1 -1
- data/spec/dummy/db/structure.sql +2 -2
- data/spec/factories/mdm/addresses.rb +2 -2
- data/spec/factories/mdm/clients.rb +2 -2
- data/spec/factories/mdm/creds.rb +2 -2
- data/spec/factories/mdm/events.rb +3 -3
- data/spec/factories/mdm/exploit_attempts.rb +2 -2
- data/spec/factories/mdm/exploited_hosts.rb +1 -1
- data/spec/factories/mdm/fingerprints/nessus_fingerprints.rb +2 -2
- data/spec/factories/mdm/fingerprints/nexpose_fingerprints.rb +2 -2
- data/spec/factories/mdm/fingerprints/nmap_fingerprints.rb +2 -2
- data/spec/factories/mdm/fingerprints/retina_fingerprints.rb +2 -2
- data/spec/factories/mdm/fingerprints/session_fingerprints.rb +2 -2
- data/spec/factories/mdm/host_details.rb +2 -2
- data/spec/factories/mdm/host_tags.rb +2 -2
- data/spec/factories/mdm/hosts.rb +2 -2
- data/spec/factories/mdm/listeners.rb +2 -2
- data/spec/factories/mdm/loots.rb +2 -2
- data/spec/factories/mdm/module/actions.rb +2 -2
- data/spec/factories/mdm/module/archs.rb +2 -2
- data/spec/factories/mdm/module/authors.rb +2 -2
- data/spec/factories/mdm/module/details.rb +1 -1
- data/spec/factories/mdm/module/mixins.rb +2 -2
- data/spec/factories/mdm/module/platforms.rb +2 -2
- data/spec/factories/mdm/module/refs.rb +2 -2
- data/spec/factories/mdm/module/targets.rb +2 -2
- data/spec/factories/mdm/nexpose_consoles.rb +2 -2
- data/spec/factories/mdm/notes.rb +2 -2
- data/spec/factories/mdm/refs.rb +2 -2
- data/spec/factories/mdm/routes.rb +2 -2
- data/spec/factories/mdm/services.rb +3 -3
- data/spec/factories/mdm/session_events.rb +1 -1
- data/spec/factories/mdm/sessions.rb +2 -2
- data/spec/factories/mdm/tags.rb +2 -2
- data/spec/factories/mdm/task.rb +2 -2
- data/spec/factories/mdm/task_creds.rb +2 -2
- data/spec/factories/mdm/task_hosts.rb +2 -2
- data/spec/factories/mdm/task_services.rb +2 -2
- data/spec/factories/mdm/task_sessions.rb +2 -2
- data/spec/factories/mdm/users.rb +2 -2
- data/spec/factories/mdm/vuln_attempts.rb +2 -2
- data/spec/factories/mdm/vuln_details.rb +2 -2
- data/spec/factories/mdm/vuln_refs.rb +2 -2
- data/spec/factories/mdm/vulns.rb +2 -2
- data/spec/factories/mdm/web_forms.rb +1 -1
- data/spec/factories/mdm/web_pages.rb +2 -2
- data/spec/factories/mdm/web_sites.rb +2 -2
- data/spec/factories/mdm/web_vulns.rb +2 -2
- data/spec/factories/mdm/workspaces.rb +2 -2
- data/spec/factories/metasploit_data_models/automatic_exploitation/match_results.rb +1 -1
- data/spec/factories/metasploit_data_models/automatic_exploitation/match_sets.rb +2 -2
- data/spec/factories/metasploit_data_models/automatic_exploitation/matches.rb +1 -1
- data/spec/factories/metasploit_data_models/automatic_exploitation/runs.rb +1 -1
- data/spec/factories/module_runs.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- data.tar.gz.sig +0 -0
- metadata +7 -7
- metadata.gz.sig +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
# Read about factories at https://github.com/thoughtbot/
|
1
|
+
# Read about factories at https://github.com/thoughtbot/factory_bot
|
2
2
|
|
3
|
-
|
3
|
+
FactoryBot.define do
|
4
4
|
factory :mdm_task_cred, :class => 'Mdm::TaskCred' do
|
5
5
|
|
6
6
|
association :task, :factory => :mdm_task
|
@@ -1,6 +1,6 @@
|
|
1
|
-
# Read about factories at https://github.com/thoughtbot/
|
1
|
+
# Read about factories at https://github.com/thoughtbot/factory_bot
|
2
2
|
|
3
|
-
|
3
|
+
FactoryBot.define do
|
4
4
|
factory :mdm_task_host, :class => 'Mdm::TaskHost' do
|
5
5
|
|
6
6
|
association :task, :factory => :mdm_task
|
@@ -1,6 +1,6 @@
|
|
1
|
-
# Read about factories at https://github.com/thoughtbot/
|
1
|
+
# Read about factories at https://github.com/thoughtbot/factory_bot
|
2
2
|
|
3
|
-
|
3
|
+
FactoryBot.define do
|
4
4
|
factory :mdm_task_service, :class => 'Mdm::TaskService' do
|
5
5
|
association :task, :factory => :mdm_task
|
6
6
|
association :service, :factory => :mdm_service
|
@@ -1,6 +1,6 @@
|
|
1
|
-
# Read about factories at https://github.com/thoughtbot/
|
1
|
+
# Read about factories at https://github.com/thoughtbot/factory_bot
|
2
2
|
|
3
|
-
|
3
|
+
FactoryBot.define do
|
4
4
|
factory :mdm_task_session, :class => 'Mdm::TaskSession' do
|
5
5
|
association :task, :factory => :mdm_task
|
6
6
|
association :session, :factory => :mdm_session
|
data/spec/factories/mdm/users.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
FactoryBot.define do
|
2
2
|
factory :mdm_user, :class => Mdm::User do
|
3
3
|
admin true
|
4
4
|
company "Interplanetary Teleportation, LTD"
|
@@ -19,4 +19,4 @@ FactoryGirl.define do
|
|
19
19
|
sequence :mdm_user_username do |n|
|
20
20
|
"mdm_user_username#{n}"
|
21
21
|
end
|
22
|
-
end
|
22
|
+
end
|
data/spec/factories/mdm/vulns.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
FactoryBot.define do
|
2
2
|
factory :mdm_web_page, :aliases => [:web_page], :class => Mdm::WebPage do
|
3
3
|
auth { generate :mdm_web_page_auth }
|
4
4
|
body { generate :mdm_web_page_body }
|
@@ -61,4 +61,4 @@ FactoryGirl.define do
|
|
61
61
|
sequence :mdm_web_page_query do |n|
|
62
62
|
"param#{n}=value#{n}"
|
63
63
|
end
|
64
|
-
end
|
64
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
FactoryBot.define do
|
2
2
|
factory :automatic_exploitation_match_result, :class => 'MetasploitDataModels::AutomaticExploitation::MatchResult' do
|
3
3
|
association :match, factory: :automatic_exploitation_match
|
4
4
|
association :run, factory: :automatic_exploitation_run
|
@@ -1,6 +1,6 @@
|
|
1
|
-
# Read about factories at https://github.com/thoughtbot/
|
1
|
+
# Read about factories at https://github.com/thoughtbot/factory_bot
|
2
2
|
|
3
|
-
|
3
|
+
FactoryBot.define do
|
4
4
|
factory :automatic_exploitation_match_set, :class => MetasploitDataModels::AutomaticExploitation::MatchSet do
|
5
5
|
association :workspace, factory: :mdm_workspace
|
6
6
|
association :user, factory: :mdm_user
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
FactoryBot.define do
|
2
2
|
factory :automatic_exploitation_match, :class => MetasploitDataModels::AutomaticExploitation::Match do
|
3
3
|
association :module_detail, factory: :mdm_module_detail
|
4
4
|
association :match_set, factory: :automatic_exploitation_match_set
|
data/spec/spec_helper.rb
CHANGED
@@ -14,10 +14,10 @@ require 'coveralls'
|
|
14
14
|
# # don't generate local report as it is inaccessible on travis-ci, which is why coveralls is being used.
|
15
15
|
# SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
16
16
|
# else
|
17
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
17
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
18
18
|
# either generate the local report
|
19
19
|
SimpleCov::Formatter::HTMLFormatter
|
20
|
-
]
|
20
|
+
])
|
21
21
|
# end
|
22
22
|
|
23
23
|
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
data.tar.gz.sig
CHANGED
Binary file
|
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:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Huckins
|
@@ -91,7 +91,7 @@ cert_chain:
|
|
91
91
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
92
92
|
8mVuTXnyJOKRJA==
|
93
93
|
-----END CERTIFICATE-----
|
94
|
-
date:
|
94
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
95
95
|
dependencies:
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: metasploit-yard
|
@@ -307,16 +307,16 @@ dependencies:
|
|
307
307
|
name: pg
|
308
308
|
requirement: !ruby/object:Gem::Requirement
|
309
309
|
requirements:
|
310
|
-
- -
|
310
|
+
- - '='
|
311
311
|
- !ruby/object:Gem::Version
|
312
|
-
version:
|
312
|
+
version: 0.20.0
|
313
313
|
type: :runtime
|
314
314
|
prerelease: false
|
315
315
|
version_requirements: !ruby/object:Gem::Requirement
|
316
316
|
requirements:
|
317
|
-
- -
|
317
|
+
- - '='
|
318
318
|
- !ruby/object:Gem::Version
|
319
|
-
version:
|
319
|
+
version: 0.20.0
|
320
320
|
description: Implements minimal ActiveRecord models and database helper code used
|
321
321
|
in both the Metasploit Framework (MSF) and Metasploit commercial editions.
|
322
322
|
email:
|
@@ -788,7 +788,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
788
788
|
version: '0'
|
789
789
|
requirements: []
|
790
790
|
rubyforge_project:
|
791
|
-
rubygems_version: 2.6.
|
791
|
+
rubygems_version: 2.6.13
|
792
792
|
signing_key:
|
793
793
|
specification_version: 4
|
794
794
|
summary: Database code for MSF and Metasploit Pro
|
metadata.gz.sig
CHANGED
Binary file
|