Sha256: 944c44e864c83a57f943ce4ab57ace912418e296c146695131034e70c007ba44

Contents?: true

Size: 815 Bytes

Versions: 13

Compression:

Stored size: 815 Bytes

Contents

module WPScan
  module Finders
    module DynamicFinder
      module Version
        # To be used as a base when creating
        # a dynamic finder to find the version of a WP Item (such as theme/plugin)
        class Finder < Finders::DynamicFinder::Finder
          protected

          # @param [ String ] number
          # @param [ Hash ] finding_opts
          # @return [ WPScan::Version ]
          def create_version(number, finding_opts)
            WPScan::Version.new(number, version_finding_opts(finding_opts))
          end

          # @param [ Hash ] opts
          # @retutn [ Hash ]
          def version_finding_opts(opts)
            opts[:found_by]   ||= found_by
            opts[:confidence] ||= self.class::CONFIDENCE

            opts
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wpscan-3.4.5 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.4.4 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.4.3 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.4.2 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.4.1 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.4.0 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.3.3 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.3.2 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.3.1 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.3.0 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.2.1 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.2.0 lib/wpscan/finders/dynamic_finder/version/finder.rb
wpscan-3.1.0 lib/wpscan/finders/dynamic_finder/version/finder.rb