rex-socket 0.1.49 → 0.1.51

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
  SHA256:
3
- metadata.gz: 3094879e49eec452993a7285a7423c92f80750e21482c93f1161a9863bc63b35
4
- data.tar.gz: 8948da7edd9356d433f41661b25edab5e4af5a86c7156f5f8f9c198c1edccd0a
3
+ metadata.gz: 4c8f90acc30e263d824f20d2b1286a5520a483945985f3f229a58bfcf5b9cde1
4
+ data.tar.gz: 41bd0a0c06187b1be6a0b7672b3efd36d100b74ced4dfd9709aeca71cc7c91cc
5
5
  SHA512:
6
- metadata.gz: 6bc286aac40859d28d7b3c96544c0cc8794df9763c485533bd9f28174c872db0d3919a632a7fd9ae71a97178b2e2a8a8d660467a3833384f820dc8b81ef1d0ec
7
- data.tar.gz: aa991acb7049aa46d2d57fcaf8ee17a42f4a8fd2fee04e485e732a3451dd54c1d36a17fbe74c794d4903b61fd55a30b4de558e88a72b6a55ed72cf7f92b8a2cd
6
+ metadata.gz: dd89e2260a36ebc22e7eb69a1035078f8aceb96c664dde36f7849a76020f8cf8fd276686cc01e857b5a203a59624b34818271dcdd5c01a6789475cf22cadccf1
7
+ data.tar.gz: d2e464106473a60359fa268bbe00b1eafac147c9c35b2ef82503824534c5c85fa223bd17decf0dd05d29daa5c36101398ab9a99e8b6afb4000ab01e249262a77
checksums.yaml.gz.sig CHANGED
Binary file
@@ -212,7 +212,7 @@ class Rex::Socket::Comm::Local
212
212
  klass = Rex::Socket::SctpServer
213
213
  else
214
214
  raise Rex::BindFailed.new(param.localhost, param.localport), caller
215
- end
215
+ end
216
216
  sock.extend(klass)
217
217
 
218
218
  sock.initsock(param)
@@ -447,7 +447,7 @@ class Rex::Socket::Comm::Local
447
447
  end
448
448
  when 'socks4'
449
449
  supports_ipv6 = false
450
- setup = [4,1,port.to_i].pack('CCn') + Socket.resolv_nbo(host, supports_ipv6) + Rex::Text.rand_text_alpha(rand(8)+1) + "\x00"
450
+ setup = [4,1,port.to_i].pack('CCn') + Rex::Socket.resolv_nbo(host, supports_ipv6) + Rex::Text.rand_text_alpha(rand(8)+1) + "\x00"
451
451
  size = sock.put(setup)
452
452
  if size != setup.length
453
453
  raise Rex::ConnectionProxyError.new(host, port, type, "Failed to send the entire request to the proxy"), caller
@@ -478,7 +478,7 @@ class Rex::Socket::Comm::Local
478
478
 
479
479
  if Rex::Socket.is_ipv4?(host)
480
480
  accepts_ipv6 = false
481
- addr = Rex::Socket.resolv_nbo(host)
481
+ addr = Rex::Socket.resolv_nbo(host, accepts_ipv6)
482
482
  setup = [5,1,0,1].pack('C4') + addr + [port.to_i].pack('n')
483
483
  elsif Rex::Socket.support_ipv6? && Rex::Socket.is_ipv6?(host)
484
484
  # IPv6 stuff all untested
@@ -251,7 +251,7 @@ begin
251
251
  return !( s == nil || s[0] == nil )
252
252
  rescue ::Errno::EBADF, ::Errno::ENOTSOCK
253
253
  raise ::EOFError
254
- rescue StreamClosedError, ::IOError, ::EOFError, ::Errno::EPIPE
254
+ rescue ::Rex::StreamClosedError, ::IOError, ::EOFError, ::Errno::EPIPE
255
255
  # Return false if the socket is dead
256
256
  return false
257
257
  end
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Socket
3
- VERSION = "0.1.49"
3
+ VERSION = "0.1.51"
4
4
  end
5
5
  end
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.49
4
+ version: 0.1.51
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-23 00:00:00.000000000 Z
96
+ date: 2023-05-17 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 @@
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
1
+ .:e* ���k+�b�X'�����]p7/��@��J<+��� &Q��o��Kw#��