Module: WPScan::Finders::Finder::WpVersion::SmartURLChecker

Includes:
CMSScanner::Finders::Finder::SmartURLChecker
Included in:
WpVersion::AtomGenerator, WpVersion::RDFGenerator, WpVersion::RSSGenerator
Defined in:
lib/wpscan/finders/finder/wp_version/smart_url_checker.rb

Overview

SmartURLChecker specific for the WP Version

Instance Method Summary collapse

Instance Method Details

#create_version(number, opts = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# 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