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 +4 -4
- data/bin/ssh_scan +1 -1
- data/data/fingerprints.yml +5 -0
- data/lib/ssh_scan/result.rb +4 -4
- data/lib/ssh_scan/scan_engine.rb +7 -4
- data/lib/ssh_scan/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48513bc99f2006e93467bc3ceedc6ac3e0796051
|
4
|
+
data.tar.gz: 6a97bf4458070837295a311580576144c5d6c50a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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" =>
|
17
|
+
"timeout" => 5,
|
18
18
|
"threads" => 5,
|
19
19
|
"verbosity" => nil,
|
20
20
|
"logger" => Logger.new(STDERR),
|
data/lib/ssh_scan/result.rb
CHANGED
@@ -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
|
-
@
|
223
|
+
@compliance[:grade] = grade
|
224
224
|
end
|
225
225
|
|
226
226
|
def grade
|
227
|
-
@
|
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
|
261
|
+
hashed_object["error"] = self.error
|
262
262
|
end
|
263
263
|
|
264
264
|
hashed_object
|
data/lib/ssh_scan/scan_engine.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
232
|
-
result.grade = grader.grade
|
235
|
+
result.grade = SSHScan::Grader.new(result).grade
|
233
236
|
end
|
234
237
|
end
|
235
238
|
end
|
data/lib/ssh_scan/version.rb
CHANGED
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.
|
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-
|
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
|