Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/postmodern/ruby-nikto
A Ruby interface to Nikto.
https://github.com/postmodern/ruby-nikto
command-mapper infosec nikto nikto-parser ruby
Last synced: 4 months ago
JSON representation
A Ruby interface to Nikto.
- Host: GitHub
- URL: https://github.com/postmodern/ruby-nikto
- Owner: postmodern
- License: mit
- Created: 2021-11-29T15:02:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-28T04:41:06.000Z (about 1 year ago)
- Last Synced: 2024-10-02T01:56:28.700Z (4 months ago)
- Topics: command-mapper, infosec, nikto, nikto-parser, ruby
- Language: Ruby
- Homepage:
- Size: 47.9 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ruby-nikto
[![CI](https://github.com/postmodern/ruby-nikto/actions/workflows/ruby.yml/badge.svg)](https://github.com/postmodern/ruby-nikto/actions/workflows/ruby.yml)
[![Gem Version](https://badge.fury.io/rb/ruby-nikto.svg)](https://badge.fury.io/rb/ruby-nikto)* [Source](https://github.com/sophsec/ruby-nikto)
* [Issues](https://github.com/sophsec/ruby-nikto/issues)## Description
A Ruby interface to [nikto].
## Features
* Provides a [Ruby interface][Nikto::Command] for running the `nikto` utility.
* Provides a [parser][Nikto::XML] for enumerating Nikto XML scan files.[Nikto::Command]: https://rubydoc.info/gems/ruby-nikto/Nikto/Command
[Nikto::XML]: https://rubydoc.info/gems/ruby-nikto/Nikto/XML## Examples
Run Nikto from Ruby:
```ruby
require 'nikto/command'
Nikto::Command.run(host: 'example.com', output: 'nikto.xml')
```Parse Nikto XML scan files:
```ruby
require 'nikto/xml'Nikto::XML.open('nikto.xml') do |xml|
xml.each_scan_details do |scan_details|
puts "#{scan_details.site_name}"scan_details.each_item do |item|
puts " #{item.uri}"
puts
puts " #{item.description}"
puts
end
end
end
```## Requirements
* [nikto] >= 2.1.0
* [command_mapper](http://github.com/postmodern/command_mapper.rb#readme) ~> 0.1
* [nokogiri](https://github.com/sparklemotion/nokogiri#readme) ~> 1.0## Install
```shell
$ gem install ruby-nikto
```### gemspec
```ruby
gemspec.add_dependency 'ruby-nikto', '~> 0.1'
```### Gemfile
```ruby
gem 'ruby-nikto', '~> 0.1'
```## License
Copyright (c) 2009-2021 Hal Brodigan
See {file:LICENSE.txt} for license information.
[nikto]: https://github.com/sullo/nikto#readme