Sha256: 529a0f49384aa279f3147d886a82af08ff9946ecffc6c3e7e5ac9d4005f399fa
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 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 WPScan::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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wpscan-3.5.4 | app/controllers/wp_version.rb |
wpscan-3.5.3 | app/controllers/wp_version.rb |
wpscan-3.5.2 | app/controllers/wp_version.rb |
wpscan-3.5.1 | app/controllers/wp_version.rb |