Path: blob/master/app/finders/plugins/config_parser.rb
485 views
# frozen_string_literal: true12module WPScan3module Finders4module Plugins5# Plugins finder from Dynamic Finder 'ConfigParser'6class ConfigParser < Finders::DynamicFinder::WpItems::Finder7DEFAULT_CONFIDENCE = 4089# @param [ Hash ] opts The options from the #passive, #aggressive methods10# @param [ Typhoeus::Response ] response11# @param [ String ] slug12# @param [ String ] klass13# @param [ Hash ] config The related dynamic finder config hash14#15# @return [ Plugin ] The detected plugin in the response, related to the config16def _process_response(_opts, _response, slug, klass, config)17#18# TODO. Currently not implemented, and not even loaded by the Finders, as this19# finder only has an aggressive method, which has been disabled (globally)20# when checking for plugins21#2223Model::Plugin.new(24slug,25target,26opts.merge(found_by: found_by(klass), confidence: config['confidence'] || DEFAULT_CONFIDENCE)27)28end29end30end31end32end333435