ruby-nikto

CI Gem Version

Description

A Ruby interface to nikto.

Features

  • Provides a Ruby interface for running the nikto utility.
  • Provides a parser for enumerating Nikto XML scan files.

Examples

Run Nikto from Ruby:

require 'nikto/command'

Nikto::Command.run(host: 'example.com', output: 'nikto.xml')

Parse Nikto XML scan files:

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

Install

$ gem install ruby-nikto

gemspec

gemspec.add_dependency 'ruby-nikto', '~> 0.1'

Gemfile

gem 'ruby-nikto', '~> 0.1'

License

Copyright (c) 2009-2021 Hal Brodigan

See LICENSE for license information.