Nmap Development mailing list archives
[NSE][patch] targets-sniffer: sniff IPv6 addresses, fix newtargets for -6
From: Daniel Miller <bonsaiviking () gmail com>
Date: Fri, 09 Mar 2012 11:49:08 -0600
List,Here's a patch to add IPv6 address sniffing to targets-sniffer. The major difference is changing the BPF from "ip" to "ip or ip6". I had to add a couple checks for NDP multicast addresses to check_if_valid, and I may have missed some other invalid IPv6 addresses.
I also fixed an issue (not quite a bug) where targets would be added with newtargets even if they were not of the current address_family. This resulted in lots of lines like this:
Failed to resolve given IPv6 hostname/IP: 192.168.1.1. Note that you can't use '/mask' or '[1-4,7,100-]' style ranges for IPv6.
Hope everyone finds it useful! Dan
Attachment:
targets-sniffer-ip6.diff
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [NSE][patch] targets-sniffer: sniff IPv6 addresses, fix newtargets for -6 Daniel Miller (Mar 09)
- Re: [NSE][patch] targets-sniffer: sniff IPv6 addresses, fix newtargets for -6 Daniel Miller (Mar 09)
- Re: [NSE][patch] targets-sniffer: sniff IPv6 addresses, fix newtargets for -6 Patrik Karlsson (Mar 11)
- Re: [NSE][patch] targets-sniffer: sniff IPv6 addresses, fix newtargets for -6 Daniel Miller (Mar 09)