Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions lib/nexpose/manage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,10 @@ def system_information
end

# Obtain the version information for each scan engine.
# Includes Product, Content, and Java versions.
# Includes dates and ids for Product and Content versions.
#
def engine_versions
info = console_command('version engines')
versions = []
engines = info.sub('VERSION INFORMATION\n', '').split(/\n\n/)
engines.each do |eng|
engdata = {}
eng.split(/\n/).each do |kv|
key, value = kv.split(/:\s*/)
key = key.sub('Local Engine ', '').sub('Remote Engine ', '')
engdata[key] = value
end
versions << engdata
end
versions
JSON.parse(AJAX.post(self, '/data/engines'))['records']
end

# Induce the application to retrieve required updates and restart
Expand Down