ssh_scan 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +1 -8
- data/data/fingerprints.yml +4 -4
- data/lib/ssh_scan/client.rb +1 -2
- data/lib/ssh_scan/result.rb +2 -6
- 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: 7f982df7c0d64316e0203e9077176364282019f5
|
|
4
|
+
data.tar.gz: a1fa12c9549c55e7d8aa83ab04fbd6569340c08b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57b96260be86473b1a9dc3e1f7cb00bc97e2a91c030662b6dc24ea0deeb55dc01dcd0b84254c40f5e72fd965998c1686d5be05cb3c7a82a525f55968539c891a
|
|
7
|
+
data.tar.gz: 1ea7be3a1fddb6db396bd3f461c5b5fb5c78bea3aa9dbb35852d6bc2f7ed77d6e33fad7da17f61c729fa6def65952f98f67405509d5abc920322efb13d88ff49
|
data/.travis.yml
CHANGED
|
@@ -50,7 +50,7 @@ matrix:
|
|
|
50
50
|
script:
|
|
51
51
|
- docker build -t mozilla/ssh_scan .
|
|
52
52
|
- >
|
|
53
|
-
if [
|
|
53
|
+
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then \
|
|
54
54
|
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" ;\
|
|
55
55
|
docker push mozilla/ssh_scan:latest ;\
|
|
56
56
|
else \
|
data/README.md
CHANGED
|
@@ -96,14 +96,7 @@ If you would like to run ssh_scan as a service, please refer to [the ssh_scan_ap
|
|
|
96
96
|
|
|
97
97
|
## Rubies Supported
|
|
98
98
|
|
|
99
|
-
This project is integrated with [travis-ci](http://about.travis-ci.org/) and is regularly tested to work with
|
|
100
|
-
|
|
101
|
-
* [ruby-head](https://github.com/ruby/ruby)
|
|
102
|
-
* [2.3.0](https://github.com/ruby/ruby/tree/ruby_2_1)
|
|
103
|
-
* [2.2.0](https://github.com/ruby/ruby/tree/ruby_2_1)
|
|
104
|
-
* [2.1.3](https://github.com/ruby/ruby/tree/ruby_2_1)
|
|
105
|
-
* [2.1.0](https://github.com/ruby/ruby/tree/ruby_2_1)
|
|
106
|
-
* [2.0.0](https://github.com/ruby/ruby/tree/ruby_2_0_0)
|
|
99
|
+
This project is integrated with [travis-ci](http://about.travis-ci.org/) and is regularly tested to work with multiple rubies.
|
|
107
100
|
|
|
108
101
|
To checkout the current build status for these rubies, click [here](https://travis-ci.org/#!/mozilla/ssh_scan).
|
|
109
102
|
|
data/data/fingerprints.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
45.
|
|
3
|
-
-
|
|
4
|
-
-
|
|
5
|
-
-
|
|
2
|
+
45.33.31.58:
|
|
3
|
+
- de:e2:67:eb:fb:57:8e:8d:99:81:7a:e0:5e:ca:d8:31
|
|
4
|
+
- cf:1a:b5:99:49:52:95:1f:ad:c6:b1:73:37:a6:de:ee:8e:40:8c:3f
|
|
5
|
+
- 50:75:0c:b2:91:bd:0c:6c:07:33:5d:5f:fe:44:7c:f7:cf:04:cb:d6:30:4e:1d:bd:eb:4c:dd:81:12:ca:17:79
|
data/lib/ssh_scan/client.rb
CHANGED
|
@@ -44,6 +44,7 @@ module SSHScan
|
|
|
44
44
|
|
|
45
45
|
begin
|
|
46
46
|
@sock = Socket.tcp(@ip, @port, connect_timeout: @timeout)
|
|
47
|
+
@raw_server_banner = @sock.gets
|
|
47
48
|
rescue SocketError => e
|
|
48
49
|
@error = SSHScan::Error::ConnectionRefused.new(e.message)
|
|
49
50
|
@sock = nil
|
|
@@ -66,8 +67,6 @@ module SSHScan
|
|
|
66
67
|
@error = SSHScan::Error::ConnectionRefused.new(e.message)
|
|
67
68
|
@sock = nil
|
|
68
69
|
else
|
|
69
|
-
@raw_server_banner = @sock.gets
|
|
70
|
-
|
|
71
70
|
if @raw_server_banner.nil?
|
|
72
71
|
@error = SSHScan::Error::NoBanner.new(
|
|
73
72
|
"service did not respond with an SSH banner"
|
data/lib/ssh_scan/result.rb
CHANGED
|
@@ -142,12 +142,8 @@ module SSHScan
|
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
def scan_duration
|
|
145
|
-
if start_time.nil?
|
|
146
|
-
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if end_time.nil?
|
|
150
|
-
raise "Cannot calculate scan duration without end_time set"
|
|
145
|
+
if start_time.nil? || end_time.nil?
|
|
146
|
+
return nil
|
|
151
147
|
end
|
|
152
148
|
|
|
153
149
|
end_time - start_time
|
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.25
|
|
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-07-03 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: bindata
|