mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 22:19:03 +00:00
Consider fec0::/10 private.
This is the site-local prefix deprecated by RFC 3879. Suggested by Marek Majkowski, who noticed that the prefix was included in Tor's tor_addr_is_internal_ function.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
o [NSE] The ipOps.isPrivate library now considers the deprecated
|
||||
site-local prefix fec0::/10 to be private. [Marek Majkowski]
|
||||
|
||||
o [Ncat] Added --lua-exec. This feature is basically an equivalent of ncat
|
||||
--sh-exec "lua <scriptname>" and allows you to run Lua scripts with Ncat,
|
||||
redirecting all stdin and stdout operations to the socket connection.
|
||||
|
||||
@@ -31,6 +31,7 @@ _ENV = stdnse.module("ipOps", stdnse.seeall)
|
||||
-- * IPv4 Reserved for Future Use (RFC 1112, Section 4)
|
||||
-- * IPv4 Multicast Local Network Control Block (RFC 3171, Section 3)
|
||||
-- * IPv6 Unspecified and Loopback (RFC3513)
|
||||
-- * IPv6 Site-Local (RFC3513, deprecated in RFC3879)
|
||||
-- * IPv6 Unique Local Unicast (RFC4193)
|
||||
-- * IPv6 Link Local Unicast (RFC4291)
|
||||
-- @param ip String representing an IPv4 or IPv6 address. Shortened notation
|
||||
@@ -49,7 +50,7 @@ isPrivate = function( ip )
|
||||
if ip:match( ":" ) then
|
||||
|
||||
local is_private
|
||||
local ipv6_private = { "::/127", "FC00::/7", "FE80::/10" }
|
||||
local ipv6_private = { "::/127", "FC00::/7", "FE80::/10", "FEC0::/10" }
|
||||
|
||||
for _, range in ipairs( ipv6_private ) do
|
||||
is_private, err = ip_in_range( ip, range )
|
||||
|
||||
Reference in New Issue
Block a user