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: 0c7dc8ddf2d81a943835e4557b1fa00525e852a6
4
- data.tar.gz: 65bb0813c285665a44ed89c608e750e5afdfda1b
3
+ metadata.gz: 31b1d1dd908f4ebfb33db66e24415a098cc102a0
4
+ data.tar.gz: a1f7123dacf5fd6821c23fdaa249d45f69d3840b
5
5
  SHA512:
6
- metadata.gz: bf07e6ee742d234373cf08b82c43b5edade0b804af31af704f91cc1e1109c88af9113d6c27b1f38172b30c6bf2c0e7a001fafa895a660577a35cf93a667ece72
7
- data.tar.gz: 2bdf1f360479034a866c2593f360dc70a37a87db359a594d1711869d0032eb41d731bfb427917084100b7ef407e2d60ffb513bb5dec74c2a0e10013dc952c89a
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.find_all_by_name("session_close")
54
- open_events = Event.find_all_by_name("session_open")
53
+ close_events = Event.where(name: "session_close")
54
+ open_events = Event.where(name: "session_open")
55
55
 
56
- command_events = Event.find_all_by_name("session_command")
57
- output_events = Event.find_all_by_name("session_output")
58
- upload_events = Event.find_all_by_name("session_upload")
59
- download_events = Event.find_all_by_name("session_download")
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.find_all_by_name_and_host_id(exploited_host.name, exploited_host.host_id)
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 = 3
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.3
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-28 00:00:00.000000000 Z
14
+ date: 2015-02-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake