metasploit_data_models 0.22.3 → 0.22.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31b1d1dd908f4ebfb33db66e24415a098cc102a0
|
4
|
+
data.tar.gz: a1f7123dacf5fd6821c23fdaa249d45f69d3840b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc185a45e833b5aa5aa3550295b08066c5bc7a98e0179203c224484d385178ad3b4efd688c66bd2502cd884d82c4e62bf1ff52c03c83ab148d73465f01abb797
|
7
|
+
data.tar.gz: b508427932ffc8acf7de501a07d70d052914dcadb151cbd3d62b8521cbd956194fb8d88195c14e46281140aea563dc691c4e9107d1eca4c3f6f6c7af2e0090ba
|
@@ -50,13 +50,13 @@ class AddSessionTable < ActiveRecord::Migration
|
|
50
50
|
# Migrate session data from events table
|
51
51
|
#
|
52
52
|
|
53
|
-
close_events = Event.
|
54
|
-
open_events = Event.
|
53
|
+
close_events = Event.where(name: "session_close")
|
54
|
+
open_events = Event.where(name: "session_open")
|
55
55
|
|
56
|
-
command_events = Event.
|
57
|
-
output_events = Event.
|
58
|
-
upload_events = Event.
|
59
|
-
download_events = Event.
|
56
|
+
command_events = Event.where(name: "session_command")
|
57
|
+
output_events = Event.where(name: "session_output")
|
58
|
+
upload_events = Event.where(name: "session_upload")
|
59
|
+
download_events = Event.where(name: "session_download")
|
60
60
|
|
61
61
|
open_events.each do |o|
|
62
62
|
c = close_events.find { |e| e.info[:session_uuid] == o.info[:session_uuid] }
|
@@ -14,7 +14,7 @@ class TrackSuccessfulExploits < ActiveRecord::Migration
|
|
14
14
|
|
15
15
|
ExploitedHost.find(:all).select {|x| x.name}.each do |exploited_host|
|
16
16
|
next unless(exploited_host.name =~ /^(exploit|auxiliary)\//)
|
17
|
-
vulns = Vuln.
|
17
|
+
vulns = Vuln.where(name: exploited_host.name, host_id: exploited_host.host_id)
|
18
18
|
next if vulns.empty?
|
19
19
|
vulns.each do |vuln|
|
20
20
|
vuln.exploited_at = exploited_host.updated_at
|
@@ -6,7 +6,7 @@ module MetasploitDataModels
|
|
6
6
|
# The minor version number, scoped to the {MAJOR} version number.
|
7
7
|
MINOR = 22
|
8
8
|
# The patch number, scoped to the {MINOR} version number.
|
9
|
-
PATCH =
|
9
|
+
PATCH = 4
|
10
10
|
|
11
11
|
# The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the `PRERELEASE` in the
|
12
12
|
# {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
|
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.22.
|
4
|
+
version: 0.22.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Huckins
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-01
|
14
|
+
date: 2015-02-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|