module WPScan::Finders::Finder::WpVersion::SmartURLChecker

SmartURLChecker specific for the WP Version

Public Instance Methods

create_version(number, opts = {}) click to toggle source
# File lib/wpscan/finders/finder/wp_version/smart_url_checker.rb, line 11
def create_version(number, opts = {})
  Model::WpVersion.new(
    number,
    found_by: opts[:found_by] || found_by,
    confidence: opts[:confidence] || 80,
    interesting_entries: opts[:entries]
  )
rescue WPScan::Error::InvalidWordPressVersion
  nil # Invalid Version returned as nil and will be ignored by Finders
end