Sha256: 6a41cde4fb05108417e25318a820b33c3e7ff64911772021efdb7ec41cdce1f4
Contents?: true
Size: 871 Bytes
Versions: 5
Compression:
Stored size: 871 Bytes
Contents
# frozen_string_literal: true 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 # Force the Garbage Collector to run due to the above method being # quite heavy in objects allocation GC.start end def run enum = ParsedCli.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
5 entries across 5 versions & 1 rubygems