Module: Nessus::Client::File

Included in:
Nessus::Client
Defined in:
lib/nessus/client/file.rb

Overview

Author:

Instance Method Summary collapse

Instance Method Details

#report_download(uuid) ⇒ String

GET /file/report/download

Parameters:

  • uuid (String)

    the unique ID (name) of the report to download

Returns:

  • (String)

    the specified report as an XML string



9
10
11
12
# File 'lib/nessus/client/file.rb', line 9

def report_download(uuid)
  resp = connection.get '/file/report/download', :report => uuid
  resp.body
end

#xslt_listArray<Hash>

GET /file/xslt/list

Returns:

  • (Array<Hash>)

    an object containing a list of XSLT transformations



17
18
19
20
# File 'lib/nessus/client/file.rb', line 17

def xslt_list
  response = post '/file/xslt/list'
  response['reply']['contents']
end