metasploit_data_models 0.16.1 → 0.16.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDhiOTE4MWQ2Y2YzMDQ4YzYyODE4MWQyNTg0ODNlY2Q1ZTg5NTIyOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MTc2ZTEyYjJiYjc4OTFiZWMzZWZmMTZjYjFjMTBhN2QxZjcyNDM1Mg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDNiODM5MzVlNzljMTM4NTFmYjk1ZmIyMmZjMWU2NTBmMjI4ZDc1NDU1M2I0
|
10
|
+
MDBmY2I1NDM3ZmQ0NzIxNTIzZmNkMzMxN2MxZmI1MzM5ZDNiZTQwMjIyYmZm
|
11
|
+
YWNiZTA5MTdmNmE4NGU0MDUwOTk3MGQ2MDgwOTY5OWQ5YmUzZDc=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
N2YzNGQxMDM1NTNiNDg4YTg0M2YwZjMxY2VmY2NlOGI1ZDBlM2EwN2U1YzZi
|
14
|
+
NzQ0NGYzMGIzYmRhN2JlOTg1NzA4ODRkMjI3MDU4NDk5OTg0YzI1YjVhYzdl
|
15
|
+
NmMyNjIzNWViOGNkNjA2YWQxZWJhMWYwNzNiNjg1MDA3MzRhYmM=
|
data/Gemfile
CHANGED
@@ -11,7 +11,9 @@ group :development, :test do
|
|
11
11
|
# auto-load factories from spec/factories
|
12
12
|
gem 'factory_girl_rails'
|
13
13
|
# rails is only used for the dummy application in spec/dummy
|
14
|
-
gem
|
14
|
+
# restrict from rails 4.0 as it requires protected_attributes gem and other changes for compatibility
|
15
|
+
# @see https://www.pivotaltracker.com/story/show/52309083
|
16
|
+
gem 'rails', '>= 3.2', '< 4.0.0'
|
15
17
|
end
|
16
18
|
|
17
19
|
group :test do
|
@@ -9,7 +9,7 @@ class Mdm::NexposeConsole < ActiveRecord::Base
|
|
9
9
|
# Validations
|
10
10
|
#
|
11
11
|
|
12
|
-
validates :address, :
|
12
|
+
validates :address, :presence => true
|
13
13
|
validates :name, :presence => true
|
14
14
|
validates :password, :presence => true
|
15
15
|
validates :port, :numericality => { :only_integer => true }, :inclusion => {:in => 1..65535}
|
@@ -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.4'
|
8
8
|
end
|
@@ -60,11 +60,6 @@ describe Mdm::NexposeConsole do
|
|
60
60
|
ipv6_nexpose_console = FactoryGirl.build(:mdm_nexpose_console, :address => '2001:0db8:85a3:0000:0000:8a2e:0370:7334')
|
61
61
|
ipv6_nexpose_console.should be_valid
|
62
62
|
end
|
63
|
-
|
64
|
-
it 'should not be valid for strings not conforming to IPv4 or IPv6' do
|
65
|
-
invalid_nexpose_console = FactoryGirl.build(:mdm_nexpose_console, :address => '1234-fark')
|
66
|
-
invalid_nexpose_console.should_not be_valid
|
67
|
-
end
|
68
63
|
end
|
69
64
|
|
70
65
|
context 'port' do
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -19,30 +19,6 @@ ActiveRecord::Schema.define(:version => 20130604145732) do
|
|
19
19
|
t.datetime "updated_at", :null => false
|
20
20
|
end
|
21
21
|
|
22
|
-
create_table "attachments", :force => true do |t|
|
23
|
-
t.string "name", :limit => 512
|
24
|
-
t.binary "data"
|
25
|
-
t.string "content_type", :limit => 512
|
26
|
-
t.boolean "inline", :default => true, :null => false
|
27
|
-
t.boolean "zip", :default => false, :null => false
|
28
|
-
t.integer "campaign_id"
|
29
|
-
end
|
30
|
-
|
31
|
-
create_table "attachments_email_templates", :id => false, :force => true do |t|
|
32
|
-
t.integer "attachment_id"
|
33
|
-
t.integer "email_template_id"
|
34
|
-
end
|
35
|
-
|
36
|
-
create_table "campaigns", :force => true do |t|
|
37
|
-
t.integer "workspace_id", :null => false
|
38
|
-
t.string "name", :limit => 512
|
39
|
-
t.text "prefs"
|
40
|
-
t.integer "status", :default => 0
|
41
|
-
t.datetime "started_at"
|
42
|
-
t.datetime "created_at", :null => false
|
43
|
-
t.datetime "updated_at", :null => false
|
44
|
-
end
|
45
|
-
|
46
22
|
create_table "clients", :force => true do |t|
|
47
23
|
t.integer "host_id"
|
48
24
|
t.datetime "created_at"
|
@@ -65,24 +41,6 @@ ActiveRecord::Schema.define(:version => 20130604145732) do
|
|
65
41
|
t.string "source_type"
|
66
42
|
end
|
67
43
|
|
68
|
-
create_table "email_addresses", :force => true do |t|
|
69
|
-
t.integer "campaign_id", :null => false
|
70
|
-
t.string "first_name", :limit => 512
|
71
|
-
t.string "last_name", :limit => 512
|
72
|
-
t.string "address", :limit => 512
|
73
|
-
t.boolean "sent", :default => false, :null => false
|
74
|
-
t.datetime "clicked_at"
|
75
|
-
end
|
76
|
-
|
77
|
-
create_table "email_templates", :force => true do |t|
|
78
|
-
t.string "name", :limit => 512
|
79
|
-
t.string "subject", :limit => 1024
|
80
|
-
t.text "body"
|
81
|
-
t.integer "parent_id"
|
82
|
-
t.integer "campaign_id"
|
83
|
-
t.text "prefs"
|
84
|
-
end
|
85
|
-
|
86
44
|
create_table "events", :force => true do |t|
|
87
45
|
t.integer "workspace_id"
|
88
46
|
t.integer "host_id"
|
@@ -581,14 +539,6 @@ ActiveRecord::Schema.define(:version => 20130604145732) do
|
|
581
539
|
add_index "web_sites", ["options"], :name => "index_web_sites_on_options"
|
582
540
|
add_index "web_sites", ["vhost"], :name => "index_web_sites_on_vhost"
|
583
541
|
|
584
|
-
create_table "web_templates", :force => true do |t|
|
585
|
-
t.string "name", :limit => 512
|
586
|
-
t.string "title", :limit => 512
|
587
|
-
t.string "body", :limit => 524288
|
588
|
-
t.integer "campaign_id"
|
589
|
-
t.text "prefs"
|
590
|
-
end
|
591
|
-
|
592
542
|
create_table "web_vulns", :force => true do |t|
|
593
543
|
t.integer "web_site_id", :null => false
|
594
544
|
t.datetime "created_at", :null => false
|
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
|
-
version: 0.16.
|
5
|
-
prerelease:
|
4
|
+
version: 0.16.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Samuel Huckins
|
@@ -12,12 +11,11 @@ authors:
|
|
12
11
|
autorequire:
|
13
12
|
bindir: bin
|
14
13
|
cert_chain: []
|
15
|
-
date: 2013-
|
14
|
+
date: 2013-07-05 00:00:00.000000000 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: rake
|
19
18
|
requirement: !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
19
|
requirements:
|
22
20
|
- - ! '>='
|
23
21
|
- !ruby/object:Gem::Version
|
@@ -25,7 +23,6 @@ dependencies:
|
|
25
23
|
type: :development
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
27
|
- - ! '>='
|
31
28
|
- !ruby/object:Gem::Version
|
@@ -33,7 +30,6 @@ dependencies:
|
|
33
30
|
- !ruby/object:Gem::Dependency
|
34
31
|
name: yard
|
35
32
|
requirement: !ruby/object:Gem::Requirement
|
36
|
-
none: false
|
37
33
|
requirements:
|
38
34
|
- - ! '>='
|
39
35
|
- !ruby/object:Gem::Version
|
@@ -41,7 +37,6 @@ dependencies:
|
|
41
37
|
type: :development
|
42
38
|
prerelease: false
|
43
39
|
version_requirements: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
40
|
requirements:
|
46
41
|
- - ! '>='
|
47
42
|
- !ruby/object:Gem::Version
|
@@ -49,7 +44,6 @@ dependencies:
|
|
49
44
|
- !ruby/object:Gem::Dependency
|
50
45
|
name: pry
|
51
46
|
requirement: !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
47
|
requirements:
|
54
48
|
- - ! '>='
|
55
49
|
- !ruby/object:Gem::Version
|
@@ -57,7 +51,6 @@ dependencies:
|
|
57
51
|
type: :development
|
58
52
|
prerelease: false
|
59
53
|
version_requirements: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
54
|
requirements:
|
62
55
|
- - ! '>='
|
63
56
|
- !ruby/object:Gem::Version
|
@@ -65,7 +58,6 @@ dependencies:
|
|
65
58
|
- !ruby/object:Gem::Dependency
|
66
59
|
name: activerecord
|
67
60
|
requirement: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
61
|
requirements:
|
70
62
|
- - ! '>='
|
71
63
|
- !ruby/object:Gem::Version
|
@@ -73,7 +65,6 @@ dependencies:
|
|
73
65
|
type: :runtime
|
74
66
|
prerelease: false
|
75
67
|
version_requirements: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
68
|
requirements:
|
78
69
|
- - ! '>='
|
79
70
|
- !ruby/object:Gem::Version
|
@@ -81,7 +72,6 @@ dependencies:
|
|
81
72
|
- !ruby/object:Gem::Dependency
|
82
73
|
name: activesupport
|
83
74
|
requirement: !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
75
|
requirements:
|
86
76
|
- - ! '>='
|
87
77
|
- !ruby/object:Gem::Version
|
@@ -89,7 +79,6 @@ dependencies:
|
|
89
79
|
type: :runtime
|
90
80
|
prerelease: false
|
91
81
|
version_requirements: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
82
|
requirements:
|
94
83
|
- - ! '>='
|
95
84
|
- !ruby/object:Gem::Version
|
@@ -97,7 +86,6 @@ dependencies:
|
|
97
86
|
- !ruby/object:Gem::Dependency
|
98
87
|
name: redcarpet
|
99
88
|
requirement: !ruby/object:Gem::Requirement
|
100
|
-
none: false
|
101
89
|
requirements:
|
102
90
|
- - ! '>='
|
103
91
|
- !ruby/object:Gem::Version
|
@@ -105,7 +93,6 @@ dependencies:
|
|
105
93
|
type: :development
|
106
94
|
prerelease: false
|
107
95
|
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
none: false
|
109
96
|
requirements:
|
110
97
|
- - ! '>='
|
111
98
|
- !ruby/object:Gem::Version
|
@@ -113,7 +100,6 @@ dependencies:
|
|
113
100
|
- !ruby/object:Gem::Dependency
|
114
101
|
name: pg
|
115
102
|
requirement: !ruby/object:Gem::Requirement
|
116
|
-
none: false
|
117
103
|
requirements:
|
118
104
|
- - ! '>='
|
119
105
|
- !ruby/object:Gem::Version
|
@@ -121,7 +107,6 @@ dependencies:
|
|
121
107
|
type: :runtime
|
122
108
|
prerelease: false
|
123
109
|
version_requirements: !ruby/object:Gem::Requirement
|
124
|
-
none: false
|
125
110
|
requirements:
|
126
111
|
- - ! '>='
|
127
112
|
- !ruby/object:Gem::Version
|
@@ -296,6 +281,7 @@ files:
|
|
296
281
|
- db/migrate/20130423211152_add_creds_counter_cache.rb
|
297
282
|
- db/migrate/20130430151353_change_required_columns_to_null_false_in_hosts.rb
|
298
283
|
- db/migrate/20130430162145_enforce_address_uniqueness_in_workspace_in_hosts.rb
|
284
|
+
- db/migrate/20130510021637_remove_campaigns.rb
|
299
285
|
- db/migrate/20130515164311_change_web_vulns_confidence_to_integer.rb
|
300
286
|
- db/migrate/20130515172727_valid_mdm_web_vuln_params.rb
|
301
287
|
- db/migrate/20130516204810_making_vulns_refs_a_real_ar_model.rb
|
@@ -451,33 +437,26 @@ files:
|
|
451
437
|
- spec/support/shared/examples/mdm/module/detail/supports_stance_with_mtype.rb
|
452
438
|
homepage: ''
|
453
439
|
licenses: []
|
440
|
+
metadata: {}
|
454
441
|
post_install_message:
|
455
442
|
rdoc_options: []
|
456
443
|
require_paths:
|
457
444
|
- lib
|
458
445
|
required_ruby_version: !ruby/object:Gem::Requirement
|
459
|
-
none: false
|
460
446
|
requirements:
|
461
447
|
- - ! '>='
|
462
448
|
- !ruby/object:Gem::Version
|
463
449
|
version: '0'
|
464
|
-
segments:
|
465
|
-
- 0
|
466
|
-
hash: 2477374481960221523
|
467
450
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
468
|
-
none: false
|
469
451
|
requirements:
|
470
452
|
- - ! '>='
|
471
453
|
- !ruby/object:Gem::Version
|
472
454
|
version: '0'
|
473
|
-
segments:
|
474
|
-
- 0
|
475
|
-
hash: 2477374481960221523
|
476
455
|
requirements: []
|
477
456
|
rubyforge_project:
|
478
|
-
rubygems_version:
|
457
|
+
rubygems_version: 2.0.3
|
479
458
|
signing_key:
|
480
|
-
specification_version:
|
459
|
+
specification_version: 4
|
481
460
|
summary: Database code for MSF and Metasploit Pro
|
482
461
|
test_files:
|
483
462
|
- spec/app/models/mdm/client_spec.rb
|