Class: WPScan::Finders::PluginVersion::Shareaholic::MetaTag
- Inherits:
-
CMSScanner::Finders::Finder
- Object
- CMSScanner::Finders::Finder
- WPScan::Finders::PluginVersion::Shareaholic::MetaTag
- Defined in:
- app/finders/plugin_version/shareaholic/meta_tag.rb
Overview
Version from the meta
Instance Method Summary collapse
Instance Method Details
#passive(_opts = {}) ⇒ Version
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/finders/plugin_version/shareaholic/meta_tag.rb', line 10 def passive(_opts = {}) target.target.homepage_res.html.css('meta[name="shareaholic:wp_version"]').each do |node| next unless node['content'] =~ /\A([0-9\.]+)/i return WPScan::Version.new( Regexp.last_match(1), found_by: found_by, confidence: 50, interesting_entries: ["#{target.target.url}, Match: '#{node.to_s.strip}'"] ) end nil end |