Sha256: a5c50732750a6b37c5d66da2d70c1453a97dc740c3e29404c0276c2d79ab83ba
Contents?: true
Size: 940 Bytes
Versions: 5
Compression:
Stored size: 940 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems