nexpose 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/nexpose/filter.rb +6 -1
- data/lib/nexpose/version.rb +1 -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: beab7077de1b13a74723424d85b0c1b92763091f
|
4
|
+
data.tar.gz: c662d6c50dff60831de0e8397001350215128624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8774a9048fbe64de1af8d0dd3fcefbf0a973208c2d3a7ebdc665b62bc2ca85a44575f799be46b545a2b03611e8c398c7a05a68f3b49f233c865504501463c56
|
7
|
+
data.tar.gz: 2d0eaa7f7648314556fba63dcaa8670cd241ac03c885871edcab4275a8ef1a0d9602fbef1dcedf3f33635d0c9352b0c8b7882080a4a2408699ba46d8d1475d8c
|
data/Gemfile.lock
CHANGED
data/lib/nexpose/filter.rb
CHANGED
@@ -375,7 +375,11 @@ module Nexpose
|
|
375
375
|
attr_reader :vuln_count
|
376
376
|
attr_reader :risk_score
|
377
377
|
|
378
|
+
# The first Site ID returned for this asset.
|
379
|
+
# Not recommended if Asset Linking feature is enabled.
|
378
380
|
attr_reader :site_id
|
381
|
+
# Array of Site IDs for the asset. Use when Asset Linking is enabled.
|
382
|
+
attr_reader :site_ids
|
379
383
|
attr_reader :last_scan
|
380
384
|
|
381
385
|
def initialize(json)
|
@@ -387,7 +391,8 @@ module Nexpose
|
|
387
391
|
@malware_count = json['malwareCount'].to_i
|
388
392
|
@vuln_count = json['vulnCount'].to_i
|
389
393
|
@risk_score = json['riskScore'].to_f
|
390
|
-
@
|
394
|
+
@site_ids = json['sitePermissions'].map { |site| site['siteID'] }
|
395
|
+
@site_id = @site_ids.first
|
391
396
|
@last_scan = Time.at(json['lastScanDate'].to_i / 1000)
|
392
397
|
end
|
393
398
|
end
|
data/lib/nexpose/version.rb
CHANGED
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: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HD Moore
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-
|
16
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rex
|