Sha256: 8a8f5c5bd17dc05f86703b438e226fdcead2390abf65c62d9f3ea9b48d3df493
Contents?: true
Size: 742 Bytes
Versions: 9
Compression:
Stored size: 742 Bytes
Contents
module WPScan module Finders module PluginVersion module W3TotalCache # Version from Headers class Headers < CMSScanner::Finders::Finder PATTERN = %r{W3 Total Cache/([0-9.]+)}i # @param [ Hash ] opts # # @return [ Version ] def passive(_opts = {}) headers = target.target.headers return unless headers && headers['X-Powered-By'].to_s =~ PATTERN WPScan::Version.new( Regexp.last_match[1], found_by: found_by, confidence: 80, interesting_entries: ["#{target.target.url}, Match: '#{Regexp.last_match}'"] ) end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems