yawast 0.5.0 → 0.5.1.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/scanner/plugins/ssl/sweet32.rb +7 -2
- data/lib/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: 5bb360a70bc6929243c309cc30d5e1223e5ba86d
|
4
|
+
data.tar.gz: 0fc678e9891332a6d6b65cae26a28a6c3fa81086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 006853f4449868fe0a73f45a3293b513452ad7084b6bc9f868e77d914a99a562c9e1e2af22238b409b71550667b4d4d0d466df0a10e65a0f8001fb0d8932d95e
|
7
|
+
data.tar.gz: ce8e540b04dcfbefbbf05da3fe2ccca22df9a5f93bfa140a0c53cdc94e481baae7e803521eb891ce1372aae977172fc96f74803e736d96a9e7866024856476a5
|
data/CHANGELOG.md
CHANGED
@@ -50,6 +50,7 @@ module Yawast
|
|
50
50
|
|
51
51
|
#if we are here, that means that HEAD failed, but GET didn't, so we'll use GET from now on.
|
52
52
|
use_head = false
|
53
|
+
Yawast::Utilities.puts_error 'Error: HEAD request failed; using GET requests for SWEET32 check...'
|
53
54
|
end
|
54
55
|
end
|
55
56
|
|
@@ -72,9 +73,13 @@ module Yawast
|
|
72
73
|
end
|
73
74
|
end
|
74
75
|
|
76
|
+
#reset the req object
|
77
|
+
req = Yawast::Shared::Http.get_http(uri)
|
78
|
+
req.use_ssl = uri.scheme == 'https'
|
79
|
+
req.keep_alive_timeout = 600
|
80
|
+
|
75
81
|
req.start do |http|
|
76
82
|
#cache the number of hits
|
77
|
-
hits = http.instance_variable_get(:@ssl_context).session_cache_stats[:cache_hits]
|
78
83
|
10000.times do |i|
|
79
84
|
if use_head
|
80
85
|
http.head(uri.path, headers)
|
@@ -83,7 +88,7 @@ module Yawast
|
|
83
88
|
end
|
84
89
|
|
85
90
|
# hack to detect transparent disconnects
|
86
|
-
if http.instance_variable_get(:@ssl_context).session_cache_stats[:cache_hits] !=
|
91
|
+
if http.instance_variable_get(:@ssl_context).session_cache_stats[:cache_hits] != 0
|
87
92
|
raise 'TLS Reconnected'
|
88
93
|
end
|
89
94
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yawast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Caudill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ssllabs
|
@@ -225,9 +225,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
227
|
requirements:
|
228
|
-
- - "
|
228
|
+
- - ">"
|
229
229
|
- !ruby/object:Gem::Version
|
230
|
-
version:
|
230
|
+
version: 1.3.1
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project: yawast
|
233
233
|
rubygems_version: 2.4.8
|