Sha256: 05bf094d8c61ea77af47baeebfa238f32700da6ca7c7b173bab6d0dcdf126320

Contents?: true

Size: 909 Bytes

Versions: 5

Compression:

Stored size: 909 Bytes

Contents

module WPScan
  module Controller
    # Wp Version Controller
    class WpVersion < CMSScanner::Controller::Base
      def cli_options
        [
          OptBoolean.new(['--wp-version-all', 'Check all the version locations']),
          OptChoice.new(
            ['--wp-version-detection MODE',
             'Use the supplied mode for the WordPress version detection, ' \
             'instead of the global (--detection-mode) mode.'],
            choices: %w[mixed passive aggressive],
            normalize: :to_sym
          )
        ]
      end

      def run
        output(
          'version',
          version: target.wp_version(
            mode: parsed_options[:wp_version_detection] || parsed_options[:detection_mode],
            confidence_threshold: parsed_options[:wp_version_all] ? 0 : 100,
            show_progression: user_interaction?
          )
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wpscan-3.0.8 app/controllers/wp_version.rb
wpscan-3.0.7 app/controllers/wp_version.rb
wpscan-3.0.6 app/controllers/wp_version.rb
wpscan-3.0.5 app/controllers/wp_version.rb
wpscan-3.0.4 app/controllers/wp_version.rb