Sha256: 0ab5d59277a67504ab7689f6f101a91aa00159cf1a7907613f9d7ba59fbc9c05

Contents?: true

Size: 1.01 KB

Versions: 45

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

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

      def before_scan
        DB::DynamicFinders::Wordpress.create_versions_finders
      end

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

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
wpscan-3.8.28 app/controllers/wp_version.rb
wpscan-3.8.27 app/controllers/wp_version.rb
wpscan-3.8.26 app/controllers/wp_version.rb
wpscan-3.8.25 app/controllers/wp_version.rb
wpscan-3.8.24 app/controllers/wp_version.rb
wpscan-3.8.22 app/controllers/wp_version.rb
wpscan-3.8.21 app/controllers/wp_version.rb
wpscan-3.8.20 app/controllers/wp_version.rb
wpscan-3.8.19 app/controllers/wp_version.rb
wpscan-3.8.18 app/controllers/wp_version.rb
wpscan-3.8.17 app/controllers/wp_version.rb
wpscan-3.8.16 app/controllers/wp_version.rb
wpscan-3.8.15 app/controllers/wp_version.rb
wpscan-3.8.14 app/controllers/wp_version.rb
wpscan-3.8.13 app/controllers/wp_version.rb
wpscan-3.8.12 app/controllers/wp_version.rb
wpscan-3.8.11 app/controllers/wp_version.rb
wpscan-3.8.10 app/controllers/wp_version.rb
wpscan-3.8.9 app/controllers/wp_version.rb
wpscan-3.8.8 app/controllers/wp_version.rb