Updates rubocop
This commit is contained in:
@@ -5,16 +5,16 @@ module WPScan
|
|||||||
class PluginsThresholdReached < Standard
|
class PluginsThresholdReached < Standard
|
||||||
def to_s
|
def to_s
|
||||||
"The number of plugins detected reached the threshold of #{ParsedCli.plugins_threshold} " \
|
"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 ' \
|
'which might indicate False Positive. It would be recommended to use the --exclude-content-based ' \
|
||||||
'option to ignore the bad responses.'
|
'option to ignore the bad responses.'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ThemesThresholdReached < Standard
|
class ThemesThresholdReached < Standard
|
||||||
def to_s
|
def to_s
|
||||||
"The number of themes detected reached the threshold of #{ParsedCli.themes_threshold} " \
|
"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 ' \
|
'which might indicate False Positive. It would be recommended to use the --exclude-content-based ' \
|
||||||
'option to ignore the bad responses.'
|
'option to ignore the bad responses.'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ module WPScan
|
|||||||
class WpContentDirNotDetected < Standard
|
class WpContentDirNotDetected < Standard
|
||||||
def to_s
|
def to_s
|
||||||
'Unable to identify the wp-content dir, please supply it with --wp-content-dir,' \
|
'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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ describe WPScan::Finders::Passwords::WpLogin do
|
|||||||
context 'when multiple cookies set' do
|
context 'when multiple cookies set' do
|
||||||
let(:headers) do
|
let(:headers) do
|
||||||
"Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/\r\n" \
|
"Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/\r\n" \
|
||||||
'Set-Cookie: something=value; path=/'
|
'Set-Cookie: something=value; path=/'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns false' do
|
it 'returns false' do
|
||||||
@@ -47,9 +47,9 @@ describe WPScan::Finders::Passwords::WpLogin do
|
|||||||
context 'when logged_in cookie set' do
|
context 'when logged_in cookie set' do
|
||||||
let(:headers) do
|
let(:headers) do
|
||||||
"Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/\r\r" \
|
"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-content/plugins; httponly\r\n" \
|
||||||
"Set-Cookie: wordpress_xxx=yyy; path=/wp-admin; 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_logged_in_xxx=yyy; path=/; httponly'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'returns false' do
|
it 'returns false' do
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|||||||
s.add_development_dependency 'rake', '~> 13.0'
|
s.add_development_dependency 'rake', '~> 13.0'
|
||||||
s.add_development_dependency 'rspec', '~> 3.10.0'
|
s.add_development_dependency 'rspec', '~> 3.10.0'
|
||||||
s.add_development_dependency 'rspec-its', '~> 1.3.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 'rubocop-performance', '~> 1.11.0'
|
||||||
s.add_development_dependency 'simplecov', '~> 0.21.0'
|
s.add_development_dependency 'simplecov', '~> 0.21.0'
|
||||||
s.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
|
s.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
|
||||||
|
|||||||
Reference in New Issue
Block a user