rex-core 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data.tar.gz.sig +0 -0
- data/lib/rex/core/version.rb +1 -1
- data/lib/rex/io/stream_server.rb +10 -3
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d9b17400c17c2cf8a90d653c68778472238db76
|
4
|
+
data.tar.gz: 7c8fa2c3a9900f7d6f9eee9278978d2b412ce225
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e701730b1af34928b087121fd7df5c5d79c894799bcea4443ee7325dae076e3b105c1eeb96a8a699d44053c91cba7b87faac7d550a8760e84134d0d1e8399dd
|
7
|
+
data.tar.gz: fb6f69e8c1ff4b4fa83368e931e1df123f9f0296593491320eaceb276c78ba9fffcfc21177d47049776ae46fc8f54fd17630d5845af4f94e95353a93abe90812
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
��SbaH��u��
|
2
|
+
�<X��b�N���HA�h�ml5��9�[�**�#ch�A�l7�s�n���w#�lr��+�c���\2��:i����E�
|
3
|
+
Վ�P�AZ:�ωB�j$�3���;�Ջ,/�Q&�]�a�?�⼰��n��]"۹'a9��P�����Sl�Zq��4�p���R���1�'>��"�����w�t��o~����6�ף�n�pǕ_�ɒ�Cw2&FUCڱ�;���
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rex/core/version.rb
CHANGED
data/lib/rex/io/stream_server.rb
CHANGED
@@ -92,7 +92,7 @@ module StreamServer
|
|
92
92
|
#
|
93
93
|
def close_client(client)
|
94
94
|
if (client)
|
95
|
-
|
95
|
+
detach_client(client)
|
96
96
|
|
97
97
|
begin
|
98
98
|
client.close
|
@@ -101,6 +101,13 @@ module StreamServer
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
+
#
|
105
|
+
# Detach a client. You are now responsible for it, not us
|
106
|
+
#
|
107
|
+
def detach_client(client)
|
108
|
+
self.clients.delete(client)
|
109
|
+
end
|
110
|
+
|
104
111
|
#
|
105
112
|
# This method waits on the server listener thread
|
106
113
|
#
|
@@ -189,7 +196,7 @@ protected
|
|
189
196
|
|
190
197
|
sd[0].each { |cfd|
|
191
198
|
begin
|
192
|
-
on_client_data(cfd)
|
199
|
+
on_client_data(cfd) if clients.include? cfd
|
193
200
|
rescue ::EOFError, ::Errno::ECONNRESET, ::Errno::ENOTCONN, ::Errno::ECONNABORTED
|
194
201
|
on_client_close(cfd)
|
195
202
|
close_client(cfd)
|
@@ -205,7 +212,7 @@ protected
|
|
205
212
|
|
206
213
|
rescue ::Rex::StreamClosedError => e
|
207
214
|
# Remove the closed stream from the list
|
208
|
-
|
215
|
+
detach_client(e.stream)
|
209
216
|
rescue ::Interrupt
|
210
217
|
raise $!
|
211
218
|
rescue ::Exception
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rex-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Maloney
|
@@ -88,7 +88,7 @@ cert_chain:
|
|
88
88
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
89
89
|
8mVuTXnyJOKRJA==
|
90
90
|
-----END CERTIFICATE-----
|
91
|
-
date: 2017-05
|
91
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
92
92
|
dependencies:
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|