Sha256: 275f7b87ebc163775904256add5304bb88e5a0a56718cd751e3ebe00fb6fdb73
Contents?: true
Size: 694 Bytes
Versions: 9
Compression:
Stored size: 694 Bytes
Contents
module WPScan module Finders module MainTheme # URLs In Homepage Finder class UrlsInHomepage < CMSScanner::Finders::Finder include WpItems::URLsInHomepage # @param [ Hash ] opts # # @return [ Array<Theme> ] def passive(opts = {}) found = [] names = items_from_links('themes', false) + items_from_codes('themes', false) names.each_with_object(Hash.new(0)) { |name, counts| counts[name] += 1 }.each do |name, occurences| found << WPScan::Theme.new(name, target, opts.merge(found_by: found_by, confidence: 2 * occurences)) end found end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems