Communicate with Nessus Scanner (version 6+) over REST/JSON interface
require 'nessus_rest'
n=NessusREST::Client.new ({
:url=>'https://localhost:8834',
:username=>'user',
:password=> 'password' })
qs=n.scan_quick_template('basic','name-of-scan','localhost')
scanid=qs['scan']['id']
n.scan_wait4finish(scanid)
n.report_download_file(scanid,'csv','myscanreport.csv')
Add this line to your application's Gemfile:
gem 'nessus_rest'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nessus_rest
Requirements are quite standard Ruby libraries for HTTPS and JSON parsing:
require 'uri'
require 'net/https'
require 'json'
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- Provide more examples
Copyright (c) 2016 Vlatko Kosturjak. See LICENSE.txt for further details.
Vlatko Kosturjak made initial Nessus XMLRPC library. Averagesecurityguy made initial JSON REST patches. Vlatko did bugfixes, gemification and few features.