Sha256: 4a7dc5602537d635004cbb973e39f17e31d03336779b528dc7ad874a2aaa6119
Contents?: true
Size: 909 Bytes
Versions: 13
Compression:
Stored size: 909 Bytes
Contents
module WPScan module Finders module DynamicFinder module Version # Version finder using Body Pattern method. Tipically used when the response is not # an HTML doc and Xpath can't be used class BodyPattern < WPScan::Finders::DynamicFinder::Version::Finder # @return [ Hash ] def self.child_class_constants @child_class_constants ||= super().merge(PATTERN: nil, CONFIDENCE: 60) end # @param [ Typhoeus::Response ] response # @param [ Hash ] opts # @return [ Version ] def find(response, _opts = {}) return unless response.body =~ self.class::PATTERN create_version( Regexp.last_match[:v], interesting_entries: ["#{response.effective_url}, Match: '#{Regexp.last_match}'"] ) end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems