Class: WPScan::DB::DynamicPluginFinders

Inherits:
DynamicFinders show all
Defined in:
lib/wpscan/db/dynamic_finders.rb

Overview

Dynamic Plugin Finders

Class Method Summary collapse

Methods inherited from DynamicFinders

db_file, finder_configs

Class Method Details

.commentsHash

Returns:

  • (Hash)


37
38
39
40
41
42
43
44
45
46
47
# File 'lib/wpscan/db/dynamic_finders.rb', line 37

def self.comments
  unless @comments
    @comments = finder_configs('Comments')

    @comments.each do |slug, config|
      @comments[slug]['pattern'] = Regexp.new(config['pattern'], Regexp::IGNORECASE)
    end
  end

  @comments
end

.db_dataHash

Returns:

  • (Hash)


32
33
34
# File 'lib/wpscan/db/dynamic_finders.rb', line 32

def self.db_data
  @db_data ||= super['plugins'] || {}
end

.urls_in_pageHash

Returns:

  • (Hash)


50
51
52
# File 'lib/wpscan/db/dynamic_finders.rb', line 50

def self.urls_in_page
  @urls_in_page ||= finder_configs('UrlsInPage')
end