metasploit_data_models 0.16.5 → 0.16.6
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -45,21 +45,9 @@ only if the user wants to use the database.
|
|
45
45
|
|
46
46
|
### Elsewhere
|
47
47
|
|
48
|
-
|
49
|
-
[Bundler](http://gembundler.com)) is the suggested option for now.__
|
50
|
-
|
51
|
-
Usage outside of Rapid7 is still alpha, as reflected in the pre-1.0.0 version, and we're not making many promises. That
|
52
|
-
being said, usage is easy:
|
53
|
-
|
54
|
-
connection_info = YAML.load_file("path/to/rails-style/db_config_file")
|
55
|
-
ActiveRecord::Base.establish_connection(connection_info['development'])
|
56
|
-
MetasploitDataModels.require_models
|
57
|
-
|
58
|
-
Basically you need to do the following things:
|
59
|
-
|
60
|
-
1. Establish an ActiveRecord connection. A Rails __config/database.yml__ is ideal for this.
|
61
|
-
2. `MetasploitDataModels.require_models`
|
48
|
+
In Metasploit Pro, MDM is loaded via the metasploit_data_models gem: https://rubygems.org/gems/metasploit_data_models
|
62
49
|
|
50
|
+
An MRI and JRuby implementation is generated for all substantial updates.
|
63
51
|
|
64
52
|
## Developer Info
|
65
53
|
|
data/app/models/mdm/web_vuln.rb
CHANGED
@@ -123,7 +123,6 @@ class Mdm::WebVuln < ActiveRecord::Base
|
|
123
123
|
validates :name, :presence => true
|
124
124
|
validates :params, :parameters => true
|
125
125
|
validates :path, :presence => true
|
126
|
-
validates :pname, :presence => true
|
127
126
|
validates :proof, :presence => true
|
128
127
|
validates :risk,
|
129
128
|
:inclusion => {
|
@@ -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.6'
|
8
8
|
end
|
@@ -68,7 +68,7 @@ describe Mdm::WebVuln do
|
|
68
68
|
it { should have_db_column(:params).of_type(:text).with_options(:null => false) }
|
69
69
|
it { should have_db_column(:path).of_type(:text).with_options(:null => false) }
|
70
70
|
it { should have_db_column(:payload).of_type(:text) }
|
71
|
-
it { should have_db_column(:pname).of_type(:text)
|
71
|
+
it { should have_db_column(:pname).of_type(:text) }
|
72
72
|
it { should have_db_column(:proof).of_type(:binary).with_options(:null => false) }
|
73
73
|
it { should have_db_column(:query).of_type(:text) }
|
74
74
|
it { should have_db_column(:request).of_type(:binary) }
|
@@ -278,7 +278,6 @@ describe Mdm::WebVuln do
|
|
278
278
|
end
|
279
279
|
end
|
280
280
|
|
281
|
-
it { should validate_presence_of :pname }
|
282
281
|
it { should validate_presence_of :proof }
|
283
282
|
it { should ensure_inclusion_of(:risk).in_range(risk_range) }
|
284
283
|
it { should validate_presence_of :web_site }
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20130717150737) do
|
15
15
|
|
16
16
|
create_table "api_keys", :force => true do |t|
|
17
17
|
t.text "token"
|
@@ -546,7 +546,7 @@ ActiveRecord::Schema.define(:version => 20130604145732) do
|
|
546
546
|
t.text "path", :null => false
|
547
547
|
t.string "method", :limit => 1024, :null => false
|
548
548
|
t.text "params", :null => false
|
549
|
-
t.text "pname"
|
549
|
+
t.text "pname"
|
550
550
|
t.integer "risk", :null => false
|
551
551
|
t.string "name", :limit => 1024, :null => false
|
552
552
|
t.text "query"
|
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.16.
|
4
|
+
version: 0.16.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-
|
15
|
+
date: 2013-08-14 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
@@ -307,6 +307,7 @@ files:
|
|
307
307
|
- db/migrate/20130525212420_drop_table_imported_creds.rb
|
308
308
|
- db/migrate/20130531144949_making_host_tags_a_real_ar_model.rb
|
309
309
|
- db/migrate/20130604145732_create_task_sessions.rb
|
310
|
+
- db/migrate/20130717150737_remove_pname_validation.rb
|
310
311
|
- lib/mdm.rb
|
311
312
|
- lib/mdm/host/operating_system_normalization.rb
|
312
313
|
- lib/mdm/module.rb
|
@@ -464,7 +465,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
464
465
|
version: '0'
|
465
466
|
segments:
|
466
467
|
- 0
|
467
|
-
hash: -
|
468
|
+
hash: -967868952609158407
|
468
469
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
469
470
|
none: false
|
470
471
|
requirements:
|
@@ -473,7 +474,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
473
474
|
version: '0'
|
474
475
|
segments:
|
475
476
|
- 0
|
476
|
-
hash: -
|
477
|
+
hash: -967868952609158407
|
477
478
|
requirements: []
|
478
479
|
rubyforge_project:
|
479
480
|
rubygems_version: 1.8.25
|