Sha256: dcce91c93e956f9efd626b3a89f7eabdd251ec4b773e7c905d1c7784073eb71d

Contents?: true

Size: 804 Bytes

Versions: 36

Compression:

Stored size: 804 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::UrlsInPage

        # @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

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

Version data entries

36 entries across 36 versions & 1 rubygems

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