mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Remove 6/8, 7/8, and 55/8 from ip_is_reserved. http://seclists.org/nmap-dev/2016/q1/11
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
o Removed 6/8, 7/8, and 55/8 networks from the list of "reserved" IP addresses
|
||||
that Nmap uses to filter -iR randomly generated targets. These address ranges
|
||||
belong to the U.S. Department of Defense, so users wanting to avoid those
|
||||
ranges should use their own exclusion lists with --exclude or --exclude-file.
|
||||
[Daniel Miller]
|
||||
|
||||
o [NSE] whois-ip: Don't request a remote IANA assignments data file when the
|
||||
local filesystem will not permit the file to cached in a local file. [jah]
|
||||
|
||||
|
||||
@@ -486,10 +486,7 @@ int ip_is_reserved(struct in_addr *ip)
|
||||
switch (i1)
|
||||
{
|
||||
case 0: /* 000/8 is IANA reserved */
|
||||
case 6: /* USA Army ISC */
|
||||
case 7: /* used for BGP protocol */
|
||||
case 10: /* the infamous 10.0.0.0/8 */
|
||||
case 55: /* misc. U.S.A. Armed forces */
|
||||
case 127: /* 127/8 is reserved for loopback */
|
||||
return 1;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user