Sha256: c7f86abc90bb657c00e587568fc3231405fdff95a18e56b83b5d11fcdceaa322

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

# frozen_string_literal: true
#
# ronin-vulns - A Ruby library for blind vulnerability testing.
#
# Copyright (c) 2022-2024 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# ronin-vulns is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ronin-vulns 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with ronin-vulns.  If not, see <https://www.gnu.org/licenses/>.
#

module Ronin
  module Vulns
    #
    # Base class for all vulnerability classes.
    #
    # @abstract
    #
    class Vuln

      #
      # Returns the type or kind of vulnerability.
      #
      # @return [Symbol]
      #
      # @note
      #   This is used internally to map an vulnerability class to a printable
      #   type.
      #
      # @api private
      #
      # @abstract
      #
      def self.vuln_type
        raise(NotImplementedError,"#{self}.vuln_type was not implemented")
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-vulns-0.2.0 lib/ronin/vulns/vuln.rb
ronin-vulns-0.2.0.rc1 lib/ronin/vulns/vuln.rb