Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/app/finders/plugins/query_parameter.rb
485 views
1
# frozen_string_literal: true
2
3
module WPScan
4
module Finders
5
module Plugins
6
# Plugins finder from Dynamic Finder 'QueryParameter'
7
class QueryParameter < Finders::DynamicFinder::WpItems::Finder
8
DEFAULT_CONFIDENCE = 10
9
10
def passive(_opts = {})
11
# Handled by UrlsInHomePage, so no need to check this twice
12
end
13
14
# @param [ Hash ] opts The options from the #passive, #aggressive methods
15
# @param [ Typhoeus::Response ] response
16
# @param [ String ] slug
17
# @param [ String ] klass
18
# @param [ Hash ] config The related dynamic finder config hash
19
#
20
# @return [ Plugin ] The detected plugin in the response, related to the config
21
def process_response(opts, response, slug, klass, config)
22
# TODO: when a real case will be found
23
end
24
end
25
end
26
end
27
end
28
29