rex-socket 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/socket/range_walker.rb +3 -3
- data/lib/rex/socket/version.rb +1 -1
- metadata +1 -1
- 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: 4d113479436231734487199007f644118a5e448686dc84c62c32d2cf0d8a3610
|
4
|
+
data.tar.gz: 10c82f7d6ec3995321f87e0414f5cb27bd2b991764f051be0f2014473a53b255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c6cec9b71223968043ea4b96ac78f750ba27ec1ca087b5deda2ee3717c76340f96e8d730f9e16594732213d2429265891a8dd1dc64b02dc3bd6b1f4adec634e
|
7
|
+
data.tar.gz: c21137181b5ef64f7599c5ceb27f233c10d48a198a9ec0c5bffbe64efb6f02024eab4e408a5de7585c1a46dbff864f087dbee3cf32bdcd3129ad518db225d779
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -134,7 +134,7 @@ class RangeWalker
|
|
134
134
|
#
|
135
135
|
# @return [Hash<Symbol, String>] The next host in the range
|
136
136
|
def next_host
|
137
|
-
return
|
137
|
+
return unless valid?
|
138
138
|
|
139
139
|
if (@curr_addr > @ranges[@curr_range_index].stop)
|
140
140
|
# Then we are at the end of this range. Grab the next one.
|
@@ -247,7 +247,7 @@ class RangeWalker
|
|
247
247
|
def expand_cidr(arg)
|
248
248
|
start,stop = Rex::Socket.cidr_crack(arg)
|
249
249
|
if !start or !stop
|
250
|
-
return
|
250
|
+
return
|
251
251
|
end
|
252
252
|
range = Range.new
|
253
253
|
range.start = Rex::Socket.addr_atoi(start)
|
@@ -399,7 +399,7 @@ class RangeWalker
|
|
399
399
|
return if !valid_cidr_chars?(arg)
|
400
400
|
|
401
401
|
ip_part, mask_part = arg.split("/")
|
402
|
-
return
|
402
|
+
return unless (0..32).include? mask_part.to_i
|
403
403
|
if ip_part =~ /^\d{1,3}(\.\d{1,3}){1,3}$/
|
404
404
|
return unless Rex::Socket.is_ipv4?(ip_part)
|
405
405
|
end
|
data/lib/rex/socket/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|