From 898681ad030658f6397bc5b1f9380d94f0125fad Mon Sep 17 00:00:00 2001 From: Michael Huffman Date: Wed, 17 Jan 2018 08:04:32 -0800 Subject: [PATCH] Update vuln exceptions to use generally available API version --- lib/nexpose/vuln_exception.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nexpose/vuln_exception.rb b/lib/nexpose/vuln_exception.rb index fe9655ad..f164ee45 100644 --- a/lib/nexpose/vuln_exception.rb +++ b/lib/nexpose/vuln_exception.rb @@ -22,14 +22,14 @@ def list_vuln_exceptions(status = nil) url_size = 500 url_page = 0 - req = Nexpose::AJAX.get(self, "/api/experimental/vulnerability_exceptions?_size=#{url_size}&_page=#{url_page}") + req = Nexpose::AJAX.get(self, "/api/3/vulnerability_exceptions?size=#{url_size}&page=#{url_page}") data = JSON.parse(req, object_class: OpenStruct) ajax_data << data._resources if data._links.count > 1 loop do url_page += 1 - req = Nexpose::AJAX.get(self, "/api/experimental/vulnerability_exceptions?_size=#{url_size}&_page=#{url_page}") + req = Nexpose::AJAX.get(self, "/api/3/vulnerability_exceptions?size=#{url_size}&page=#{url_page}") data = JSON.parse(req, object_class: OpenStruct) ajax_data << data._resources links = data._links.select { |ll| ['self', 'last'].include?(ll.rel) }