yawast 0.6.0.beta3 → 0.6.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +3 -12
- data/CHANGELOG.md +2 -0
- data/README.md +25 -524
- data/bin/yawast +0 -11
- data/lib/scanner/plugins/ssl/ssl_labs/analyze.rb +34 -0
- data/lib/scanner/plugins/ssl/ssl_labs/info.rb +33 -0
- data/lib/scanner/ssl_labs.rb +185 -163
- data/lib/shared/http.rb +5 -5
- data/lib/version.rb +1 -1
- data/test/data/ssl_labs_analyze_data.json +6458 -0
- data/test/data/ssl_labs_analyze_start.json +11 -0
- data/test/data/ssl_labs_info.json +10 -0
- data/test/test_internalssl.rb +2 -2
- data/test/test_shared_http.rb +1 -1
- data/test/test_ssl_labs_analyze.rb +48 -0
- data/test/test_ssl_labs_info.rb +20 -0
- data/yawast.gemspec +0 -1
- metadata +14 -18
- data/lib/commands/cert.rb +0 -10
- data/lib/scanner/cert.rb +0 -99
data/lib/shared/http.rb
CHANGED
@@ -21,13 +21,13 @@ module Yawast
|
|
21
21
|
begin
|
22
22
|
req = get_http(uri)
|
23
23
|
req.use_ssl = uri.scheme == 'https'
|
24
|
-
req.head(uri
|
24
|
+
req.head(uri, get_headers)
|
25
25
|
rescue
|
26
26
|
#if we get here, the HEAD failed - but GET may work
|
27
27
|
#so we silently fail back to using GET instead
|
28
28
|
req = get_http(uri)
|
29
29
|
req.use_ssl = uri.scheme == 'https'
|
30
|
-
res = req.request_get(uri
|
30
|
+
res = req.request_get(uri, get_headers)
|
31
31
|
res
|
32
32
|
end
|
33
33
|
end
|
@@ -38,7 +38,7 @@ module Yawast
|
|
38
38
|
begin
|
39
39
|
req = get_http(uri)
|
40
40
|
req.use_ssl = uri.scheme == 'https'
|
41
|
-
res = req.request_get(uri
|
41
|
+
res = req.request_get(uri, get_headers(headers))
|
42
42
|
body = res.read_body
|
43
43
|
rescue
|
44
44
|
#do nothing for now
|
@@ -51,7 +51,7 @@ module Yawast
|
|
51
51
|
begin
|
52
52
|
req = get_http(uri)
|
53
53
|
req.use_ssl = uri.scheme == 'https'
|
54
|
-
res = req.request_put(uri
|
54
|
+
res = req.request_put(uri, body, get_headers(headers))
|
55
55
|
rescue
|
56
56
|
#do nothing for now
|
57
57
|
end
|
@@ -62,7 +62,7 @@ module Yawast
|
|
62
62
|
def self.get_status_code(uri)
|
63
63
|
req = get_http(uri)
|
64
64
|
req.use_ssl = uri.scheme == 'https'
|
65
|
-
res = req.head(uri
|
65
|
+
res = req.head(uri, get_headers)
|
66
66
|
res.code
|
67
67
|
end
|
68
68
|
|
data/lib/version.rb
CHANGED