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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7831643eb670edda2e0aeb81225c75ae12d3cb3a
4
- data.tar.gz: adb2d203a664e2d88b918459085eebdc2a7366b9
3
+ metadata.gz: 3d9b17400c17c2cf8a90d653c68778472238db76
4
+ data.tar.gz: 7c8fa2c3a9900f7d6f9eee9278978d2b412ce225
5
5
  SHA512:
6
- metadata.gz: 448f2129b065c8143515ccea2ff5e010916bad925c608c3d67ba2c2483d5b2fbdadc4ffa450bc76d27265aff7afca74769eae419d38407b3abc7f05700c13c14
7
- data.tar.gz: 5863bb92fcbfee07d45b2cc370100bc25f936e2fc8b6ede0c96b2931fc4286321d2795d69e8b4b94f5be38b615cdca0c1a7815845059ad2422998687182b10d3
6
+ metadata.gz: 6e701730b1af34928b087121fd7df5c5d79c894799bcea4443ee7325dae076e3b105c1eeb96a8a699d44053c91cba7b87faac7d550a8760e84134d0d1e8399dd
7
+ data.tar.gz: fb6f69e8c1ff4b4fa83368e931e1df123f9f0296593491320eaceb276c78ba9fffcfc21177d47049776ae46fc8f54fd17630d5845af4f94e95353a93abe90812
@@ -1,2 +1,3 @@
1
- (/���
2
- ن%w�$^~.#�k3�́YoQ������86\ymB�K
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
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Core
3
- VERSION = "0.1.10"
3
+ VERSION = "0.1.11"
4
4
  end
5
5
  end
@@ -92,7 +92,7 @@ module StreamServer
92
92
  #
93
93
  def close_client(client)
94
94
  if (client)
95
- clients.delete(client)
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
- clients.delete(e.stream)
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.10
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-11 00:00:00.000000000 Z
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