ssh_scan 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -3
- data/data/fingerprints.yml +4 -1
- data/lib/ssh_scan/scan_engine.rb +16 -1
- data/lib/ssh_scan/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9c7cc82f97bb41e9511510804901b7074ecbc7b
|
4
|
+
data.tar.gz: bb9749ae8ef38d8fb9bb15a3788fab1398fb9cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abbb3b5438518bc4ed2616358ebfd5a5cfc0d301c8ef62ef02a8d8ce811629fa7360a15abdb0d182fe194a04487afb146a023f68499f585c8ffb8a434406dd81
|
7
|
+
data.tar.gz: 917e3463fc70d4edde23e066fdb4ad0cadd469ac4159c85aac905dd70178524d4358569b05ca3685ab19b487ecd6e87bc5cf36c53adba9b9f42d99bfaea7de33
|
data/.travis.yml
CHANGED
data/data/fingerprints.yml
CHANGED
data/lib/ssh_scan/scan_engine.rb
CHANGED
@@ -120,7 +120,22 @@ module SSHScan
|
|
120
120
|
# Figure out what rsa or dsa fingerprints exist
|
121
121
|
fingerprints = {}
|
122
122
|
|
123
|
-
|
123
|
+
output = ""
|
124
|
+
|
125
|
+
begin
|
126
|
+
Timeout::timeout(timeout) {
|
127
|
+
stdin, stdout, stderr, wait_thr = Open3.popen3('ssh-keyscan', '-t', 'rsa,dsa', target)
|
128
|
+
output = stdout.gets(nil)
|
129
|
+
stdout.close
|
130
|
+
stderr.gets(nil)
|
131
|
+
stderr.close
|
132
|
+
exit_code = wait_thr.value
|
133
|
+
}
|
134
|
+
rescue Timeout::Error
|
135
|
+
#nop
|
136
|
+
end
|
137
|
+
|
138
|
+
host_keys = output.split
|
124
139
|
host_keys_len = host_keys.length - 1
|
125
140
|
|
126
141
|
for i in 0..host_keys_len
|
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.28
|
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-
|
15
|
+
date: 2017-09-06 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bindata
|