Class: WPScan::Finders::PluginVersion::Revslider::ReleaseLog

Inherits:
CMSScanner::Finders::Finder
  • Object
show all
Defined in:
app/finders/plugin_version/revslider/release_log.rb

Overview

Version from the release_log.html

See github.com/wpscanteam/wpscan/issues/817

Instance Method Summary collapse

Instance Method Details

#aggressive(_opts = {}) ⇒ Version

Parameters:

  • opts (Hash)

Returns:

  • (Version)


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'app/finders/plugin_version/revslider/release_log.rb', line 12

def aggressive(_opts = {})
  res = Browser.get(release_log_url)

  res.html.css('h3.version-number:first').each do |node|
    next unless node.text =~ /\AVersion ([0-9\.]+).*\z/i

    return WPScan::Version.new(
      Regexp.last_match[1],
      found_by: found_by,
      confidence: 90,
      interesting_entries: ["#{release_log_url}, Match: '#{Regexp.last_match}'"]
    )
  end
  nil
end

#release_log_urlObject



28
29
30
# File 'app/finders/plugin_version/revslider/release_log.rb', line 28

def release_log_url
  target.url('release_log.html')
end