metasploit_data_models 0.17.2 → 0.17.3.pre.metasploit.pre.concern
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/mdm/api_key.rb +1 -1
- data/app/models/mdm/client.rb +1 -1
- data/app/models/mdm/cred.rb +4 -2
- data/app/models/mdm/event.rb +1 -1
- data/app/models/mdm/exploit_attempt.rb +1 -1
- data/app/models/mdm/exploited_host.rb +1 -1
- data/app/models/mdm/host.rb +1 -1
- data/app/models/mdm/host_detail.rb +1 -1
- data/app/models/mdm/host_tag.rb +1 -1
- data/app/models/mdm/listener.rb +1 -2
- data/app/models/mdm/loot.rb +3 -1
- data/app/models/mdm/macro.rb +1 -1
- data/app/models/mdm/mod_ref.rb +1 -1
- data/app/models/mdm/module/action.rb +1 -1
- data/app/models/mdm/module/arch.rb +1 -1
- data/app/models/mdm/module/author.rb +1 -1
- data/app/models/mdm/module/detail.rb +1 -1
- data/app/models/mdm/module/mixin.rb +1 -1
- data/app/models/mdm/module/platform.rb +1 -1
- data/app/models/mdm/module/ref.rb +1 -1
- data/app/models/mdm/module/target.rb +1 -1
- data/app/models/mdm/nexpose_console.rb +1 -1
- data/app/models/mdm/note.rb +3 -1
- data/app/models/mdm/profile.rb +1 -1
- data/app/models/mdm/ref.rb +1 -1
- data/app/models/mdm/route.rb +1 -1
- data/app/models/mdm/service.rb +1 -1
- data/app/models/mdm/session.rb +3 -1
- data/app/models/mdm/session_event.rb +1 -1
- data/app/models/mdm/tag.rb +1 -1
- data/app/models/mdm/task.rb +3 -1
- data/app/models/mdm/task_cred.rb +2 -0
- data/app/models/mdm/task_host.rb +2 -0
- data/app/models/mdm/task_service.rb +2 -0
- data/app/models/mdm/task_session.rb +2 -0
- data/app/models/mdm/user.rb +1 -1
- data/app/models/mdm/vuln.rb +3 -1
- data/app/models/mdm/vuln_attempt.rb +1 -1
- data/app/models/mdm/vuln_detail.rb +1 -1
- data/app/models/mdm/vuln_ref.rb +1 -1
- data/app/models/mdm/web_form.rb +1 -1
- data/app/models/mdm/web_page.rb +1 -1
- data/app/models/mdm/web_site.rb +1 -1
- data/app/models/mdm/web_vuln.rb +1 -1
- data/app/models/mdm/wmap_request.rb +1 -1
- data/app/models/mdm/wmap_target.rb +1 -1
- data/app/models/mdm/workspace.rb +3 -1
- data/app/models/metasploit_data_models/search/visitor/attribute.rb +2 -0
- data/app/models/metasploit_data_models/search/visitor/includes.rb +2 -0
- data/app/models/metasploit_data_models/search/visitor/joins.rb +2 -0
- data/app/models/metasploit_data_models/search/visitor/method.rb +2 -0
- data/app/models/metasploit_data_models/search/visitor/relation.rb +4 -0
- data/app/models/metasploit_data_models/search/visitor/where.rb +2 -0
- data/lib/metasploit_data_models.rb +1 -0
- data/lib/metasploit_data_models/version.rb +1 -1
- data/metasploit_data_models.gemspec +1 -0
- data/spec/app/models/mdm/api_key_spec.rb +5 -0
- data/spec/app/models/mdm/client_spec.rb +2 -0
- data/spec/app/models/mdm/cred_spec.rb +1 -0
- data/spec/app/models/mdm/{events_spec.rb → event_spec.rb} +1 -0
- data/spec/app/models/mdm/exploit_attempt_spec.rb +1 -0
- data/spec/app/models/mdm/exploited_host_spec.rb +34 -32
- data/spec/app/models/mdm/host_detail_spec.rb +1 -0
- data/spec/app/models/mdm/host_spec.rb +2 -0
- data/spec/app/models/mdm/host_tag_spec.rb +1 -0
- data/spec/app/models/mdm/listener_spec.rb +1 -0
- data/spec/app/models/mdm/loot_spec.rb +66 -64
- data/spec/app/models/mdm/macro_spec.rb +5 -0
- data/spec/app/models/mdm/mod_ref_spec.rb +5 -0
- data/spec/app/models/mdm/module/action_spec.rb +3 -0
- data/spec/app/models/mdm/module/arch_spec.rb +3 -0
- data/spec/app/models/mdm/module/author_spec.rb +3 -0
- data/spec/app/models/mdm/module/detail_spec.rb +2 -0
- data/spec/app/models/mdm/module/mixin_spec.rb +3 -0
- data/spec/app/models/mdm/module/platform_spec.rb +3 -0
- data/spec/app/models/mdm/module/ref_spec.rb +3 -0
- data/spec/app/models/mdm/module/target_spec.rb +3 -0
- data/spec/app/models/mdm/nexpose_console_spec.rb +1 -0
- data/spec/app/models/mdm/note_spec.rb +1 -0
- data/spec/app/models/mdm/profile_spec.rb +5 -0
- data/spec/app/models/mdm/ref_spec.rb +2 -0
- data/spec/app/models/mdm/route_spec.rb +1 -0
- data/spec/app/models/mdm/service_spec.rb +1 -0
- data/spec/app/models/mdm/session_event_spec.rb +2 -0
- data/spec/app/models/mdm/session_spec.rb +1 -0
- data/spec/app/models/mdm/tag_spec.rb +1 -0
- data/spec/app/models/mdm/{task_creds_spec.rb → task_cred_spec.rb} +1 -0
- data/spec/app/models/mdm/task_host_spec.rb +1 -0
- data/spec/app/models/mdm/task_service_spec.rb +1 -0
- data/spec/app/models/mdm/{task_sessions_spec.rb → task_session_spec.rb} +1 -0
- data/spec/app/models/mdm/task_spec.rb +1 -0
- data/spec/app/models/mdm/user_spec.rb +1 -0
- data/spec/app/models/mdm/vuln_attempt_spec.rb +1 -0
- data/spec/app/models/mdm/{vuln_details_spec.rb → vuln_detail_spec.rb} +1 -0
- data/spec/app/models/mdm/vuln_ref_spec.rb +2 -0
- data/spec/app/models/mdm/vuln_spec.rb +2 -0
- data/spec/app/models/mdm/web_form_spec.rb +1 -0
- data/spec/app/models/mdm/web_page_spec.rb +1 -0
- data/spec/app/models/mdm/web_site_spec.rb +1 -0
- data/spec/app/models/mdm/web_vuln_spec.rb +2 -0
- data/spec/app/models/mdm/wmap_request_spec.rb +5 -0
- data/spec/app/models/mdm/wmap_target_spec.rb +5 -0
- data/spec/app/models/mdm/workspace_spec.rb +2 -0
- data/spec/app/models/metasploit_data_models/search/visitor/attribute_spec.rb +2 -0
- data/spec/app/models/metasploit_data_models/search/visitor/includes_spec.rb +2 -0
- data/spec/app/models/metasploit_data_models/search/visitor/joins_spec.rb +2 -0
- data/spec/app/models/metasploit_data_models/search/visitor/method_spec.rb +2 -0
- data/spec/app/models/metasploit_data_models/search/visitor/relation_spec.rb +2 -0
- data/spec/app/models/metasploit_data_models/search/visitor/where_spec.rb +2 -0
- data/spec/spec_helper.rb +11 -3
- metadata +38 -12
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGEwZGMwZTQzMDFmMjRiODI3ZDQ2NjY4NzQxOWFlZDEwZGQzNzhlZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjljMGRhZmRjZjk2YjBkZWE4OTk0NTg1Y2U2MTFhNTY1ZDhhNTYzZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDgxNWQ5ZmE3ZTQzYmE1OTIzNmY0ZjgyYTI4MzE4MGIzZTA5YzgyZTVmZjY2
|
10
|
+
NDJlOWU5NmJmZWViYjBkYWRhYzlhNGJlYzZiZTUxYWRhYTIwYzUzZDdiMzYy
|
11
|
+
YmE4YzI3ZTVmMTdiOTE2NDU2ODlmMGU3NWVhOGJhMWU5MTJmMWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDQ5YjgzYjE4ZDgxMmNmZmMzMTkyOTgxMjIzYzIyNmM1NDhiNTkxNDdiNWEy
|
14
|
+
MzhlMTI1ZmMwZjM1MjAxNGZlZjhmZWViNWE2MDE0YzJlMzdmNjk5YjQ2MmE1
|
15
|
+
YTVkMmQwOTVkZGZkYTM1ZWEzNWJkODk2MDJhOGE2MmNlNjAyOTQ=
|
data/app/models/mdm/api_key.rb
CHANGED
data/app/models/mdm/client.rb
CHANGED
data/app/models/mdm/cred.rb
CHANGED
@@ -101,8 +101,6 @@ class Mdm::Cred < ActiveRecord::Base
|
|
101
101
|
self.service.host.workspace
|
102
102
|
end
|
103
103
|
|
104
|
-
ActiveSupport.run_load_hooks(:mdm_cred, self)
|
105
|
-
|
106
104
|
private
|
107
105
|
|
108
106
|
def decrement_host_counter_cache
|
@@ -112,4 +110,8 @@ class Mdm::Cred < ActiveRecord::Base
|
|
112
110
|
def increment_host_counter_cache
|
113
111
|
Mdm::Host.increment_counter("cred_count", self.service.host_id)
|
114
112
|
end
|
113
|
+
|
114
|
+
public
|
115
|
+
|
116
|
+
Metasploit::Concern.run(self)
|
115
117
|
end
|
data/app/models/mdm/event.rb
CHANGED
data/app/models/mdm/host.rb
CHANGED
data/app/models/mdm/host_tag.rb
CHANGED
data/app/models/mdm/listener.rb
CHANGED
@@ -24,7 +24,6 @@ class Mdm::Listener < ActiveRecord::Base
|
|
24
24
|
validates :address, :ip_format => true, :presence => true
|
25
25
|
validates :port, :presence => true, :numericality => { :only_integer => true }, :inclusion => {:in => 1..65535}
|
26
26
|
|
27
|
-
|
28
|
-
ActiveSupport.run_load_hooks(:mdm_listener, self)
|
27
|
+
Metasploit::Concern.run(self)
|
29
28
|
end
|
30
29
|
|
data/app/models/mdm/loot.rb
CHANGED
data/app/models/mdm/macro.rb
CHANGED
data/app/models/mdm/mod_ref.rb
CHANGED
@@ -28,6 +28,6 @@ class Mdm::NexposeConsole < ActiveRecord::Base
|
|
28
28
|
validates :port, :numericality => { :only_integer => true }, :inclusion => {:in => 1..65535}
|
29
29
|
validates :username, :presence => true
|
30
30
|
|
31
|
-
|
31
|
+
Metasploit::Concern.run(self)
|
32
32
|
end
|
33
33
|
|
data/app/models/mdm/note.rb
CHANGED
data/app/models/mdm/profile.rb
CHANGED
data/app/models/mdm/ref.rb
CHANGED
data/app/models/mdm/route.rb
CHANGED
data/app/models/mdm/service.rb
CHANGED
data/app/models/mdm/session.rb
CHANGED
data/app/models/mdm/tag.rb
CHANGED
data/app/models/mdm/task.rb
CHANGED
data/app/models/mdm/task_cred.rb
CHANGED
data/app/models/mdm/task_host.rb
CHANGED
data/app/models/mdm/user.rb
CHANGED
@@ -27,6 +27,6 @@ class Mdm::User < ActiveRecord::Base
|
|
27
27
|
serialized_prefs_attr_accessor :time_zone, :session_key
|
28
28
|
serialized_prefs_attr_accessor :last_login_address # specifically NOT last_login_ip to prevent confusion with AuthLogic magic columns (which dont work for serialized fields)
|
29
29
|
|
30
|
-
|
30
|
+
Metasploit::Concern.run(self)
|
31
31
|
end
|
32
32
|
|
data/app/models/mdm/vuln.rb
CHANGED
data/app/models/mdm/vuln_ref.rb
CHANGED
data/app/models/mdm/web_form.rb
CHANGED
data/app/models/mdm/web_page.rb
CHANGED
data/app/models/mdm/web_site.rb
CHANGED
data/app/models/mdm/web_vuln.rb
CHANGED
data/app/models/mdm/workspace.rb
CHANGED