Sha256: 7272a159c4135703d28e2c0bdd3fb333e84b5b0fd4388e53038f8e7eedd54b23
Contents?: true
Size: 697 Bytes
Versions: 14
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true module WPScan module Finders module Plugins # URLs In Homepage Finder # Typically, the items detected from URLs like # /wp-content/plugins/<slug>/ class UrlsInHomepage < CMSScanner::Finders::Finder include WpItems::URLsInHomepage # @param [ Hash ] opts # # @return [ Array<Plugin> ] 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 end end end end
Version data entries
14 entries across 14 versions & 1 rubygems