rex-socket 0.1.50 → 0.1.51

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
  SHA256:
3
- metadata.gz: de5e151c011ad64beefd0ed9a2ac3211bf9fe9718657781af03b4ea4d7df661c
4
- data.tar.gz: 7ddaeb1f593e891ece932ebcb024b4d124eb388b50624927cb995f77045ea1ed
3
+ metadata.gz: 4c8f90acc30e263d824f20d2b1286a5520a483945985f3f229a58bfcf5b9cde1
4
+ data.tar.gz: 41bd0a0c06187b1be6a0b7672b3efd36d100b74ced4dfd9709aeca71cc7c91cc
5
5
  SHA512:
6
- metadata.gz: 81f854e60466971c4f6c81d6a171bb0e7b9584513b7c0ff2edcf9820c82c809effef7a5e4e42958981408f56a559e8e736b2d8ec6df0fa3be75dca2816bce22c
7
- data.tar.gz: 74711958fdbbf6708e04a0a72660d7e32a8200fd2229e7a9be91c3394875510469210a104bfbd7b51d37ea8f0381ec049f8c53cf5a82fa381fff28794da95ca9
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
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Socket
3
- VERSION = "0.1.50"
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.50
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-05-02 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
Binary file