A Ruby interface to nikto.
- Provides a Ruby interface for running the
nikto
utility. - Provides a parser for enumerating Nikto XML scan files.
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
- nikto >= 2.1.0
- command_mapper ~> 0.1
- nokogiri ~> 1.0
$ gem install ruby-nikto
gemspec.add_dependency 'ruby-nikto', '~> 0.1'
gem 'ruby-nikto', '~> 0.1'
Copyright (c) 2009-2021 Hal Brodigan
See {file:LICENSE.txt} for license information.