cms_scanner 0.0.41.6 → 0.0.41.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cms_scanner/target.rb +2 -2
- data/lib/cms_scanner/version.rb +1 -1
- data/lib/cms_scanner.rb +8 -2
- metadata +2 -3
- data/lib/cms_scanner/typhoeus/hydra.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ef5c1be437dab12929beff0312f7a646e817ec341b373afb34d045b57c290cf
|
4
|
+
data.tar.gz: f042c79b8da022d7da271fd3fd2a1aef14fc5226ebaf441ec7c45acc161508cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23e084bee6d6aa6c1114d2623a8605a1de9a335b4faaf1ef581901ea628918b13d2517f2bdbe20e0a362cfd4948856a69101d2312091bee6be918353ae79e9fc
|
7
|
+
data.tar.gz: af876b5704a2f8d30f929300cd10f6cfbe900737b0249b8f5921df3a36aa1769942a2c92f4797c5fce3eaa9f407cbb19a36562fa4376bd8ba3ee2ddb86b09d06
|
data/lib/cms_scanner/target.rb
CHANGED
@@ -27,12 +27,12 @@ module CMSScanner
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# Weteher or not vulnerabilities have been found.
|
30
|
-
# Used to set the exit code of the
|
30
|
+
# Used to set the exit code of the scanner
|
31
31
|
# and it should be overriden in the implementation
|
32
32
|
#
|
33
33
|
# @return [ Boolean ]
|
34
34
|
def vulnerable?
|
35
|
-
|
35
|
+
raise NotImplementedError
|
36
36
|
end
|
37
37
|
|
38
38
|
# @param [ String ] xpath
|
data/lib/cms_scanner/version.rb
CHANGED
data/lib/cms_scanner.rb
CHANGED
@@ -17,10 +17,8 @@ require 'timeout'
|
|
17
17
|
require 'xmlrpc/client'
|
18
18
|
# Monkey Patches
|
19
19
|
require 'cms_scanner/typhoeus/response' # Adds a Response#html using Nokogiri to parse the body
|
20
|
-
require 'cms_scanner/typhoeus/hydra' # https://github.com/typhoeus/typhoeus/issues/439
|
21
20
|
require 'cms_scanner/public_suffix/domain' # Adds a Domain#match method and logic, used in scope stuff
|
22
21
|
require 'cms_scanner/numeric' # Adds a Numeric#bytes_to_human
|
23
|
-
require 'cms_scanner/progressbar_null_output'
|
24
22
|
# Custom Libs
|
25
23
|
require 'cms_scanner/helper'
|
26
24
|
require 'cms_scanner/exit_code'
|
@@ -36,6 +34,7 @@ require 'cms_scanner/formatter'
|
|
36
34
|
require 'cms_scanner/references'
|
37
35
|
require 'cms_scanner/finders'
|
38
36
|
require 'cms_scanner/vulnerability'
|
37
|
+
require 'cms_scanner/progressbar_null_output'
|
39
38
|
|
40
39
|
# Module
|
41
40
|
module CMSScanner
|
@@ -168,7 +167,13 @@ module CMSScanner
|
|
168
167
|
|
169
168
|
# Hook to be able to have an exit code returned
|
170
169
|
# depending on the findings / errors
|
170
|
+
# :nocov:
|
171
171
|
def exit_hook
|
172
|
+
# Avoid hooking the exit when rspec is running, otherwise it will always return 0
|
173
|
+
# and Travis won't detect failed builds. Couldn't find a better way, even though
|
174
|
+
# some people managed to https://github.com/rspec/rspec-core/pull/410
|
175
|
+
return if defined?(RSpec)
|
176
|
+
|
172
177
|
at_exit do
|
173
178
|
exit(run_error_exit_code) if run_error
|
174
179
|
|
@@ -179,6 +184,7 @@ module CMSScanner
|
|
179
184
|
exit(NS::ExitCode::OK)
|
180
185
|
end
|
181
186
|
end
|
187
|
+
# :nocov:
|
182
188
|
|
183
189
|
# @return [ Integer ] The exit code related to the run_error
|
184
190
|
def run_error_exit_code
|
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.41.
|
4
|
+
version: 0.0.41.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WPScanTeam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -315,7 +315,6 @@ files:
|
|
315
315
|
- lib/cms_scanner/target/server/generic.rb
|
316
316
|
- lib/cms_scanner/target/server/iis.rb
|
317
317
|
- lib/cms_scanner/target/server/nginx.rb
|
318
|
-
- lib/cms_scanner/typhoeus/hydra.rb
|
319
318
|
- lib/cms_scanner/typhoeus/response.rb
|
320
319
|
- lib/cms_scanner/version.rb
|
321
320
|
- lib/cms_scanner/vulnerability.rb
|