Sha256: e460c9e916cbf371e3c93376ba7402f57db1cf1e5b369b7b06296391ad239dad

Contents?: true

Size: 710 Bytes

Versions: 10

Compression:

Stored size: 710 Bytes

Contents

require_relative 'enumeration/cli_options'
require_relative 'enumeration/enum_methods'

module WPScan
  module Controller
    # Enumeration Controller
    class Enumeration < CMSScanner::Controller::Base
      def before_scan
        DB::DynamicFinders::Plugin.create_versions_finders
        DB::DynamicFinders::Theme.create_versions_finders
      end

      def run
        enum = parsed_options[:enumerate] || {}

        enum_plugins if enum_plugins?(enum)
        enum_themes  if enum_themes?(enum)

        %i[timthumbs config_backups db_exports medias].each do |key|
          send("enum_#{key}".to_sym) if enum.key?(key)
        end

        enum_users if enum_users?(enum)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wpscan-3.4.5 app/controllers/enumeration.rb
wpscan-3.4.4 app/controllers/enumeration.rb
wpscan-3.4.3 app/controllers/enumeration.rb
wpscan-3.4.2 app/controllers/enumeration.rb
wpscan-3.4.1 app/controllers/enumeration.rb
wpscan-3.4.0 app/controllers/enumeration.rb
wpscan-3.3.3 app/controllers/enumeration.rb
wpscan-3.3.2 app/controllers/enumeration.rb
wpscan-3.3.1 app/controllers/enumeration.rb
wpscan-3.3.0 app/controllers/enumeration.rb