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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ee00b0dd16c5757e3c47fe54552cc71b6383ca1
4
- data.tar.gz: 4d9b8fa44aafcf9d14d001c1111cd0110892a9ed
3
+ metadata.gz: eb30bb34dcfc9b363c082624d103be59ba54f94f
4
+ data.tar.gz: 4806dda835564e8c94f80fcc36de66606ab8d099
5
5
  SHA512:
6
- metadata.gz: 2d2b0c75852dd4f071284d5bfa34ed471982f35ff989bc9b6153a3a98e1d8ae907d0ddde518ace8b8a09bcbe6f2ddff20e2c8914cc9268ac0c143694a56037d7
7
- data.tar.gz: 28749dda54dda66abf1b0742181c5ef0c02645955e13bb67983cb04794f923b41f440babd4540562da169c55cc2184738d9d33ca33a62f83ad7b116ff90bcf74
6
+ metadata.gz: ab500b9085af692673b5a10d1b1b3c6ba854eacc264b3382e50016b9230f76cb5306bb072c0ff0b1238265a711efd9e793e259d509de10e4185b14a97dca7de8
7
+ data.tar.gz: 5aa87fa9df999ecdd1d889f08b36e2bbc22d37688ecd66bd11d3a9077e7c4b8454ee7ec91137b628db69749723c5045f4e157cc3846e82736e3fe8f6c1475016
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 [Fixnum] the length of encryption key
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? Fixnum
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
@@ -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 [Fixnum] Port number to scan, default: 443
20
- # @param timeout [Fixnum] Timeout for connections, in seconds. default: 5
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
- return false unless @port.kind_of? Fixnum
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.
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Sslscan
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.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: 2016-11-21 00:00:00.000000000 Z
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