Sha256: 23fa5cc83d22096754af51f9501240e67ac6b6eb6f10ff678d984a6d0d0d0c88

Contents?: true

Size: 720 Bytes

Versions: 8

Compression:

Stored size: 720 Bytes

Contents

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, advanced: true
          )
        ]
      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

Version data entries

8 entries across 8 versions & 1 rubygems

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