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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 711e6c00c5f59acabe082d59b109ad5ef1ec9d96
4
- data.tar.gz: bdc437f144f754242846aca0b96123bb4bc38b93
3
+ metadata.gz: a0d7370e2c4c517fd39403ea4617af548a405797
4
+ data.tar.gz: 8593989ce1eda556d77f19f88affb1de4d350889
5
5
  SHA512:
6
- metadata.gz: 8baa71595737ccc2773ad1eb0d5624f546deacfc22285ae6b85ccac2c640719bec7b4445d230d3ece75b17fd3ccf926d9a8fa95625526932cc4fa2b710bfa6a4
7
- data.tar.gz: 9edda50bf8183d29b4b8d2abe6e79547f065b6a51e6940f95136d31b1580a3b67a0293bcc9b92a66bf6bdcb9982091d637ca42a7e0537258cbf32b9bd19a6f98
6
+ metadata.gz: 9f7f11009ba89617261125036f8039bde1982b347f8df5d13ffc465ed1850975cf999c5dbe0356c7cbcba6b13b03d4bad52a6bc33c4667877ab9a7768192c978
7
+ data.tar.gz: 8daf0b5410e3a5f62ee2b63c37f563ea27374bcc1f54f2fb23654ee182435b349ea27d4d90d6101bed83311b54a2357cf06aa448c5328c8ec8d560fc089ea262
@@ -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(output_banner = true)
17
- output('banner') if 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.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(file_path))
34
+ serializer.load(File.read(entry_path(key)))
37
35
  rescue StandardError
38
36
  nil
39
37
  end
@@ -50,6 +50,7 @@ module CMSScanner
50
50
  attr_reader :controller_name
51
51
 
52
52
  def initialize
53
+ # Can't put this at the top level of the class, due to the NS::
53
54
  extend NS::Formatter::InstanceMethods
54
55
  end
55
56
 
@@ -1,4 +1,4 @@
1
1
  # Version
2
2
  module CMSScanner
3
- VERSION = '0.0.38.2'.freeze
3
+ VERSION = '0.0.38.3'.freeze
4
4
  end
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.2
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: 2017-12-06 00:00:00.000000000 Z
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.51.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.51.0
208
+ version: 0.52.0
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: simplecov
211
211
  requirement: !ruby/object:Gem::Requirement