https://github.com/kost/nessus_rest-ruby
Communicate with Nessus Scanner (version 6+) over REST/JSON interface
https://github.com/kost/nessus_rest-ruby
Last synced: over 1 year ago
JSON representation
Communicate with Nessus Scanner (version 6+) over REST/JSON interface
- Host: GitHub
- URL: https://github.com/kost/nessus_rest-ruby
- Owner: kost
- License: mit
- Created: 2016-08-12T09:28:44.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T10:59:35.000Z (over 5 years ago)
- Last Synced: 2024-04-25T16:44:53.326Z (about 2 years ago)
- Language: Ruby
- Size: 15.6 KB
- Stars: 6
- Watchers: 3
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://travis-ci.org/kost/nessus_rest-ruby)
[](https://coveralls.io/r/kost/nessus_rest-ruby?branch=master)
# nessus_rest
Communicate with Nessus Scanner (version 6+) over REST/JSON interface
## Usage
```ruby
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')
```
## Installation
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
Requirements are quite standard Ruby libraries for HTTPS and JSON
parsing:
```ruby
require 'uri'
require 'net/https'
require 'json'
```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
### Todo
- [ ] Provide more examples
## Copyright
Copyright (c) 2016 Vlatko Kosturjak. See LICENSE.txt for
further details.
## Credits
Vlatko Kosturjak made initial Nessus XMLRPC library. Averagesecurityguy made
initial JSON REST patches. Vlatko did bugfixes, gemification and few features.