Sha256: d29a7b7a799e2fabc13d0e47d9f8162eff281ec06a451ec7a928354abfbb530d

Contents?: true

Size: 813 Bytes

Versions: 43

Compression:

Stored size: 813 Bytes

Contents

# frozen_string_literal: true

require_relative 'plugin_version/readme'

module WPScan
  module Finders
    module PluginVersion
      # Plugin Version Finder
      class Base
        include CMSScanner::Finders::UniqueFinder

        # @param [ Model::Plugin ] plugin
        def initialize(plugin)
          finders << PluginVersion::Readme.new(plugin)

          create_and_load_dynamic_versions_finders(plugin)
        end

        # Create the dynamic version finders related to the plugin and register them
        #
        # @param [ Model::Plugin ] plugin
        def create_and_load_dynamic_versions_finders(plugin)
          DB::DynamicFinders::Plugin.create_versions_finders(plugin.slug).each do |finder|
            finders << finder.new(plugin)
          end
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
wpscan-3.8.27 app/finders/plugin_version.rb
wpscan-3.8.26 app/finders/plugin_version.rb
wpscan-3.8.25 app/finders/plugin_version.rb
wpscan-3.8.24 app/finders/plugin_version.rb
wpscan-3.8.22 app/finders/plugin_version.rb
wpscan-3.8.21 app/finders/plugin_version.rb
wpscan-3.8.20 app/finders/plugin_version.rb
wpscan-3.8.19 app/finders/plugin_version.rb
wpscan-3.8.18 app/finders/plugin_version.rb
wpscan-3.8.17 app/finders/plugin_version.rb
wpscan-3.8.16 app/finders/plugin_version.rb
wpscan-3.8.15 app/finders/plugin_version.rb
wpscan-3.8.14 app/finders/plugin_version.rb
wpscan-3.8.13 app/finders/plugin_version.rb
wpscan-3.8.12 app/finders/plugin_version.rb
wpscan-3.8.11 app/finders/plugin_version.rb
wpscan-3.8.10 app/finders/plugin_version.rb
wpscan-3.8.9 app/finders/plugin_version.rb
wpscan-3.8.8 app/finders/plugin_version.rb
wpscan-3.8.7 app/finders/plugin_version.rb