Sha256: a11f3fdc0c8ecb21938eb96ff1986681ab4d0543d76e48efca71ef99af013f9c

Contents?: true

Size: 1.62 KB

Versions: 3

Compression:

Stored size: 1.62 KB

Contents

#
#--
# Ronin Scanners - A Ruby library for Ronin that provides Ruby interfaces to
# various third-party security scanners.
#
# Copyright (c) 2008-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#++
#

require 'ronin/scanners/nikto/nikto_task'

require 'rprogram/program'

module Ronin
  module Scanners
    class Nikto < RProgram::Program
      
      name_program 'nikto'
      alias_program 'nikto.pl'

      #
      # Perform a Nikto scan using the given _options_ and _block_.
      # If a _block_ is given, it will be passed a newly created
      # NiktoTask object.
      #
      def self.scan(options={},&block)
        self.find.scan(options,&block)
      end

      #
      # Perform a Nikto scan using the given _options_ and _block_.
      # If a _block_ is given, it will be passed a newly created
      # NiktoTask object.
      #
      def scan(options={},&block)
        run_task(NiktoTask.new(options,&block))
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ronin-scanners-0.1.4 lib/ronin/scanners/nikto/nikto.rb
ronin-scanners-0.1.3 lib/ronin/scanners/nikto/nikto.rb
ronin-scanners-0.1.2 lib/ronin/scanners/nikto/nikto.rb