rex-socket 0.1.48 → 0.1.49
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
- checksums.yaml.gz.sig +0 -0
- data/lib/rex/socket/ssl_tcp.rb +23 -0
- data/lib/rex/socket/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3094879e49eec452993a7285a7423c92f80750e21482c93f1161a9863bc63b35
|
4
|
+
data.tar.gz: 8948da7edd9356d433f41661b25edab5e4af5a86c7156f5f8f9c198c1edccd0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc286aac40859d28d7b3c96544c0cc8794df9763c485533bd9f28174c872db0d3919a632a7fd9ae71a97178b2e2a8a8d660467a3833384f820dc8b81ef1d0ec
|
7
|
+
data.tar.gz: aa991acb7049aa46d2d57fcaf8ee17a42f4a8fd2fee04e485e732a3451dd54c1d36a17fbe74c794d4903b61fd55a30b4de558e88a72b6a55ed72cf7f92b8a2cd
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rex/socket/ssl_tcp.rb
CHANGED
@@ -234,6 +234,29 @@ begin
|
|
234
234
|
total_sent
|
235
235
|
end
|
236
236
|
|
237
|
+
#
|
238
|
+
# Polls the stream to see if there is any read data available. Returns
|
239
|
+
# true if data is available for reading, otherwise false is returned.
|
240
|
+
#
|
241
|
+
def has_read_data?(timeout = nil)
|
242
|
+
return true if self.sslsock.pending > 0
|
243
|
+
|
244
|
+
# Allow a timeout of "0" that waits almost indefinitely for input, this
|
245
|
+
# mimics the behavior of Rex::ThreadSafe.select() and fixes some corner
|
246
|
+
# cases of unintentional no-wait timeouts.
|
247
|
+
timeout = 3600 if (timeout and timeout == 0)
|
248
|
+
|
249
|
+
begin
|
250
|
+
s = Rex::ThreadSafe.select( [ self.sslsock ], nil, nil, timeout )
|
251
|
+
return !( s == nil || s[0] == nil )
|
252
|
+
rescue ::Errno::EBADF, ::Errno::ENOTSOCK
|
253
|
+
raise ::EOFError
|
254
|
+
rescue StreamClosedError, ::IOError, ::EOFError, ::Errno::EPIPE
|
255
|
+
# Return false if the socket is dead
|
256
|
+
return false
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
237
260
|
#
|
238
261
|
# Reads data from the SSL socket.
|
239
262
|
#
|
data/lib/rex/socket/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rex-socket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Metasploit Hackers
|
@@ -93,7 +93,7 @@ cert_chain:
|
|
93
93
|
EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
|
94
94
|
9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
|
95
95
|
-----END CERTIFICATE-----
|
96
|
-
date: 2023-03-
|
96
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
97
97
|
dependencies:
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rake
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
s���;�>�������zo1�E��7 �0�+n�-�B�]0�*�C� �)�I"
|
2
|
+
�/�
|
3
|
+
��Ū�9Aʽr�g��h�t��pu�^^?��������#���M��ޚ�:�O��*J�L������1�Qx�@����WI�/s [M�λK��P�B�>���H����������&F��}7.�B
|