cms_scanner 0.0.38.2 → 0.0.38.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/core.rb +2 -3
- data/app/controllers/core/cli_options.rb +1 -0
- data/cms_scanner.gemspec +1 -1
- data/lib/cms_scanner/cache/file_store.rb +2 -4
- data/lib/cms_scanner/formatter.rb +1 -0
- data/lib/cms_scanner/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0d7370e2c4c517fd39403ea4617af548a405797
|
4
|
+
data.tar.gz: 8593989ce1eda556d77f19f88affb1de4d350889
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f7f11009ba89617261125036f8039bde1982b347f8df5d13ffc465ed1850975cf999c5dbe0356c7cbcba6b13b03d4bad52a6bc33c4667877ab9a7768192c978
|
7
|
+
data.tar.gz: 8daf0b5410e3a5f62ee2b63c37f563ea27374bcc1f54f2fb23654ee182435b349ea27d4d90d6101bed83311b54a2357cf06aa448c5328c8ec8d560fc089ea262
|
data/app/controllers/core.rb
CHANGED
@@ -13,11 +13,10 @@ module CMSScanner
|
|
13
13
|
Typhoeus::Config.cache.clean if parsed_options[:clear_cache]
|
14
14
|
end
|
15
15
|
|
16
|
-
def before_scan
|
17
|
-
output('banner')
|
16
|
+
def before_scan
|
17
|
+
output('banner') unless parsed_options[:no_banner]
|
18
18
|
|
19
19
|
setup_cache
|
20
|
-
|
21
20
|
check_target_availability
|
22
21
|
end
|
23
22
|
|
@@ -9,6 +9,7 @@ module CMSScanner
|
|
9
9
|
OptURL.new(['-u', '--url URL', 'The URL to scan'], required: true, default_protocol: 'http'),
|
10
10
|
OptBoolean.new(['--ignore-main-redirect', 'Ignore the main redirect if any and scan the target url']),
|
11
11
|
OptBoolean.new(%w[-v --verbose]),
|
12
|
+
OptBoolean.new(['--no-banner', 'Disable output of the banner']),
|
12
13
|
OptFilePath.new(['-o', '--output FILE', 'Output to FILE'], writable: true, exists: false),
|
13
14
|
OptChoice.new(['-f', '--format FORMAT',
|
14
15
|
'Output results in the format supplied'], choices: formats),
|
data/cms_scanner.gemspec
CHANGED
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
|
|
48
48
|
s.add_development_dependency 'rake', '~> 12.0'
|
49
49
|
s.add_development_dependency 'rspec', '~> 3.7.0'
|
50
50
|
s.add_development_dependency 'rspec-its', '~> 1.2.0'
|
51
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
51
|
+
s.add_development_dependency 'rubocop', '~> 0.52.0'
|
52
52
|
s.add_development_dependency 'simplecov', '~> 0.14.0' # Can't update to 0.15 as it breaks coveralls dep
|
53
53
|
s.add_development_dependency 'webmock', '~> 3.1.0'
|
54
54
|
end
|
@@ -10,7 +10,7 @@ module CMSScanner
|
|
10
10
|
# Marshal does not need any "require"
|
11
11
|
#
|
12
12
|
# @param [ String ] storage_path
|
13
|
-
# @param [ ] serializer
|
13
|
+
# @param [ Constant ] serializer
|
14
14
|
def initialize(storage_path, serializer = Marshal)
|
15
15
|
@storage_path = File.expand_path(storage_path)
|
16
16
|
@serializer = serializer
|
@@ -29,11 +29,9 @@ module CMSScanner
|
|
29
29
|
#
|
30
30
|
# @return [ Mixed ]
|
31
31
|
def read_entry(key)
|
32
|
-
file_path = entry_path(key)
|
33
|
-
|
34
32
|
return if expired_entry?(key)
|
35
33
|
|
36
|
-
serializer.load(File.read(
|
34
|
+
serializer.load(File.read(entry_path(key)))
|
37
35
|
rescue StandardError
|
38
36
|
nil
|
39
37
|
end
|
data/lib/cms_scanner/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cms_scanner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.38.
|
4
|
+
version: 0.0.38.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WPScanTeam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -198,14 +198,14 @@ dependencies:
|
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: 0.
|
201
|
+
version: 0.52.0
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: 0.
|
208
|
+
version: 0.52.0
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: simplecov
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|