nexpose 0.8.14 → 0.8.15
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 +4 -4
- data/lib/nexpose/version.rb +1 -1
- data/lib/nexpose/vuln_exception.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45b0f1a12a6a13987fa0b840be93b92b8c40e451
|
|
4
|
+
data.tar.gz: 54540622743549039ad34336f7cf9d24c4d25286
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6bb14936c5f39251cf2e0ca3d188e6636de15c3cd76fbabdb0c3f2b01db94cac2e567cf9f40e1d4e0313351bc9f8096ab97eb797702f1692988bc52f449deffd
|
|
7
|
+
data.tar.gz: 1dc2290b9d6194e097f9fb9755892c9419529aef60ca36b4052d5232cb4175713df8f1ee39695b92d03fb78e5faa7a22762afeb0f5768f53b04b9981f856de99
|
data/lib/nexpose/version.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
14
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rex
|