Path: blob/master/app/finders/plugins/urls_in_homepage.rb
485 views
# frozen_string_literal: true12module WPScan3module Finders4module Plugins5# URLs In Homepage Finder6# Typically, the items detected from URLs like /wp-content/plugins/<slug>/7class UrlsInHomepage < CMSScanner::Finders::Finder8include WpItems::UrlsInPage910# @param [ Hash ] opts11#12# @return [ Array<Plugin> ]13def passive(opts = {})14found = []1516(items_from_links('plugins') + items_from_codes('plugins')).uniq.sort.each do |slug|17found << Model::Plugin.new(slug, target, opts.merge(found_by: found_by, confidence: 80))18end1920found21end2223# @return [ Typhoeus::Response ]24def page_res25@page_res ||= target.homepage_res26end27end28end29end30end313233