Class: WPScan::Finders::ThemeVersion::WooFrameworkMetaGenerator

Inherits:
CMSScanner::Finders::Finder
  • Object
show all
Defined in:
app/finders/theme_version/woo_framework_meta_generator.rb

Overview

Theme Version Finder from the WooFramework generators

Instance Method Summary collapse

Instance Method Details

#passive(_opts = {}) ⇒ Version

Parameters:

  • opts (Hash)

Returns:

  • (Version)


11
12
13
14
15
16
17
# File 'app/finders/theme_version/woo_framework_meta_generator.rb', line 11

def passive(_opts = {})
  return unless target.blog.homepage_res.body =~ Finders::MainTheme::WooFrameworkMetaGenerator::PATTERN

  return unless Regexp.last_match[1] == target.slug

  Model::Version.new(Regexp.last_match[2], found_by: found_by, confidence: 80)
end