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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1066cba29c8d997c6924ebc2155fa4ecc91d382c
4
- data.tar.gz: 10880af54befeb4d528e91e15e17d9827578734b
3
+ metadata.gz: 7f982df7c0d64316e0203e9077176364282019f5
4
+ data.tar.gz: a1fa12c9549c55e7d8aa83ab04fbd6569340c08b
5
5
  SHA512:
6
- metadata.gz: 698760530885d0c3288f426d9aa97eb2d84462d636c2509acacdbaaa2e24d9c4c53869abc7cb93d741b9dc16f29df6e18426909e0bc91a6fb70c3387b2a2a3ab
7
- data.tar.gz: 683e352aec4ce7c2d7fc90ac56fbb050324017d4b155e690ea5ff92445e34eaba460c31cda5b487cda48a2e1f33b8122af2e6dfac30e65caf4ae147180878a6e
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 [ [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] ]; then \
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 the following rubies:
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
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- 45.55.203.36:
3
- - 1b:21:eb:44:cd:3c:17:63:fa:6c:b2:58:11:ce:98:f4
4
- - 88:74:a1:9e:b9:38:a0:a8:ac:2d:bd:82:eb:09:a0:49:84:dc:b8:c6
5
- - 93:6c:b4:26:21:a8:ff:50:e9:e0:37:7b:2c:71:ea:e2:7e:6f:30:60:2e:8e:d2:b6:d7:8d:0a:78:a5:da:2c:76
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
@@ -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"
@@ -142,12 +142,8 @@ module SSHScan
142
142
  end
143
143
 
144
144
  def scan_duration
145
- if start_time.nil?
146
- raise "Cannot calculate scan duration without start_time set"
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
@@ -1,3 +1,3 @@
1
1
  module SSHScan
2
- VERSION = '0.0.24'
2
+ VERSION = '0.0.25'
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.24
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-06-15 00:00:00.000000000 Z
15
+ date: 2017-07-03 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bindata