HELLO v3!!!
This commit is contained in:
27
app/controllers/main_theme.rb
Normal file
27
app/controllers/main_theme.rb
Normal file
@@ -0,0 +1,27 @@
|
||||
module WPScan
|
||||
module Controller
|
||||
# Main Theme Controller
|
||||
class MainTheme < CMSScanner::Controller::Base
|
||||
def cli_options
|
||||
[
|
||||
OptChoice.new(
|
||||
['--main-theme-detection MODE',
|
||||
'Use the supplied mode for the Main theme detection, instead of the global (--detection-mode) mode.'],
|
||||
choices: %w[mixed passive aggressive],
|
||||
normalize: :to_sym
|
||||
)
|
||||
]
|
||||
end
|
||||
|
||||
def run
|
||||
output(
|
||||
'theme',
|
||||
theme: target.main_theme(
|
||||
mode: parsed_options[:main_theme_detection] || parsed_options[:detection_mode]
|
||||
),
|
||||
verbose: parsed_options[:verbose]
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user