mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
Fix #470 IPv6 local-adress thanks to @bert128
This commit is contained in:
+5
-2
@@ -17,7 +17,10 @@ def parse_targets(target):
|
||||
for ip in ip_range:
|
||||
yield str(ip)
|
||||
else:
|
||||
for ip in ip_network(target, strict=False):
|
||||
yield str(ip)
|
||||
if ip_address(target).is_link_local:
|
||||
yield str(target)
|
||||
else:
|
||||
for ip in ip_network(target, strict=False):
|
||||
yield str(ip)
|
||||
except ValueError:
|
||||
yield str(target)
|
||||
|
||||
Reference in New Issue
Block a user