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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rex/socket/comm/local.rb +3 -3
- data/lib/rex/socket/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c8f90acc30e263d824f20d2b1286a5520a483945985f3f229a58bfcf5b9cde1
|
|
4
|
+
data.tar.gz: 41bd0a0c06187b1be6a0b7672b3efd36d100b74ced4dfd9709aeca71cc7c91cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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.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-
|
|
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
|