Home

Awesome

ruby-nikto

CI Gem Version

Description

A Ruby interface to nikto.

Features

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 {file:LICENSE.txt} for license information.