Sha256: cd50dce1f04d9b2eb48456d8a86e01b9d6fdd74ece963e87379b31d1876fbdfd
Contents?: true
Size: 809 Bytes
Versions: 2
Compression:
Stored size: 809 Bytes
Contents
module WPScan module Finders class Finder module PluginVersion # Plugin Version from the Comments in the homepage, used in dynamic PluginVersion finders class Comments < CMSScanner::Finders::Finder def passive(_opts = {}) target.target.comments_from_page(self.class::PATTERN) do |match| # Avoid nil version, i.e a pattern allowing both versionable and non # versionable string to be detected next unless match[1] return WPScan::Version.new( match[1], found_by: found_by, confidence: 80, interesting_entries: ["#{target.target.url}, Match: '#{match}'"] ) end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wpscan-3.0.1 | lib/wpscan/finders/finder/plugin_version/comments.rb |
wpscan-3.0 | lib/wpscan/finders/finder/plugin_version/comments.rb |