ssh_scan 0.0.22 → 0.0.23

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: a161adf0202c747f948c9161675b567c6b715b4f
4
- data.tar.gz: 5533118de4e0f7ef6eb26bc60adb915ffbde9cae
3
+ metadata.gz: 48513bc99f2006e93467bc3ceedc6ac3e0796051
4
+ data.tar.gz: 6a97bf4458070837295a311580576144c5d6c50a
5
5
  SHA512:
6
- metadata.gz: 1c7f1fc49e71437001aa5e6cd8f8d63cadc127dde727d469e6d94002533a3f525eb69ce364d40dcf28cce05dcaf17dcb757bb51615a36f5b6497d6a289d6529d
7
- data.tar.gz: 654a3c0ec780433fadd09db4bb0eb77f18bc60dc088c28e6073a8876d2f3fe717dd568180347bcc31ce8834fd5e30c4b83a19cff8ba01979587f16f40aacc403
6
+ metadata.gz: 374b93e8d788baad6c862309e720a212a9f1bbf937e0052c5f6c874bdd8cca4146f6fb8486777b51627c78f53ba4b620207b0c5a020074a9c25f6643b87423da
7
+ data.tar.gz: 19def23166c22b188d09f2a21de66973bb2759c530d13e1a500eafc3834d7b1e7943802e47331edb62c3621a79b04e4f038067848c42b243839bb9fceb25e39b
data/bin/ssh_scan CHANGED
@@ -14,7 +14,7 @@ options = {
14
14
  "sockets" => [],
15
15
  "policy" => File.join(File.dirname(__FILE__),"../config/policies/mozilla_modern.yml"),
16
16
  "unit_test" => false,
17
- "timeout" => 2,
17
+ "timeout" => 5,
18
18
  "threads" => 5,
19
19
  "verbosity" => nil,
20
20
  "logger" => Logger.new(STDERR),
@@ -0,0 +1,5 @@
1
+ ---
2
+ 63.245.214.149:
3
+ - 17:97:3a:64:83:4e:4f:fd:5d:d1:f5:fc:d5:9a:fb:15
4
+ - 01:89:8a:f1:07:52:47:54:a5:58:99:77:23:0b:63:a5:d8:07:80:12
5
+ - 23:4e:2e:30:8e:bd:bb:ae:65:55:57:a9:df:70:8c:c6:ac:48:18:f7:a0:3b:1e:ba:aa:c2:f4:d4:e6:f4:4b:6a
@@ -174,7 +174,7 @@ module SSHScan
174
174
  end
175
175
 
176
176
  def duplicate_host_key_ips
177
- @duplicate_host_key_ips
177
+ @duplicate_host_key_ips.to_a
178
178
  end
179
179
 
180
180
  def auth_methods()
@@ -220,11 +220,11 @@ module SSHScan
220
220
  end
221
221
 
222
222
  def grade=(grade)
223
- @compliance_grade = grade
223
+ @compliance[:grade] = grade
224
224
  end
225
225
 
226
226
  def grade
227
- @compliance_grade
227
+ @compliance[:grade]
228
228
  end
229
229
 
230
230
  def to_hash
@@ -258,7 +258,7 @@ module SSHScan
258
258
  }
259
259
 
260
260
  if self.error?
261
- hashed_object.error = self.error
261
+ hashed_object["error"] = self.error
262
262
  end
263
263
 
264
264
  hashed_object
@@ -19,6 +19,7 @@ module SSHScan
19
19
  if port.nil?
20
20
  port = 22
21
21
  end
22
+
22
23
  timeout = opts["timeout"]
23
24
 
24
25
  result = SSHScan::Result.new()
@@ -68,11 +69,14 @@ module SSHScan
68
69
  client.connect()
69
70
  result.set_client_attributes(client)
70
71
  kex_result = client.get_kex_result()
71
- result.set_kex_result(kex_result)
72
+
73
+ unless kex_result.nil?
74
+ result.set_kex_result(kex_result)
75
+ end
72
76
 
73
77
  # Attempt to suppliment a hostname that wasn't provided
74
78
  result.hostname = target.resolve_ptr
75
-
79
+
76
80
  result.error = client.error if client.error?
77
81
  end
78
82
 
@@ -228,8 +232,7 @@ module SSHScan
228
232
  result.set_compliance = policy_mgr.compliance_results
229
233
 
230
234
  if result.compliance_policy
231
- grader = SSHScan::Grader.new(result)
232
- result.grade = grader.grade
235
+ result.grade = SSHScan::Grader.new(result).grade
233
236
  end
234
237
  end
235
238
  end
@@ -1,3 +1,3 @@
1
1
  module SSHScan
2
- VERSION = '0.0.22'
2
+ VERSION = '0.0.23'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssh_scan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Claudius
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2017-06-08 00:00:00.000000000 Z
15
+ date: 2017-06-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bindata
@@ -158,6 +158,7 @@ files:
158
158
  - config/policies/mozilla_intermediate.yml
159
159
  - config/policies/mozilla_modern.yml
160
160
  - data/README
161
+ - data/fingerprints.yml
161
162
  - data/ssh-badkeys/LICENSE
162
163
  - data/ssh-badkeys/README.md
163
164
  - data/ssh-badkeys/authorized/array-networks-vapv-vxag.key