metasploit_data_models 0.16.5-java → 0.16.6-java

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
- __NOTE: This isn't in RubyGems yet. Using a Gemfile entry pointing to this repo (i.e., using
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
 
@@ -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 => {
@@ -0,0 +1,7 @@
1
+ class RemovePnameValidation < ActiveRecord::Migration
2
+
3
+ def change
4
+ change_column :web_vulns, :pname, :text, :null => true
5
+ end
6
+
7
+ end
@@ -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.5'
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).with_options(:null => false) }
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 }
@@ -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 => 20130604145732) do
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", :null => false
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
@@ -2,7 +2,7 @@
2
2
  name: metasploit_data_models
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.16.5
5
+ version: 0.16.6
6
6
  platform: java
7
7
  authors:
8
8
  - Samuel Huckins
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-07-16 00:00:00.000000000 Z
15
+ date: 2013-08-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake
@@ -336,6 +336,7 @@ files:
336
336
  - db/migrate/20130525212420_drop_table_imported_creds.rb
337
337
  - db/migrate/20130531144949_making_host_tags_a_real_ar_model.rb
338
338
  - db/migrate/20130604145732_create_task_sessions.rb
339
+ - db/migrate/20130717150737_remove_pname_validation.rb
339
340
  - lib/mdm.rb
340
341
  - lib/mdm/host/operating_system_normalization.rb
341
342
  - lib/mdm/module.rb