diff --git a/lib/wpscan/errors/enumeration.rb b/lib/wpscan/errors/enumeration.rb index 6b015883..15ac038f 100644 --- a/lib/wpscan/errors/enumeration.rb +++ b/lib/wpscan/errors/enumeration.rb @@ -5,16 +5,16 @@ module WPScan class PluginsThresholdReached < Standard def to_s "The number of plugins detected reached the threshold of #{ParsedCli.plugins_threshold} " \ - 'which might indicate False Positive. It would be recommended to use the --exclude-content-based ' \ - 'option to ignore the bad responses.' + 'which might indicate False Positive. It would be recommended to use the --exclude-content-based ' \ + 'option to ignore the bad responses.' end end class ThemesThresholdReached < Standard def to_s "The number of themes detected reached the threshold of #{ParsedCli.themes_threshold} " \ - 'which might indicate False Positive. It would be recommended to use the --exclude-content-based ' \ - 'option to ignore the bad responses.' + 'which might indicate False Positive. It would be recommended to use the --exclude-content-based ' \ + 'option to ignore the bad responses.' end end end diff --git a/lib/wpscan/errors/wordpress.rb b/lib/wpscan/errors/wordpress.rb index 37403ec1..553e767a 100644 --- a/lib/wpscan/errors/wordpress.rb +++ b/lib/wpscan/errors/wordpress.rb @@ -26,7 +26,7 @@ module WPScan class WpContentDirNotDetected < Standard def to_s 'Unable to identify the wp-content dir, please supply it with --wp-content-dir,' \ - ' use the --scope option or make sure the --url value given is the correct one' + ' use the --scope option or make sure the --url value given is the correct one' end end diff --git a/spec/app/finders/passwords/wp_login_spec.rb b/spec/app/finders/passwords/wp_login_spec.rb index 9f460f71..c0e3c548 100644 --- a/spec/app/finders/passwords/wp_login_spec.rb +++ b/spec/app/finders/passwords/wp_login_spec.rb @@ -35,7 +35,7 @@ describe WPScan::Finders::Passwords::WpLogin do context 'when multiple cookies set' do let(:headers) do "Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/\r\n" \ - 'Set-Cookie: something=value; path=/' + 'Set-Cookie: something=value; path=/' end it 'returns false' do @@ -47,9 +47,9 @@ describe WPScan::Finders::Passwords::WpLogin do context 'when logged_in cookie set' do let(:headers) do "Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/\r\r" \ - "Set-Cookie: wordpress_xxx=yyy; path=/wp-content/plugins; httponly\r\n" \ - "Set-Cookie: wordpress_xxx=yyy; path=/wp-admin; httponly\r\n" \ - 'Set-Cookie: wordpress_logged_in_xxx=yyy; path=/; httponly' + "Set-Cookie: wordpress_xxx=yyy; path=/wp-content/plugins; httponly\r\n" \ + "Set-Cookie: wordpress_xxx=yyy; path=/wp-admin; httponly\r\n" \ + 'Set-Cookie: wordpress_logged_in_xxx=yyy; path=/; httponly' end it 'returns false' do diff --git a/wpscan.gemspec b/wpscan.gemspec index 6f513133..11a4cb28 100644 --- a/wpscan.gemspec +++ b/wpscan.gemspec @@ -27,7 +27,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'rake', '~> 13.0' s.add_development_dependency 'rspec', '~> 3.10.0' s.add_development_dependency 'rspec-its', '~> 1.3.0' - s.add_development_dependency 'rubocop', '~> 1.17.0' + s.add_development_dependency 'rubocop', '~> 1.18.3' s.add_development_dependency 'rubocop-performance', '~> 1.11.0' s.add_development_dependency 'simplecov', '~> 0.21.0' s.add_development_dependency 'simplecov-lcov', '~> 0.8.0'