From 470fbb1ff3566433dfee37b95f18d42e8bca9de7 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Tue, 12 Jan 2021 14:17:38 +0100 Subject: [PATCH] Updates CMSScanner dep, fixes #1592 & #1594 --- app/controllers/core.rb | 4 ++-- wpscan.gemspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/core.rb b/app/controllers/core.rb index ea08a6b5..d61b6641 100644 --- a/app/controllers/core.rb +++ b/app/controllers/core.rb @@ -8,13 +8,13 @@ module WPScan def cli_options [OptURL.new(['--url URL', 'The URL of the blog to scan'], 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'], choices: %w[apache iis nginx], normalize: %i[downcase to_sym], 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']) ] end diff --git a/wpscan.gemspec b/wpscan.gemspec index e2b90a90..9abdee8b 100644 --- a/wpscan.gemspec +++ b/wpscan.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |s| s.executables = ['wpscan'] 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 'memory_profiler', '~> 1.0.0'