rex-sslscan 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/sslscan/result.rb +2 -2
- data/lib/rex/sslscan/scanner.rb +3 -6
- data/lib/rex/sslscan/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb30bb34dcfc9b363c082624d103be59ba54f94f
|
4
|
+
data.tar.gz: 4806dda835564e8c94f80fcc36de66606ab8d099
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab500b9085af692673b5a10d1b1b3c6ba854eacc264b3382e50016b9230f76cb5306bb072c0ff0b1238265a711efd9e793e259d509de10e4185b14a97dca7de8
|
7
|
+
data.tar.gz: 5aa87fa9df999ecdd1d889f08b36e2bbc22d37688ecd66bd11d3a9077e7c4b8454ee7ec91137b628db69749723c5045f4e157cc3846e82736e3fe8f6c1475016
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rex/sslscan/result.rb
CHANGED
@@ -126,7 +126,7 @@ class Result
|
|
126
126
|
# Adds the details of a cipher test to the Result object.
|
127
127
|
# @param version [Symbol] the SSL Version
|
128
128
|
# @param cipher [String] the SSL cipher
|
129
|
-
# @param key_length [
|
129
|
+
# @param key_length [Integer] the length of encryption key
|
130
130
|
# @param status [Symbol] :accepted or :rejected
|
131
131
|
def add_cipher(version, cipher, key_length, status)
|
132
132
|
unless @supported_versions.include? version
|
@@ -136,7 +136,7 @@ class Result
|
|
136
136
|
|| @deprecated_weak_ciphers.include?(cipher)
|
137
137
|
raise ArgumentError, "Must be a valid SSL Cipher for #{version}!"
|
138
138
|
end
|
139
|
-
unless key_length.kind_of?
|
139
|
+
unless key_length.kind_of? Integer
|
140
140
|
raise ArgumentError, "Must supply a valid key length"
|
141
141
|
end
|
142
142
|
unless [:accepted, :rejected].include? status
|
data/lib/rex/sslscan/scanner.rb
CHANGED
@@ -16,8 +16,8 @@ class Scanner
|
|
16
16
|
|
17
17
|
# Initializes the scanner object
|
18
18
|
# @param host [String] IP address or hostname to scan
|
19
|
-
# @param port [
|
20
|
-
# @param timeout [
|
19
|
+
# @param port [Integer] Port number to scan, default: 443
|
20
|
+
# @param timeout [Integer] Timeout for connections, in seconds. default: 5
|
21
21
|
# @raise [StandardError] Raised when the configuration is invalid
|
22
22
|
def initialize(host,port = 443,context = {},timeout=5)
|
23
23
|
@host = host
|
@@ -42,10 +42,7 @@ class Scanner
|
|
42
42
|
rescue
|
43
43
|
return false
|
44
44
|
end
|
45
|
-
|
46
|
-
return false unless @port >= 0 and @port <= 65535
|
47
|
-
return false unless @timeout.kind_of? Fixnum
|
48
|
-
return true
|
45
|
+
@port.kind_of?(Integer) && @port >= 0 && @port <= 65535 && @timeout.kind_of?(Integer)
|
49
46
|
end
|
50
47
|
|
51
48
|
# Initiate the Scan against the target. Will test each cipher one at a time.
|
data/lib/rex/sslscan/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rex-sslscan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Maloney
|
@@ -88,7 +88,7 @@ cert_chain:
|
|
88
88
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
89
89
|
8mVuTXnyJOKRJA==
|
90
90
|
-----END CERTIFICATE-----
|
91
|
-
date:
|
91
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
92
92
|
dependencies:
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|