Sha256: 8ccd4bd01f8931a5c69b96c1e12cc91612b7ced0dc8264e65df06959aa5b0f0d
Contents?: true
Size: 926 Bytes
Versions: 13
Compression:
Stored size: 926 Bytes
Contents
module WPScan module Finders module Plugins # Plugins finder from Dynamic Finder 'BodyPattern' class BodyPattern < WPScan::Finders::DynamicFinder::WpItems::Finder DEFAULT_CONFIDENCE = 30 # @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) return unless response.body =~ config['pattern'] Plugin.new( slug, target, opts.merge(found_by: found_by(klass), confidence: config['confidence'] || DEFAULT_CONFIDENCE) ) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems