Sha256: 0cd371c3cf002631bd25a0a67a6b4420325ec1efb16f195117651e9d0fb1cc8e
Contents?: true
Size: 783 Bytes
Versions: 3
Compression:
Stored size: 783 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}'"] ) end nil end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wpscan-3.0.2 | app/finders/wp_version/meta_generator.rb |
wpscan-3.0.1 | app/finders/wp_version/meta_generator.rb |
wpscan-3.0 | app/finders/wp_version/meta_generator.rb |