Nmap Development mailing list archives

Re: [NSE][patch] targets-sniffer: sniff IPv6 addresses, fix newtargets for -6


From: Patrik Karlsson <patrik () cqure net>
Date: Sun, 11 Mar 2012 11:14:13 +0100

On Fri, Mar 9, 2012 at 7:31 PM, Daniel Miller <bonsaiviking () gmail com>wrote:

On 03/09/2012 11:49 AM, Daniel Miller wrote:

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.

 Attaching updated patch. I was correct in thinking I missed some
addresses: All IPv6 addresses starting with 'FF' are multicast, so I now
test for that instead.

Dan

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


I just tested this patch and have some trouble on OS X. I'm going to post
the problem in a new thread, but essentially I can't scan IPv6 addresses as
root. So, if someone else could try this patch, that would be great.

Thanks,
Patrik
-- 
Patrik Karlsson
http://www.cqure.net
http://twitter.com/nevdull77
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: