Sha256: 1c4fd2be810593042a88503a5e17b622289c283583f888ca7740173fd40e4620
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
# frozen_string_literal: true module WPScan module Finders module Themes # Known Locations Themes Finder class KnownLocations < CMSScanner::Finders::Finder include CMSScanner::Finders::Finder::Enumerator # @return [ Array<Integer> ] def valid_response_codes @valid_response_codes ||= [200, 401, 403, 500].freeze end # @param [ Hash ] opts # @option opts [ String ] :list # # @return [ Array<Theme> ] def aggressive(opts = {}) found = [] enumerate(target_urls(opts), opts.merge(check_full_response: true)) do |_res, slug| found << Model::Theme.new(slug, target, opts.merge(found_by: found_by, confidence: 80)) end found end # @param [ Hash ] opts # @option opts [ String ] :list # # @return [ Hash ] def target_urls(opts = {}) slugs = opts[:list] || DB::Themes.vulnerable_slugs urls = {} slugs.each do |slug| urls[target.theme_url(slug)] = slug end urls end def create_progress_bar(opts = {}) super(opts.merge(title: ' Checking Known Locations -')) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wpscan-3.5.5 | app/finders/themes/known_locations.rb |
wpscan-3.5.4 | app/finders/themes/known_locations.rb |
wpscan-3.5.3 | app/finders/themes/known_locations.rb |