Search K
Appearance
Appearance
Other ways to support HackTricks:
IPv6 addresses are structured to enhance network organization and device interaction. An IPv6 address is divided into:
While IPv6 omits the ARP protocol found in IPv4, it introduces ICMPv6 with two primary messages:
IPv6 also incorporates special address types:
::1
): Equivalent to IPv4's 127.0.0.1
, for internal communication within the host.FE80::/10
): For local network activities, not for internet routing. Devices on the same local network can discover each other using this range.To interact with IPv6 networks, you can use various commands:
ping6
.ip neigh
to view devices discovered at the link layer.Below are some command examples:
ping6 โI eth0 -c 5 ff02::1 > /dev/null 2>&1
ip neigh | grep ^fe80
# Alternatively, use alive6 for neighbor discovery
alive6 eth0
IPv6 addresses can be derived from a device's MAC address for local communication. Here's a simplified guide on how to derive the Link-local IPv6 address from a known MAC address, and a brief overview of IPv6 address types and methods to discover IPv6 addresses within a network.
Given a MAC address 12:34:56:78:9a:bc
, you can construct the Link-local IPv6 address as follows:
1234:5678:9abc
fe80::
and insert fffe
in the middle: fe80::1234:56ff:fe78:9abc
1234
to 1034
: fe80::1034:56ff:fe78:9abc
FEC00::/7
FF00::/8
2000::/3
global unicast range.ff02::1
to discover IPv6 addresses on the local network.service ufw stop # Stop the firewall
ping6 -I <IFACE> ff02::1 # Send a ping to multicast address
ip -6 neigh # Display the neighbor table
Several techniques exist for executing MitM attacks in IPv6 networks, such as:
A method to find subdomains that are potentially linked to IPv6 addresses involves leveraging search engines. For instance, employing a query pattern like ipv6.*
can be effective. Specifically, the following search command can be used in Google:
site:ipv6./
To identify IPv6 addresses, certain DNS record types can be queried:
After pinpointing IPv6 addresses associated with an organization, the ping6
utility can be used for probing. This tool helps in assessing the responsiveness of identified IPv6 addresses, and might also assist in discovering adjacent IPv6 devices.
Other ways to support HackTricks: