Sha256: 4ad062d8c4efdffbe191edd050b728875ee6a5373d6d37323818dc73e722feb5

Contents?: true

Size: 976 Bytes

Versions: 9

Compression:

Stored size: 976 Bytes

Contents

module WPScan
  module Finders
    module PluginVersion
      module Revslider
        # Version from the release_log.html
        #
        # See https://github.com/wpscanteam/wpscan/issues/817
        class ReleaseLog < CMSScanner::Finders::Finder
          # @param [ Hash ] opts
          #
          # @return [ Version ]
          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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wpscan-3.0.8 app/finders/plugin_version/revslider/release_log.rb
wpscan-3.0.7 app/finders/plugin_version/revslider/release_log.rb
wpscan-3.0.6 app/finders/plugin_version/revslider/release_log.rb
wpscan-3.0.5 app/finders/plugin_version/revslider/release_log.rb
wpscan-3.0.4 app/finders/plugin_version/revslider/release_log.rb
wpscan-3.0.3 app/finders/plugin_version/revslider/release_log.rb
wpscan-3.0.2 app/finders/plugin_version/revslider/release_log.rb
wpscan-3.0.1 app/finders/plugin_version/revslider/release_log.rb
wpscan-3.0 app/finders/plugin_version/revslider/release_log.rb