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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a533f0fb3e5546f5453e8aa849e6319e89018da
4
- data.tar.gz: 1277467584f2809bc0e6bf7c7e39ea2bd9d45a02
3
+ metadata.gz: f9c7cc82f97bb41e9511510804901b7074ecbc7b
4
+ data.tar.gz: bb9749ae8ef38d8fb9bb15a3788fab1398fb9cd1
5
5
  SHA512:
6
- metadata.gz: 3f0e8efa6ec04d54c5cdfebc3b826f4a12a5bd74142101724f829ecc81fcce510101eb3bc498e886435b49aaaa4cb565666ce6967c3b291e382178bc4086cd80
7
- data.tar.gz: 0cfe6cb0c6c3e3316511312d48f5cbfc3d97bc869e27870b5174fe95fa62be24d853d1cdd232abcf590235bb8a2151e4d527e7c983d341c0c6074b7000e2c01e
6
+ metadata.gz: abbb3b5438518bc4ed2616358ebfd5a5cfc0d301c8ef62ef02a8d8ce811629fa7360a15abdb0d182fe194a04487afb146a023f68499f585c8ffb8a434406dd81
7
+ data.tar.gz: 917e3463fc70d4edde23e066fdb4ad0cadd469ac4159c85aac905dd70178524d4358569b05ca3685ab19b487ecd6e87bc5cf36c53adba9b9f42d99bfaea7de33
data/.travis.yml CHANGED
@@ -17,9 +17,6 @@ matrix:
17
17
  - rvm: 2.3.0
18
18
  env:
19
19
  - LABEL=unit_tests
20
- - rvm: 2.2.0
21
- env:
22
- - LABEL=unit_tests
23
20
  - rvm: 2.3.0
24
21
  env:
25
22
  - LABEL=gem_integration_tests
@@ -1,2 +1,5 @@
1
1
  ---
2
- 128.65.210.21: []
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
@@ -120,7 +120,22 @@ module SSHScan
120
120
  # Figure out what rsa or dsa fingerprints exist
121
121
  fingerprints = {}
122
122
 
123
- host_keys = `ssh-keyscan -t rsa,dsa #{target} 2>/dev/null`.split
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
@@ -1,3 +1,3 @@
1
1
  module SSHScan
2
- VERSION = '0.0.27'
2
+ VERSION = '0.0.28'
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.27
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-08-25 00:00:00.000000000 Z
15
+ date: 2017-09-06 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bindata