Sha256: 66ccdb5ce92f038b4f894b583b1f8f54b137c039d8126c57d94b2918fdd4c2ad

Contents?: true

Size: 718 Bytes

Versions: 35

Compression:

Stored size: 718 Bytes

Contents

# frozen_string_literal: true

module WPScan
  module Finders
    module Themes
      # URLs In Homepage Finder
      class UrlsInHomepage < CMSScanner::Finders::Finder
        include WpItems::UrlsInPage

        # @param [ Hash ] opts
        #
        # @return [ Array<Theme> ]
        def passive(opts = {})
          found = []

          (items_from_links('themes') + items_from_codes('themes')).uniq.sort.each do |slug|
            found << Model::Theme.new(slug, target, opts.merge(found_by: found_by, confidence: 80))
          end

          found
        end

        # @return [ Typhoeus::Response ]
        def page_res
          @page_res ||= target.homepage_res
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
wpscan-3.8.27 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.26 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.25 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.24 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.22 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.21 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.20 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.19 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.18 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.17 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.16 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.15 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.14 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.13 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.12 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.11 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.10 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.9 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.8 app/finders/themes/urls_in_homepage.rb
wpscan-3.8.7 app/finders/themes/urls_in_homepage.rb