Sha256: 42c5eaed845c4ff19ebbfd17d744ec0dac5d589bc238b7c5e91763ed62326e94
Contents?: true
Size: 1.65 KB
Versions: 1
Compression:
Stored size: 1.65 KB
Contents
# 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-nikto-0.1.0 | README.md |