Class: WPScan::Finders::MainTheme::UrlsInHomepage
- Includes:
- WpItems::UrlsInPage
- Defined in:
- app/finders/main_theme/urls_in_homepage.rb
Overview
URLs In Homepage Finder
Direct Known Subclasses
Constant Summary
Constants inherited from Finder
Instance Attribute Summary
Attributes inherited from Finder
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_res ⇒ Typhoeus::Response
22 23 24 |
# File 'app/finders/main_theme/urls_in_homepage.rb', line 22 def page_res @page_res ||= target.homepage_res end |
#passive(opts = {}) ⇒ Array<Theme>
13 14 15 16 17 18 19 |
# File 'app/finders/main_theme/urls_in_homepage.rb', line 13 def passive(opts = {}) slugs = items_from_links('themes', uniq: false) + items_from_codes('themes', uniq: false) slugs.tally.map do |slug, occurences| Model::Theme.new(slug, target, opts.merge(found_by: found_by, confidence: 2 * occurences)) end end |