Sha256: 57b3615cd8c55bd487708ee07c16ffd8357d3a6ad01ad2d2d03f95eec70a9cad

Contents?: true

Size: 889 Bytes

Versions: 5

Compression:

Stored size: 889 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module Finders
    module Plugins
      # Plugins finder from Dynamic Finder 'QueryParameter'
      class QueryParameter < WPScan::Finders::DynamicFinder::WpItems::Finder
        DEFAULT_CONFIDENCE = 10

        def passive(_opts = {})
          # Handled by UrlsInHomePage, so no need to check this twice
        end

        # @param [ Hash ] opts The options from the #passive, #aggressive methods
        # @param [ Typhoeus::Response ] response
        # @param [ String ] slug
        # @param [ String ] klass
        # @param [ Hash ] config The related dynamic finder config hash
        #
        # @return [ Plugin ] The detected plugin in the response, related to the config
        def process_response(opts, response, slug, klass, config)
          # TODO: when a real case will be found
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wpscan-3.5.4 app/finders/plugins/query_parameter.rb
wpscan-3.5.3 app/finders/plugins/query_parameter.rb
wpscan-3.5.2 app/finders/plugins/query_parameter.rb
wpscan-3.5.1 app/finders/plugins/query_parameter.rb
wpscan-3.5.0 app/finders/plugins/query_parameter.rb