Sha256: 59aea22b0a6f473e84290e26bf6ad1b3c361d91a954c0cc547f581b3122e4201
Contents?: true
Size: 829 Bytes
Versions: 9
Compression:
Stored size: 829 Bytes
Contents
module WPScan module Finders module Plugins # URLs In Homepage Finder 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 |name| found << Plugin.new(name, target, opts.merge(found_by: found_by, confidence: 80)) end DB::DynamicPluginFinders.urls_in_page.each do |name, config| next unless target.homepage_res.html.xpath(config['xpath']).any? found << Plugin.new(name, target, opts.merge(found_by: found_by, confidence: 100)) end found end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems