metasploit_data_models 0.6.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. data/.gitignore +24 -0
  2. data/.rspec +3 -0
  3. data/.simplecov +38 -0
  4. data/.yardopts +4 -0
  5. data/Gemfile +27 -0
  6. data/LICENSE +27 -0
  7. data/README.md +72 -0
  8. data/Rakefile +53 -0
  9. data/app/models/mdm/api_key.rb +20 -0
  10. data/app/models/mdm/client.rb +9 -0
  11. data/app/models/mdm/cred.rb +80 -0
  12. data/app/models/mdm/event.rb +30 -0
  13. data/app/models/mdm/exploit_attempt.rb +14 -0
  14. data/app/models/mdm/exploited_host.rb +11 -0
  15. data/app/models/mdm/host.rb +134 -0
  16. data/app/models/mdm/host_detail.rb +15 -0
  17. data/app/models/mdm/host_tag.rb +13 -0
  18. data/app/models/mdm/imported_cred.rb +10 -0
  19. data/app/models/mdm/listener.rb +24 -0
  20. data/app/models/mdm/loot.rb +63 -0
  21. data/app/models/mdm/macro.rb +20 -0
  22. data/app/models/mdm/mod_ref.rb +3 -0
  23. data/app/models/mdm/module_action.rb +24 -0
  24. data/app/models/mdm/module_arch.rb +24 -0
  25. data/app/models/mdm/module_author.rb +25 -0
  26. data/app/models/mdm/module_detail.rb +59 -0
  27. data/app/models/mdm/module_mixin.rb +24 -0
  28. data/app/models/mdm/module_platform.rb +24 -0
  29. data/app/models/mdm/module_ref.rb +24 -0
  30. data/app/models/mdm/module_target.rb +26 -0
  31. data/app/models/mdm/nexpose_console.rb +20 -0
  32. data/app/models/mdm/note.rb +49 -0
  33. data/app/models/mdm/profile.rb +9 -0
  34. data/app/models/mdm/ref.rb +14 -0
  35. data/app/models/mdm/report.rb +50 -0
  36. data/app/models/mdm/report_template.rb +27 -0
  37. data/app/models/mdm/route.rb +9 -0
  38. data/app/models/mdm/service.rb +56 -0
  39. data/app/models/mdm/session.rb +48 -0
  40. data/app/models/mdm/session_event.rb +9 -0
  41. data/app/models/mdm/tag.rb +46 -0
  42. data/app/models/mdm/task.rb +41 -0
  43. data/app/models/mdm/user.rb +25 -0
  44. data/app/models/mdm/vuln.rb +60 -0
  45. data/app/models/mdm/vuln_attempt.rb +15 -0
  46. data/app/models/mdm/vuln_detail.rb +14 -0
  47. data/app/models/mdm/vuln_ref.rb +13 -0
  48. data/app/models/mdm/web_form.rb +16 -0
  49. data/app/models/mdm/web_page.rb +16 -0
  50. data/app/models/mdm/web_site.rb +47 -0
  51. data/app/models/mdm/web_vuln.rb +190 -0
  52. data/app/models/mdm/wmap_request.rb +3 -0
  53. data/app/models/mdm/wmap_target.rb +3 -0
  54. data/app/models/mdm/workspace.rb +196 -0
  55. data/bin/mdm_console +68 -0
  56. data/console_db.yml +9 -0
  57. data/db/migrate/000_create_tables.rb +79 -0
  58. data/db/migrate/001_add_wmap_tables.rb +35 -0
  59. data/db/migrate/002_add_workspaces.rb +36 -0
  60. data/db/migrate/003_move_notes.rb +20 -0
  61. data/db/migrate/004_add_events_table.rb +16 -0
  62. data/db/migrate/005_expand_info.rb +58 -0
  63. data/db/migrate/006_add_timestamps.rb +26 -0
  64. data/db/migrate/007_add_loots.rb +20 -0
  65. data/db/migrate/008_create_users.rb +16 -0
  66. data/db/migrate/009_add_loots_ctype.rb +10 -0
  67. data/db/migrate/010_add_alert_fields.rb +16 -0
  68. data/db/migrate/011_add_reports.rb +19 -0
  69. data/db/migrate/012_add_tasks.rb +24 -0
  70. data/db/migrate/013_add_tasks_result.rb +10 -0
  71. data/db/migrate/014_add_loots_fields.rb +12 -0
  72. data/db/migrate/015_rename_user.rb +16 -0
  73. data/db/migrate/016_add_host_purpose.rb +10 -0
  74. data/db/migrate/017_expand_info2.rb +58 -0
  75. data/db/migrate/018_add_workspace_user_info.rb +29 -0
  76. data/db/migrate/019_add_workspace_desc.rb +23 -0
  77. data/db/migrate/020_add_user_preferences.rb +11 -0
  78. data/db/migrate/021_standardize_info_and_data.rb +18 -0
  79. data/db/migrate/022_enlarge_event_info.rb +10 -0
  80. data/db/migrate/023_add_report_downloaded_at.rb +10 -0
  81. data/db/migrate/024_convert_service_info_to_text.rb +12 -0
  82. data/db/migrate/025_add_user_admin.rb +19 -0
  83. data/db/migrate/026_add_creds_table.rb +19 -0
  84. data/db/migrate/20100819123300_migrate_cred_data.rb +154 -0
  85. data/db/migrate/20100824151500_add_exploited_table.rb +16 -0
  86. data/db/migrate/20100908001428_add_owner_to_workspaces.rb +9 -0
  87. data/db/migrate/20100911122000_add_report_templates.rb +18 -0
  88. data/db/migrate/20100916151530_require_admin_flag.rb +15 -0
  89. data/db/migrate/20100916175000_add_campaigns_and_templates.rb +61 -0
  90. data/db/migrate/20100920012100_add_generate_exe_column.rb +8 -0
  91. data/db/migrate/20100926214000_add_template_prefs.rb +11 -0
  92. data/db/migrate/20101001000000_add_web_tables.rb +57 -0
  93. data/db/migrate/20101002000000_add_query.rb +10 -0
  94. data/db/migrate/20101007000000_add_vuln_info.rb +15 -0
  95. data/db/migrate/20101008111800_add_clients_to_campaigns.rb +10 -0
  96. data/db/migrate/20101009023300_add_campaign_attachments.rb +15 -0
  97. data/db/migrate/20101104135100_add_imported_creds.rb +17 -0
  98. data/db/migrate/20101203000000_fix_web_tables.rb +34 -0
  99. data/db/migrate/20101203000001_expand_host_comment.rb +12 -0
  100. data/db/migrate/20101206212033_add_limit_to_network_to_workspaces.rb +9 -0
  101. data/db/migrate/20110112154300_add_module_uuid_to_tasks.rb +9 -0
  102. data/db/migrate/20110204112800_add_host_tags.rb +28 -0
  103. data/db/migrate/20110317144932_add_session_table.rb +110 -0
  104. data/db/migrate/20110414180600_add_local_id_to_session_table.rb +11 -0
  105. data/db/migrate/20110415175705_add_routes_table.rb +18 -0
  106. data/db/migrate/20110422000000_convert_binary.rb +72 -0
  107. data/db/migrate/20110425095900_add_last_seen_to_sessions.rb +8 -0
  108. data/db/migrate/20110513143900_track_successful_exploits.rb +31 -0
  109. data/db/migrate/20110517160800_rename_and_prune_nessus_vulns.rb +26 -0
  110. data/db/migrate/20110527000000_add_task_id_to_reports_table.rb +11 -0
  111. data/db/migrate/20110527000001_add_api_keys_table.rb +12 -0
  112. data/db/migrate/20110606000001_add_macros_table.rb +16 -0
  113. data/db/migrate/20110622000000_add_settings_to_tasks_table.rb +12 -0
  114. data/db/migrate/20110624000001_add_listeners_table.rb +19 -0
  115. data/db/migrate/20110625000001_add_macro_to_listeners_table.rb +12 -0
  116. data/db/migrate/20110630000001_add_nexpose_consoles_table.rb +21 -0
  117. data/db/migrate/20110630000002_add_name_to_nexpose_consoles_table.rb +12 -0
  118. data/db/migrate/20110717000001_add_profiles_table.rb +15 -0
  119. data/db/migrate/20110727163801_expand_cred_ptype_column.rb +9 -0
  120. data/db/migrate/20110730000001_add_initial_indexes.rb +85 -0
  121. data/db/migrate/20110812000001_prune_indexes.rb +23 -0
  122. data/db/migrate/20110922000000_expand_notes.rb +9 -0
  123. data/db/migrate/20110928101300_add_mod_ref_table.rb +17 -0
  124. data/db/migrate/20111011110000_add_display_name_to_reports_table.rb +24 -0
  125. data/db/migrate/20111203000000_inet_columns.rb +13 -0
  126. data/db/migrate/20111204000000_more_inet_columns.rb +17 -0
  127. data/db/migrate/20111210000000_add_scope_to_hosts.rb +9 -0
  128. data/db/migrate/20120126110000_add_virtual_host_to_hosts.rb +9 -0
  129. data/db/migrate/20120411173220_rename_workspace_members.rb +9 -0
  130. data/db/migrate/20120601152442_add_counter_caches_to_hosts.rb +21 -0
  131. data/db/migrate/20120625000000_add_vuln_details.rb +34 -0
  132. data/db/migrate/20120625000001_add_host_details.rb +16 -0
  133. data/db/migrate/20120625000002_expand_details.rb +16 -0
  134. data/db/migrate/20120625000003_expand_details2.rb +24 -0
  135. data/db/migrate/20120625000004_add_vuln_attempts.rb +19 -0
  136. data/db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb +14 -0
  137. data/db/migrate/20120625000006_add_module_details.rb +118 -0
  138. data/db/migrate/20120625000007_add_exploit_attempts.rb +26 -0
  139. data/db/migrate/20120625000008_add_fail_message.rb +12 -0
  140. data/db/migrate/20120718202805_add_owner_and_payload_to_web_vulns.rb +13 -0
  141. data/db/migrate/20130228214900_change_required_columns_to_null_false_in_web_vulns.rb +35 -0
  142. data/lib/mdm.rb +12 -0
  143. data/lib/mdm/host/operating_system_normalization.rb +984 -0
  144. data/lib/metasploit_data_models.rb +60 -0
  145. data/lib/metasploit_data_models/base64_serializer.rb +103 -0
  146. data/lib/metasploit_data_models/engine.rb +23 -0
  147. data/lib/metasploit_data_models/serialized_prefs.rb +23 -0
  148. data/lib/metasploit_data_models/validators/ip_format_validator.rb +13 -0
  149. data/lib/metasploit_data_models/validators/password_is_strong_validator.rb +70 -0
  150. data/lib/metasploit_data_models/version.rb +8 -0
  151. data/lib/tasks/yard.rake +26 -0
  152. data/metasploit_data_models.gemspec +31 -0
  153. data/script/rails +8 -0
  154. data/spec/app/models/mdm/module_action_spec.rb +38 -0
  155. data/spec/app/models/mdm/module_arch_spec.rb +38 -0
  156. data/spec/app/models/mdm/module_author_spec.rb +50 -0
  157. data/spec/app/models/mdm/module_detail_spec.rb +291 -0
  158. data/spec/app/models/mdm/module_mixin_spec.rb +38 -0
  159. data/spec/app/models/mdm/module_platform_spec.rb +38 -0
  160. data/spec/app/models/mdm/module_ref_spec.rb +38 -0
  161. data/spec/app/models/mdm/module_target_spec.rb +41 -0
  162. data/spec/app/models/mdm/web_vuln_spec.rb +126 -0
  163. data/spec/dummy/Rakefile +7 -0
  164. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  165. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  166. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  167. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  168. data/spec/dummy/app/mailers/.gitkeep +0 -0
  169. data/spec/dummy/app/models/.gitkeep +0 -0
  170. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  171. data/spec/dummy/config.ru +4 -0
  172. data/spec/dummy/config/application.rb +61 -0
  173. data/spec/dummy/config/boot.rb +10 -0
  174. data/spec/dummy/config/database.yml.example +22 -0
  175. data/spec/dummy/config/environment.rb +5 -0
  176. data/spec/dummy/config/environments/development.rb +37 -0
  177. data/spec/dummy/config/environments/production.rb +67 -0
  178. data/spec/dummy/config/environments/test.rb +37 -0
  179. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  180. data/spec/dummy/config/initializers/inflections.rb +15 -0
  181. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  182. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  183. data/spec/dummy/config/initializers/session_store.rb +8 -0
  184. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  185. data/spec/dummy/config/routes.rb +2 -0
  186. data/spec/dummy/db/schema.rb +638 -0
  187. data/spec/dummy/lib/assets/.gitkeep +0 -0
  188. data/spec/dummy/log/.gitkeep +0 -0
  189. data/spec/dummy/public/404.html +26 -0
  190. data/spec/dummy/public/422.html +26 -0
  191. data/spec/dummy/public/500.html +25 -0
  192. data/spec/dummy/public/favicon.ico +0 -0
  193. data/spec/dummy/script/rails +6 -0
  194. data/spec/factories/mdm/addresses.rb +7 -0
  195. data/spec/factories/mdm/hosts.rb +18 -0
  196. data/spec/factories/mdm/module_actions.rb +14 -0
  197. data/spec/factories/mdm/module_archs.rb +14 -0
  198. data/spec/factories/mdm/module_authors.rb +22 -0
  199. data/spec/factories/mdm/module_details.rb +9 -0
  200. data/spec/factories/mdm/module_mixins.rb +14 -0
  201. data/spec/factories/mdm/module_platforms.rb +14 -0
  202. data/spec/factories/mdm/module_refs.rb +14 -0
  203. data/spec/factories/mdm/module_targets.rb +19 -0
  204. data/spec/factories/mdm/services.rb +35 -0
  205. data/spec/factories/mdm/users.rb +22 -0
  206. data/spec/factories/mdm/web_sites.rb +8 -0
  207. data/spec/factories/mdm/web_vulns.rb +64 -0
  208. data/spec/factories/mdm/workspaces.rb +23 -0
  209. data/spec/lib/base64_serializer_spec.rb +174 -0
  210. data/spec/spec_helper.rb +36 -0
  211. metadata +433 -0
@@ -0,0 +1,36 @@
1
+ # Configure Rails Environment
2
+ ENV['RAILS_ENV'] = 'test'
3
+
4
+ require 'rubygems'
5
+ require 'bundler'
6
+ Bundler.setup(:default, :test)
7
+
8
+ # Require simplecov before loading ..dummy/config/environment.rb because it will cause metasploit_data_models/lib to
9
+ # be loaded, which would result in Coverage not recording hits for any of the files.
10
+ require 'simplecov'
11
+
12
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
13
+ require 'rspec/rails'
14
+ require 'rspec/autorun'
15
+
16
+ # full backtrace in logs so its easier to trace errors
17
+ Rails.backtrace_cleaner.remove_silencers!
18
+
19
+ # Requires supporting ruby files with custom matchers and macros, etc,
20
+ # in spec/support/ and its subdirectories.
21
+ support_glob = MetasploitDataModels.root.join('spec', 'support', '**', '*.rb')
22
+
23
+ Dir.glob(support_glob) do |path|
24
+ require path
25
+ end
26
+
27
+ RSpec.configure do |config|
28
+ config.before(:each) do
29
+ # Rex is only available when testing with metasploit-framework or pro, so stub out the methods that require it
30
+ Mdm::Workspace.any_instance.stub(:valid_ip_or_range? => true)
31
+ end
32
+
33
+ config.mock_with :rspec
34
+ config.use_transactional_fixtures = true
35
+ config.order = :random
36
+ end
metadata ADDED
@@ -0,0 +1,433 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: metasploit_data_models
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.13
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Trevor Rosen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: redcarpet
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: yard
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: pry
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: activerecord
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: 3.2.13
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 3.2.13
94
+ - !ruby/object:Gem::Dependency
95
+ name: activesupport
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: pg
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ description: Implements minimal ActiveRecord models and database helper code used
127
+ in both the Metasploit Framework (MSF) and Metasploit commercial editions.
128
+ email:
129
+ - trevor_rosen@rapid7.com
130
+ executables:
131
+ - mdm_console
132
+ extensions: []
133
+ extra_rdoc_files: []
134
+ files:
135
+ - .gitignore
136
+ - .rspec
137
+ - .simplecov
138
+ - .yardopts
139
+ - Gemfile
140
+ - LICENSE
141
+ - README.md
142
+ - Rakefile
143
+ - app/models/mdm/api_key.rb
144
+ - app/models/mdm/client.rb
145
+ - app/models/mdm/cred.rb
146
+ - app/models/mdm/event.rb
147
+ - app/models/mdm/exploit_attempt.rb
148
+ - app/models/mdm/exploited_host.rb
149
+ - app/models/mdm/host.rb
150
+ - app/models/mdm/host_detail.rb
151
+ - app/models/mdm/host_tag.rb
152
+ - app/models/mdm/imported_cred.rb
153
+ - app/models/mdm/listener.rb
154
+ - app/models/mdm/loot.rb
155
+ - app/models/mdm/macro.rb
156
+ - app/models/mdm/mod_ref.rb
157
+ - app/models/mdm/module_action.rb
158
+ - app/models/mdm/module_arch.rb
159
+ - app/models/mdm/module_author.rb
160
+ - app/models/mdm/module_detail.rb
161
+ - app/models/mdm/module_mixin.rb
162
+ - app/models/mdm/module_platform.rb
163
+ - app/models/mdm/module_ref.rb
164
+ - app/models/mdm/module_target.rb
165
+ - app/models/mdm/nexpose_console.rb
166
+ - app/models/mdm/note.rb
167
+ - app/models/mdm/profile.rb
168
+ - app/models/mdm/ref.rb
169
+ - app/models/mdm/report.rb
170
+ - app/models/mdm/report_template.rb
171
+ - app/models/mdm/route.rb
172
+ - app/models/mdm/service.rb
173
+ - app/models/mdm/session.rb
174
+ - app/models/mdm/session_event.rb
175
+ - app/models/mdm/tag.rb
176
+ - app/models/mdm/task.rb
177
+ - app/models/mdm/user.rb
178
+ - app/models/mdm/vuln.rb
179
+ - app/models/mdm/vuln_attempt.rb
180
+ - app/models/mdm/vuln_detail.rb
181
+ - app/models/mdm/vuln_ref.rb
182
+ - app/models/mdm/web_form.rb
183
+ - app/models/mdm/web_page.rb
184
+ - app/models/mdm/web_site.rb
185
+ - app/models/mdm/web_vuln.rb
186
+ - app/models/mdm/wmap_request.rb
187
+ - app/models/mdm/wmap_target.rb
188
+ - app/models/mdm/workspace.rb
189
+ - bin/mdm_console
190
+ - console_db.yml
191
+ - db/migrate/000_create_tables.rb
192
+ - db/migrate/001_add_wmap_tables.rb
193
+ - db/migrate/002_add_workspaces.rb
194
+ - db/migrate/003_move_notes.rb
195
+ - db/migrate/004_add_events_table.rb
196
+ - db/migrate/005_expand_info.rb
197
+ - db/migrate/006_add_timestamps.rb
198
+ - db/migrate/007_add_loots.rb
199
+ - db/migrate/008_create_users.rb
200
+ - db/migrate/009_add_loots_ctype.rb
201
+ - db/migrate/010_add_alert_fields.rb
202
+ - db/migrate/011_add_reports.rb
203
+ - db/migrate/012_add_tasks.rb
204
+ - db/migrate/013_add_tasks_result.rb
205
+ - db/migrate/014_add_loots_fields.rb
206
+ - db/migrate/015_rename_user.rb
207
+ - db/migrate/016_add_host_purpose.rb
208
+ - db/migrate/017_expand_info2.rb
209
+ - db/migrate/018_add_workspace_user_info.rb
210
+ - db/migrate/019_add_workspace_desc.rb
211
+ - db/migrate/020_add_user_preferences.rb
212
+ - db/migrate/021_standardize_info_and_data.rb
213
+ - db/migrate/022_enlarge_event_info.rb
214
+ - db/migrate/023_add_report_downloaded_at.rb
215
+ - db/migrate/024_convert_service_info_to_text.rb
216
+ - db/migrate/025_add_user_admin.rb
217
+ - db/migrate/026_add_creds_table.rb
218
+ - db/migrate/20100819123300_migrate_cred_data.rb
219
+ - db/migrate/20100824151500_add_exploited_table.rb
220
+ - db/migrate/20100908001428_add_owner_to_workspaces.rb
221
+ - db/migrate/20100911122000_add_report_templates.rb
222
+ - db/migrate/20100916151530_require_admin_flag.rb
223
+ - db/migrate/20100916175000_add_campaigns_and_templates.rb
224
+ - db/migrate/20100920012100_add_generate_exe_column.rb
225
+ - db/migrate/20100926214000_add_template_prefs.rb
226
+ - db/migrate/20101001000000_add_web_tables.rb
227
+ - db/migrate/20101002000000_add_query.rb
228
+ - db/migrate/20101007000000_add_vuln_info.rb
229
+ - db/migrate/20101008111800_add_clients_to_campaigns.rb
230
+ - db/migrate/20101009023300_add_campaign_attachments.rb
231
+ - db/migrate/20101104135100_add_imported_creds.rb
232
+ - db/migrate/20101203000000_fix_web_tables.rb
233
+ - db/migrate/20101203000001_expand_host_comment.rb
234
+ - db/migrate/20101206212033_add_limit_to_network_to_workspaces.rb
235
+ - db/migrate/20110112154300_add_module_uuid_to_tasks.rb
236
+ - db/migrate/20110204112800_add_host_tags.rb
237
+ - db/migrate/20110317144932_add_session_table.rb
238
+ - db/migrate/20110414180600_add_local_id_to_session_table.rb
239
+ - db/migrate/20110415175705_add_routes_table.rb
240
+ - db/migrate/20110422000000_convert_binary.rb
241
+ - db/migrate/20110425095900_add_last_seen_to_sessions.rb
242
+ - db/migrate/20110513143900_track_successful_exploits.rb
243
+ - db/migrate/20110517160800_rename_and_prune_nessus_vulns.rb
244
+ - db/migrate/20110527000000_add_task_id_to_reports_table.rb
245
+ - db/migrate/20110527000001_add_api_keys_table.rb
246
+ - db/migrate/20110606000001_add_macros_table.rb
247
+ - db/migrate/20110622000000_add_settings_to_tasks_table.rb
248
+ - db/migrate/20110624000001_add_listeners_table.rb
249
+ - db/migrate/20110625000001_add_macro_to_listeners_table.rb
250
+ - db/migrate/20110630000001_add_nexpose_consoles_table.rb
251
+ - db/migrate/20110630000002_add_name_to_nexpose_consoles_table.rb
252
+ - db/migrate/20110717000001_add_profiles_table.rb
253
+ - db/migrate/20110727163801_expand_cred_ptype_column.rb
254
+ - db/migrate/20110730000001_add_initial_indexes.rb
255
+ - db/migrate/20110812000001_prune_indexes.rb
256
+ - db/migrate/20110922000000_expand_notes.rb
257
+ - db/migrate/20110928101300_add_mod_ref_table.rb
258
+ - db/migrate/20111011110000_add_display_name_to_reports_table.rb
259
+ - db/migrate/20111203000000_inet_columns.rb
260
+ - db/migrate/20111204000000_more_inet_columns.rb
261
+ - db/migrate/20111210000000_add_scope_to_hosts.rb
262
+ - db/migrate/20120126110000_add_virtual_host_to_hosts.rb
263
+ - db/migrate/20120411173220_rename_workspace_members.rb
264
+ - db/migrate/20120601152442_add_counter_caches_to_hosts.rb
265
+ - db/migrate/20120625000000_add_vuln_details.rb
266
+ - db/migrate/20120625000001_add_host_details.rb
267
+ - db/migrate/20120625000002_expand_details.rb
268
+ - db/migrate/20120625000003_expand_details2.rb
269
+ - db/migrate/20120625000004_add_vuln_attempts.rb
270
+ - db/migrate/20120625000005_add_vuln_and_host_counter_caches.rb
271
+ - db/migrate/20120625000006_add_module_details.rb
272
+ - db/migrate/20120625000007_add_exploit_attempts.rb
273
+ - db/migrate/20120625000008_add_fail_message.rb
274
+ - db/migrate/20120718202805_add_owner_and_payload_to_web_vulns.rb
275
+ - db/migrate/20130228214900_change_required_columns_to_null_false_in_web_vulns.rb
276
+ - lib/mdm.rb
277
+ - lib/mdm/host/operating_system_normalization.rb
278
+ - lib/metasploit_data_models.rb
279
+ - lib/metasploit_data_models/base64_serializer.rb
280
+ - lib/metasploit_data_models/engine.rb
281
+ - lib/metasploit_data_models/serialized_prefs.rb
282
+ - lib/metasploit_data_models/validators/ip_format_validator.rb
283
+ - lib/metasploit_data_models/validators/password_is_strong_validator.rb
284
+ - lib/metasploit_data_models/version.rb
285
+ - lib/tasks/yard.rake
286
+ - metasploit_data_models.gemspec
287
+ - script/rails
288
+ - spec/app/models/mdm/module_action_spec.rb
289
+ - spec/app/models/mdm/module_arch_spec.rb
290
+ - spec/app/models/mdm/module_author_spec.rb
291
+ - spec/app/models/mdm/module_detail_spec.rb
292
+ - spec/app/models/mdm/module_mixin_spec.rb
293
+ - spec/app/models/mdm/module_platform_spec.rb
294
+ - spec/app/models/mdm/module_ref_spec.rb
295
+ - spec/app/models/mdm/module_target_spec.rb
296
+ - spec/app/models/mdm/web_vuln_spec.rb
297
+ - spec/dummy/Rakefile
298
+ - spec/dummy/app/assets/javascripts/application.js
299
+ - spec/dummy/app/assets/stylesheets/application.css
300
+ - spec/dummy/app/controllers/application_controller.rb
301
+ - spec/dummy/app/helpers/application_helper.rb
302
+ - spec/dummy/app/mailers/.gitkeep
303
+ - spec/dummy/app/models/.gitkeep
304
+ - spec/dummy/app/views/layouts/application.html.erb
305
+ - spec/dummy/config.ru
306
+ - spec/dummy/config/application.rb
307
+ - spec/dummy/config/boot.rb
308
+ - spec/dummy/config/database.yml.example
309
+ - spec/dummy/config/environment.rb
310
+ - spec/dummy/config/environments/development.rb
311
+ - spec/dummy/config/environments/production.rb
312
+ - spec/dummy/config/environments/test.rb
313
+ - spec/dummy/config/initializers/backtrace_silencers.rb
314
+ - spec/dummy/config/initializers/inflections.rb
315
+ - spec/dummy/config/initializers/mime_types.rb
316
+ - spec/dummy/config/initializers/secret_token.rb
317
+ - spec/dummy/config/initializers/session_store.rb
318
+ - spec/dummy/config/initializers/wrap_parameters.rb
319
+ - spec/dummy/config/routes.rb
320
+ - spec/dummy/db/schema.rb
321
+ - spec/dummy/lib/assets/.gitkeep
322
+ - spec/dummy/log/.gitkeep
323
+ - spec/dummy/public/404.html
324
+ - spec/dummy/public/422.html
325
+ - spec/dummy/public/500.html
326
+ - spec/dummy/public/favicon.ico
327
+ - spec/dummy/script/rails
328
+ - spec/factories/mdm/addresses.rb
329
+ - spec/factories/mdm/hosts.rb
330
+ - spec/factories/mdm/module_actions.rb
331
+ - spec/factories/mdm/module_archs.rb
332
+ - spec/factories/mdm/module_authors.rb
333
+ - spec/factories/mdm/module_details.rb
334
+ - spec/factories/mdm/module_mixins.rb
335
+ - spec/factories/mdm/module_platforms.rb
336
+ - spec/factories/mdm/module_refs.rb
337
+ - spec/factories/mdm/module_targets.rb
338
+ - spec/factories/mdm/services.rb
339
+ - spec/factories/mdm/users.rb
340
+ - spec/factories/mdm/web_sites.rb
341
+ - spec/factories/mdm/web_vulns.rb
342
+ - spec/factories/mdm/workspaces.rb
343
+ - spec/lib/base64_serializer_spec.rb
344
+ - spec/spec_helper.rb
345
+ homepage: ''
346
+ licenses: []
347
+ post_install_message:
348
+ rdoc_options: []
349
+ require_paths:
350
+ - lib
351
+ required_ruby_version: !ruby/object:Gem::Requirement
352
+ none: false
353
+ requirements:
354
+ - - ! '>='
355
+ - !ruby/object:Gem::Version
356
+ version: '0'
357
+ segments:
358
+ - 0
359
+ hash: 194184373331596674
360
+ required_rubygems_version: !ruby/object:Gem::Requirement
361
+ none: false
362
+ requirements:
363
+ - - ! '>='
364
+ - !ruby/object:Gem::Version
365
+ version: '0'
366
+ segments:
367
+ - 0
368
+ hash: 194184373331596674
369
+ requirements: []
370
+ rubyforge_project:
371
+ rubygems_version: 1.8.24
372
+ signing_key:
373
+ specification_version: 3
374
+ summary: Database code for MSF and Metasploit Pro
375
+ test_files:
376
+ - spec/app/models/mdm/module_action_spec.rb
377
+ - spec/app/models/mdm/module_arch_spec.rb
378
+ - spec/app/models/mdm/module_author_spec.rb
379
+ - spec/app/models/mdm/module_detail_spec.rb
380
+ - spec/app/models/mdm/module_mixin_spec.rb
381
+ - spec/app/models/mdm/module_platform_spec.rb
382
+ - spec/app/models/mdm/module_ref_spec.rb
383
+ - spec/app/models/mdm/module_target_spec.rb
384
+ - spec/app/models/mdm/web_vuln_spec.rb
385
+ - spec/dummy/Rakefile
386
+ - spec/dummy/app/assets/javascripts/application.js
387
+ - spec/dummy/app/assets/stylesheets/application.css
388
+ - spec/dummy/app/controllers/application_controller.rb
389
+ - spec/dummy/app/helpers/application_helper.rb
390
+ - spec/dummy/app/mailers/.gitkeep
391
+ - spec/dummy/app/models/.gitkeep
392
+ - spec/dummy/app/views/layouts/application.html.erb
393
+ - spec/dummy/config.ru
394
+ - spec/dummy/config/application.rb
395
+ - spec/dummy/config/boot.rb
396
+ - spec/dummy/config/database.yml.example
397
+ - spec/dummy/config/environment.rb
398
+ - spec/dummy/config/environments/development.rb
399
+ - spec/dummy/config/environments/production.rb
400
+ - spec/dummy/config/environments/test.rb
401
+ - spec/dummy/config/initializers/backtrace_silencers.rb
402
+ - spec/dummy/config/initializers/inflections.rb
403
+ - spec/dummy/config/initializers/mime_types.rb
404
+ - spec/dummy/config/initializers/secret_token.rb
405
+ - spec/dummy/config/initializers/session_store.rb
406
+ - spec/dummy/config/initializers/wrap_parameters.rb
407
+ - spec/dummy/config/routes.rb
408
+ - spec/dummy/db/schema.rb
409
+ - spec/dummy/lib/assets/.gitkeep
410
+ - spec/dummy/log/.gitkeep
411
+ - spec/dummy/public/404.html
412
+ - spec/dummy/public/422.html
413
+ - spec/dummy/public/500.html
414
+ - spec/dummy/public/favicon.ico
415
+ - spec/dummy/script/rails
416
+ - spec/factories/mdm/addresses.rb
417
+ - spec/factories/mdm/hosts.rb
418
+ - spec/factories/mdm/module_actions.rb
419
+ - spec/factories/mdm/module_archs.rb
420
+ - spec/factories/mdm/module_authors.rb
421
+ - spec/factories/mdm/module_details.rb
422
+ - spec/factories/mdm/module_mixins.rb
423
+ - spec/factories/mdm/module_platforms.rb
424
+ - spec/factories/mdm/module_refs.rb
425
+ - spec/factories/mdm/module_targets.rb
426
+ - spec/factories/mdm/services.rb
427
+ - spec/factories/mdm/users.rb
428
+ - spec/factories/mdm/web_sites.rb
429
+ - spec/factories/mdm/web_vulns.rb
430
+ - spec/factories/mdm/workspaces.rb
431
+ - spec/lib/base64_serializer_spec.rb
432
+ - spec/spec_helper.rb
433
+ has_rdoc: