Class: WPScan::Finders::Themes::UrlsInHomepage

Inherits:
Finder
  • Object
show all
Includes:
WpItems::UrlsInPage
Defined in:
app/finders/themes/urls_in_homepage.rb

Overview

URLs In Homepage Finder

Direct Known Subclasses

UrlsIn404Page

Constant Summary

Constants inherited from Finder

Finder::DIRECT_ACCESS

Instance Attribute Summary

Attributes inherited from Finder

#progress_bar, #target

Instance Method Summary collapse

Methods included from WpItems::UrlsInPage

#item_attribute_pattern, #item_code_pattern, #item_url_pattern, #items_from_codes, #items_from_links

Methods inherited from Finder

#aggressive, #browser, #create_progress_bar, #found_by, #hydra, #initialize, #titleize

Constructor Details

This class inherits a constructor from WPScan::Finders::Finder

Instance Method Details

#page_resTyphoeus::Response

Returns:



20
21
22
# File 'app/finders/themes/urls_in_homepage.rb', line 20

def page_res
  @page_res ||= target.homepage_res
end

#passive(opts = {}) ⇒ Array<Theme>

Parameters:

  • opts (Hash) (defaults to: {})

Returns:

  • (Array<Theme>)


13
14
15
16
17
# File 'app/finders/themes/urls_in_homepage.rb', line 13

def passive(opts = {})
  (items_from_links('themes') + items_from_codes('themes')).uniq.sort.map do |slug|
    Model::Theme.new(slug, target, opts.merge(found_by: found_by, confidence: 80))
  end
end