Sha256: 595abc72a64e2dd6adde76e3ebc159ac9dfccbc9146e4a63de0dffb4f721d4c9
Contents?: true
Size: 794 Bytes
Versions: 6
Compression:
Stored size: 794 Bytes
Contents
module WPScan module Finders module WpVersion # Meta Generator Version Finder class MetaGenerator < CMSScanner::Finders::Finder # @return [ WpVersion ] def passive(_opts = {}) target.homepage_res.html.css('meta[name="generator"]').each do |node| next unless node.attribute('content').to_s =~ /wordpress ([0-9\.]+)/i number = Regexp.last_match(1) next unless WPScan::WpVersion.valid?(number) return WPScan::WpVersion.new( number, found_by: 'Meta Generator (Passive detection)', confidence: 80, interesting_entries: ["#{target.url}, Match: '#{node.to_s.strip}'"] ) end nil end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems