metasploit_data_models 0.22.3-java → 0.22.4-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c95936fada78f2510c3f2b4feb776c630ee04ba
4
- data.tar.gz: c861d190758743f8412d34eb451d5719a08740ef
3
+ metadata.gz: 39771dc4270800fd4aff90a4e932a2e1045add0d
4
+ data.tar.gz: 3cf37a1d942b1e9c87322b9df4984b3a99c1c355
5
5
  SHA512:
6
- metadata.gz: aebb116fca12dc00105669f0c5160718bb66c3ed68ab54774c3bc220cf50e6baef4a8cbf4c8f1b5a1f00344c4e8f4c3b7bdbc27dd616b96191459756e33ab900
7
- data.tar.gz: 22fcef2c702f9b2fa217eb41e344372a710f0d3e2ec01d8f377b61ee27d45bfdb39efbc1691567d24ed2c5bc3458456f7ed1cc007a907b1b8c29b96aaa5658f8
6
+ metadata.gz: f42f3042b7bab0a3820682ccea664bf92b3eb9e8a2c58deebf124db8c089328d0a345fef8da810e5e467ab644e5606568bebe3be3d20e37e777e81a3034df6bc
7
+ data.tar.gz: 932c332a119c09be25f64e54306cfeecba155b243a8d630be499605caaa6170f7cd0a45d2b0a7395a4c66878bd50685cdc7b3d39ec8cef1ecbbd1530cbdca190
@@ -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: java
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