Class: WPScan::Finders::Plugins::UrlsInHomepage
- Inherits:
-
CMSScanner::Finders::Finder
- Object
- CMSScanner::Finders::Finder
- WPScan::Finders::Plugins::UrlsInHomepage
- Includes:
- WpItems::UrlsInPage
- Defined in:
- app/finders/plugins/urls_in_homepage.rb
Overview
URLs In Homepage Finder Typically, the items detected from URLs like /wp-content/plugins/<slug>/
Direct Known Subclasses
Instance Method Summary collapse
Methods included from WpItems::UrlsInPage
#item_attribute_pattern, #item_code_pattern, #item_url_pattern, #items_from_codes, #items_from_links
Instance Method Details
#page_res ⇒ Typhoeus::Response
25 26 27 |
# File 'app/finders/plugins/urls_in_homepage.rb', line 25 def page_res @page_res ||= target.homepage_res end |
#passive(opts = {}) ⇒ Array<Plugin>
14 15 16 17 18 19 20 21 22 |
# File 'app/finders/plugins/urls_in_homepage.rb', line 14 def passive(opts = {}) found = [] (items_from_links('plugins') + items_from_codes('plugins')).uniq.sort.each do |slug| found << Model::Plugin.new(slug, target, opts.merge(found_by: found_by, confidence: 80)) end found end |