A Ruby interface to nikto.
- Provides a Ruby interface for running the
niktoutility. - 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_detailsdo |scan_details|
puts"#{scan_details.site_name}"scan_details.each_itemdo |item|
puts" #{item.uri}"putsputs" #{item.description}"putsendendend- nikto >= 2.1.0
- command_mapper ~> 0.1
- nokogiri ~> 1.0
$ gem install ruby-niktogemspec.add_dependency'ruby-nikto','~> 0.1'gem'ruby-nikto','~> 0.1'Copyright (c) 2009-2021 Hal Brodigan
See {file:LICENSE.txt} for license information.