HELLO v3!!!
This commit is contained in:
27
app/controllers/enumeration.rb
Normal file
27
app/controllers/enumeration.rb
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user