Class: WPScan::Finders::PluginVersion::W3TotalCache::Headers
- Inherits:
-
CMSScanner::Finders::Finder
- Object
- CMSScanner::Finders::Finder
- WPScan::Finders::PluginVersion::W3TotalCache::Headers
- Defined in:
- app/finders/plugin_version/w3_total_cache/headers.rb
Overview
Version from Headers
Constant Summary collapse
- PATTERN =
%r{W3 Total Cache/([0-9.]+)}i
Instance Method Summary collapse
Instance Method Details
#passive(_opts = {}) ⇒ Version
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/finders/plugin_version/w3_total_cache/headers.rb', line 12 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 |