Sha256: 83425c1dbf41305655e128ff0e8aa4d24b6db44378ed62a9dcc12dffb445e704

Contents?: true

Size: 762 Bytes

Versions: 14

Compression:

Stored size: 762 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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
wpscan-3.7.3 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.7.2 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.7.1 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.7.0 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.6.3 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.6.2 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.6.1 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.6.0 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.5.5 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.5.4 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.5.3 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.5.2 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.5.1 app/finders/main_theme/woo_framework_meta_generator.rb
wpscan-3.5.0 app/finders/main_theme/woo_framework_meta_generator.rb