Sha256: 1361c1a597d906056d54b5718aae49b33b445ba9e2144343bd35e38806b4a919

Contents?: true

Size: 802 Bytes

Versions: 35

Compression:

Stored size: 802 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module Finders
    module MainTheme
      # From the WooFramework meta generators
      class WooFrameworkMetaGenerator < CMSScanner::Finders::Finder
        THEME_PATTERN     = %r{<meta name="generator" content="([^\s"]+)\s?([^"]+)?"\s+/?>}.freeze
        FRAMEWORK_PATTERN = %r{<meta name="generator" content="WooFramework\s?([^"]+)?"\s+/?>}.freeze
        PATTERN           = /#{THEME_PATTERN}\s+#{FRAMEWORK_PATTERN}/i.freeze

        def passive(opts = {})
          return unless target.homepage_res.body =~ PATTERN || target.error_404_res.body =~ PATTERN

          Model::Theme.new(
            Regexp.last_match[1],
            target,
            opts.merge(found_by: found_by, confidence: 80)
          )
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
wpscan-3.8.27 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.26 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.25 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.24 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.22 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.21 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.20 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.19 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.18 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.17 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.16 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.15 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.14 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.13 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.12 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.11 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.10 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.9 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.8 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.8.7 app/finders/main_theme/woo_framework_meta_generator.rb