Updates CMSScanner dep, fixes #1592 & #1594

This commit is contained in:
erwanlr
2021-01-12 14:17:38 +01:00
parent 8c6234879e
commit 470fbb1ff3
2 changed files with 3 additions and 3 deletions

View File

@@ -8,13 +8,13 @@ module WPScan
def cli_options def cli_options
[OptURL.new(['--url URL', 'The URL of the blog to scan'], [OptURL.new(['--url URL', 'The URL of the blog to scan'],
required_unless: %i[update help hh version], default_protocol: 'http')] + required_unless: %i[update help hh version], default_protocol: 'http')] +
super.drop(1) + # delete the --url from CMSScanner super.drop(2) + # delete the --url and --force from CMSScanner
[ [
OptChoice.new(['--server SERVER', 'Force the supplied server module to be loaded'], OptChoice.new(['--server SERVER', 'Force the supplied server module to be loaded'],
choices: %w[apache iis nginx], choices: %w[apache iis nginx],
normalize: %i[downcase to_sym], normalize: %i[downcase to_sym],
advanced: true), advanced: true),
OptBoolean.new(['--force', 'Do not check if the target is running WordPress']), OptBoolean.new(['--force', 'Do not check if the target is running WordPress or returns a 403']),
OptBoolean.new(['--[no-]update', 'Whether or not to update the Database']) OptBoolean.new(['--[no-]update', 'Whether or not to update the Database'])
] ]
end end

View File

@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.executables = ['wpscan'] s.executables = ['wpscan']
s.require_paths = ['lib'] s.require_paths = ['lib']
s.add_dependency 'cms_scanner', '~> 0.12.2' s.add_dependency 'cms_scanner', '~> 0.13.0'
s.add_development_dependency 'bundler', '>= 1.6' s.add_development_dependency 'bundler', '>= 1.6'
s.add_development_dependency 'memory_profiler', '~> 1.0.0' s.add_development_dependency 'memory_profiler', '~> 1.0.0'