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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97718b1d0d16bf0e2ad6e438aa6f42d3f9819608
4
- data.tar.gz: 7b14f541974dc33fecea2bf23165bc4357505cc9
3
+ metadata.gz: beab7077de1b13a74723424d85b0c1b92763091f
4
+ data.tar.gz: c662d6c50dff60831de0e8397001350215128624
5
5
  SHA512:
6
- metadata.gz: fdf329312d95a5a88ae2f468ed8f40632352e8e1ddffd65e2e4a37c1a501ddf0460b92a49136cbcf6385004ac6ff0a568cfa8b7414d3047be1a16d7343481319
7
- data.tar.gz: 91353294a3b338454116b731471de961abeb215956519688e6ed4f531ee18bd14dc14b024b7868b31c245a13db1d77983a6bd42a06619ad1b4062ad3c36332f7
6
+ metadata.gz: e8774a9048fbe64de1af8d0dd3fcefbf0a973208c2d3a7ebdc665b62bc2ca85a44575f799be46b545a2b03611e8c398c7a05a68f3b49f233c865504501463c56
7
+ data.tar.gz: 2d0eaa7f7648314556fba63dcaa8670cd241ac03c885871edcab4275a8ef1a0d9602fbef1dcedf3f33635d0c9352b0c8b7882080a4a2408699ba46d8d1475d8c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexpose (1.2.0)
4
+ nexpose (1.3.0)
5
5
  rex (~> 2.0, >= 2.0.8)
6
6
 
7
7
  GEM
@@ -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
- @site_id = json['siteID']
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
@@ -1,4 +1,4 @@
1
1
  module Nexpose
2
2
  # The latest version of the Nexpose gem
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.0'
4
4
  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: 1.2.0
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-06-24 00:00:00.000000000 Z
16
+ date: 2015-07-07 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rex