Class: WPScan::Finders::WpVersion::Base

Inherits:
Object
  • Object
show all
Includes:
CMSScanner::Finders::UniqueFinder
Defined in:
app/finders/wp_version.rb

Overview

Wp Version Finder

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ Base

Returns a new instance of Base.

Parameters:



29
30
31
32
33
34
35
36
# File 'app/finders/wp_version.rb', line 29

def initialize(target)
  (%w[RSSGenerator AtomGenerator RDFGenerator] +
   DB::DynamicFinders::Wordpress.versions_finders_configs.keys +
   %w[Readme UniqueFingerprinting]
  ).each do |finder_name|
    finders << WpVersion.const_get(finder_name.to_sym).new(target)
  end
end

Instance Method Details

#findersObject



38
39
40
# File 'app/finders/wp_version.rb', line 38

def finders
  @finders ||= Finders::WpVersionFinders.new
end