rex-socket 0.1.36 → 0.1.39

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: 5c8406c7c6de56b14dfb52d691b52e04bfa41c3c4d3dfec6604864e104371e13
4
- data.tar.gz: 5b5346a4646a8d1c69a616df64120d5f099c0506f97a3dca5c27b40b4c253d9a
3
+ metadata.gz: c5533d0111830ff09a217e05aeffcfc432f1bc19c788dc387dc1598471f9351b
4
+ data.tar.gz: b65e8ef90fa44ee8ccb7b7bb274ec3d1e60f8e9576558b30fbb637ae436cafab
5
5
  SHA512:
6
- metadata.gz: 1285905a72192b26a171872a76fd2272c51a3d93a78aed5648ad857c356b43bd2d2c7fa7e75ebf742c38a207fc65a7d1e6fb4641c9f5af19af4b53f8151e233f
7
- data.tar.gz: 73bd96efa3758be73faafa8543343b959e17f4d16f49206be05dc5e65fd44be834756aa6166b2e651b4feababfb6aaa4708f7b40dc2fe39aa70873663d60e12a
6
+ metadata.gz: 93f4484e3d015bde23f9b157ffaa7e1e82f5e5caeff16eabb7da7ea14390b5193baffdbb650a7358cc3ef1478432a6ae0cba1b795b42b237eb73e3778487d3a9
7
+ data.tar.gz: 0dd14bb1bdf0adba779f30f4be555e7ef642f8fa989f82c691159dc2cbec471444f42bd83772a27495f327406326953af3f4c48473b0173aae009b7335613568
checksums.yaml.gz.sig CHANGED
Binary file
data/.gitignore CHANGED
@@ -8,4 +8,6 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /.ruby-version
11
- /.ruby-gemset
11
+ /.ruby-gemset
12
+ # Rubymine project directory
13
+ .idea
@@ -1,5 +1,6 @@
1
1
  # -*- coding: binary -*-
2
2
  require 'singleton'
3
+ require 'rex/compat'
3
4
  require 'rex/socket'
4
5
  require 'rex/socket/tcp'
5
6
  require 'rex/socket/ssl_tcp'
@@ -81,6 +81,8 @@ class RangeWalker
81
81
 
82
82
  ranges = []
83
83
  parseme.split(', ').map{ |a| a.split(' ') }.flatten.each do |arg|
84
+ # Remove trailing commas that may be unneeded, i.e. '1.1.1.1,'
85
+ arg = arg.sub(/,+$/, '')
84
86
 
85
87
  # Handle IPv6 CIDR first
86
88
  if arg.include?(':') && arg.include?('/')
@@ -128,7 +128,7 @@ begin
128
128
  # extension
129
129
  if self.peerhostname
130
130
  self.sslsock.hostname = self.peerhostname
131
- else !Rex::Socket.dotted_ip?(self.peerhost)
131
+ elsif !Rex::Socket.dotted_ip?(self.peerhost)
132
132
  self.sslsock.hostname = self.peerhost
133
133
  end
134
134
 
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Socket
3
- VERSION = "0.1.36"
3
+ VERSION = "0.1.39"
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.36
4
+ version: 0.1.39
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: 2022-05-03 00:00:00.000000000 Z
96
+ date: 2022-05-09 00:00:00.000000000 Z
97
97
  dependencies:
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rake
metadata.gz.sig CHANGED
Binary file