Sha256: 383ccb1963a77f7eb452ab625bd3ba8c237b6eb14839d451565050d0564f0679
Contents?: true
Size: 1.01 KB
Versions: 8
Compression:
Stored size: 1.01 KB
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'], 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: 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
8 entries across 8 versions & 1 rubygems