nexpose 0.8.14 → 0.8.15

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: b4203fc1263d8462c9c26d6554f64aa7fce9875d
4
- data.tar.gz: 36719498a9fdaed6c1fed14ca20db36423341afd
3
+ metadata.gz: 45b0f1a12a6a13987fa0b840be93b92b8c40e451
4
+ data.tar.gz: 54540622743549039ad34336f7cf9d24c4d25286
5
5
  SHA512:
6
- metadata.gz: cdc54f74a36efb0a7e6cd807fc11558042c08ef22b55598d96297188419ecae50f515cf4b2f1fcdd517d70a9f7f532bef171c439b472abb4554aa23be3dc4b71
7
- data.tar.gz: 0f57b3af0d3567feb7de5fc9bf91b271a6cec3a15d96f4e2528f1d86c579a583f4d2f26c92bc10325fddf55378d646ecc8ab73754ad381b3b23548d86e90c2cf
6
+ metadata.gz: 6bb14936c5f39251cf2e0ca3d188e6636de15c3cd76fbabdb0c3f2b01db94cac2e567cf9f40e1d4e0313351bc9f8096ab97eb797702f1692988bc52f449deffd
7
+ data.tar.gz: 1dc2290b9d6194e097f9fb9755892c9419529aef60ca36b4052d5232cb4175713df8f1ee39695b92d03fb78e5faa7a22762afeb0f5768f53b04b9981f856de99
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '0.8.14'
3
+ VERSION = '0.8.15'
4
4
  end
@@ -115,7 +115,8 @@ module Nexpose
115
115
  attr_accessor :asset_id
116
116
  alias :device_id :asset_id
117
117
  alias :device_id= :asset_id=
118
-
118
+ # Id of the site, if this exception applies to all instances on a site
119
+ attr_accessor :site_id
119
120
  # Port on a asset, if this exception applies to a specific port.
120
121
  attr_accessor :port
121
122
  # The specific vulnerable component in a discovered instance of the
@@ -153,6 +154,8 @@ module Nexpose
153
154
  xml.add_attributes({ 'device-id' => @asset_id,
154
155
  'port-no' => @port,
155
156
  'vuln-key' => @vuln_key })
157
+ when Scope::ALL_INSTANCES_IN_A_SPECIFIC_SITE
158
+ xml.add_attributes({ 'site-id ' => @site_id })
156
159
  end
157
160
 
158
161
  @submitter_comment = comment if comment
@@ -313,6 +316,8 @@ module Nexpose
313
316
  when Scope::SPECIFIC_INSTANCE_OF_SPECIFIC_ASSET
314
317
  raise ArgumentError.new('No asset_id.') unless @asset_id
315
318
  raise ArgumentError.new('Port or vuln_key is required.') unless @port || @vuln_key
319
+ when Scope::ALL_INSTANCES_IN_A_SPECIFIC_SITE
320
+ raise ArgumentError.new('No site_id.') unless @site_id
316
321
  else
317
322
  raise ArgumentError.new("Invalid scope: #{@scope}")
318
323
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexpose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.14
4
+ version: 0.8.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - HD Moore
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-11-11 00:00:00.000000000 Z
14
+ date: 2014-11-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rex