Nmap Development mailing list archives
[NSE][Patch] Script output for targets-ipv6-multicast-*
From: Daniel Miller <bonsaiviking () gmail com>
Date: Fri, 23 Sep 2011 15:14:48 -0500
List,I was doing some testing with host discovery using the targets-ipv6-multicast-* family of scripts, and I found that it was discovering a host that would not reply to the neighbor discovery ping (a Windows Vista machine). I wanted to get the MAC address of the machine so I could correlate it with my IPv4 scan of the network. (Turns out, the machine has 2 link-scope IPv6 addresses. The one it won't respond to, I can't find on the machine using ipconfig /all. Mysterious!).
The long and short of it is that I generated this patch to make these scripts a little more verbose. I am pretty sure the MAC address part is not portable to other link-layer protocols, so I'd be open to suggestions for a better way of doing it. The existing targets-* scripts only print network-layer addresses, but the MAC address was the reason behind my work, so I left it in. Sample output:
Pre-scan script results: |_targets-ipv6-multicast-invalid-dst: Found 3 targets |_targets-ipv6-multicast-echo: Found 4 targets |_targets-ipv6-multicast-slaac: Found 8 targets
With -v:
Pre-scan script results: | targets-ipv6-multicast-invalid-dst: Found 3 targets | fe80:0000:0000:0000:xxxx:xxxx:xxxx:115d at XX:XX:XX:XX:XX:5D | fe80:0000:0000:0000:xxxx:xxxx:xxxx:a448 at XX:XX:XX:XX:XX:48 |_ fe80:0000:0000:0000:xxxx:xxxx:xxxx:2640 at XX:XX:XX:XX:XX:40 | targets-ipv6-multicast-echo: Found 4 targets | fe80:0000:0000:0000:xxxx:xxxx:xxxx:ea4e at XX:XX:XX:XX:XX:4E | fe80:0000:0000:0000:xxxx:xxxx:xxxx:115d at XX:XX:XX:XX:XX:5D | fe80:0000:0000:0000:xxxx:xxxx:xxxx:a448 at XX:XX:XX:XX:XX:48 |_ fe80:0000:0000:0000:xxxx:xxxx:xxxx:2640 at XX:XX:XX:XX:XX:40 | targets-ipv6-multicast-slaac: Found 8 targets | fe80:0000:0000:0000:xxxx:xxxx:xxxx:2640 at XX:XX:XX:XX:XX:40 | fe80:0000:0000:0000:xxxx:xxxx:xxxx:79a4 at XX:XX:XX:XX:XX:A3 | fe80:0000:0000:0000:xxxx:xxxx:xxxx:b7c5 at XX:XX:XX:XX:XX:A3 | fe80:0000:0000:0000:xxxx:xxxx:xxxx:a448 at XX:XX:XX:XX:XX:48 |_ fe80:0000:0000:0000:xxxx:xxxx:xxxx:ea4e at XX:XX:XX:XX:XX:4E
Dan
Attachment:
targets-verbose.patch
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] Script output for targets-ipv6-multicast-* Daniel Miller (Sep 23)