Skip to content

Commit 7e07da0

Browse files
author
HackTricks News Bot
committed
Add content from: Research Update Enhanced src/generic-methodologies-and-resou...
1 parent 89add44 commit 7e07da0

1 file changed

Lines changed: 44 additions & 1 deletion

File tree

  • src/generic-methodologies-and-resources/pentesting-network

src/generic-methodologies-and-resources/pentesting-network/dhcpv6.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,54 @@ A comparative view of DHCPv6 and DHCPv4 message types is presented in the table
3535
12. **Relay-Forw (12)**: Relay agents forward messages to servers.
3636
13. **Relay-Repl (13)**: Servers reply to relay agents, who then deliver the message to the client.
3737

38+
39+
## Quick Protocol Notes (Offensive)
40+
41+
- DHCPv6 clients use UDP port `546` and servers/relays use UDP port `547`.
42+
- Clients send Solicit to **All_DHCP_Relay_Agents_and_Servers** (`ff02::1:2`); servers/relays listen there. **All_DHCP_Servers** is `ff05::1:3`.
43+
- Client and server identities are carried in `OPTION_CLIENTID` and `OPTION_SERVERID` using **DUIDs**. This is handy for fingerprinting the same host across address changes.
44+
- Address assignment is requested with `IA_NA` (non-temporary address) and prefix delegation with `IA_PD` (downstream router prefix).
45+
46+
### Quick Recon
47+
48+
```bash
49+
# Basic DHCPv6 traffic capture
50+
sudo tcpdump -vvv -i <IFACE> 'udp port 546 or udp port 547'
51+
52+
# THC-IPv6: discover DHCPv6 servers and their options
53+
sudo atk6-dump_dhcp6 <IFACE>
54+
```
55+
56+
### Rogue DHCPv6 Server (Address/DNS Hijack)
57+
58+
```bash
59+
# THC-IPv6: rogue DHCPv6 server advertising address + DNS
60+
sudo atk6-fake_dhcps6 <IFACE> <PREFIX>/<LEN> <DNSv6>
61+
```
62+
63+
This is a generic on-link rogue DHCPv6 server. On Windows/AD networks, pair this with higher-level relays (see the IPv6 page) if you want NTLM relay primitives.
64+
65+
### Pool Exhaustion / DHCPv6 Starvation
66+
67+
```bash
68+
# THC-IPv6: exhaust the server's address pool
69+
sudo atk6-flood_dhcpc6 <IFACE>
70+
```
71+
72+
### Reconfigure Message Caveat
73+
74+
DHCPv6 **Reconfigure** is not blindly accepted: clients only accept it if they explicitly sent `OPTION_RECONF_ACCEPT`. By default, a client is **unwilling** to accept Reconfigure messages, so unsolid Reconfigure attacks often fail unless you observe/induce that option.
75+
76+
{{#ref}}
77+
pentesting-ipv6.md
78+
{{#endref}}
79+
3880
## References
3981

4082
- [https://support.huawei.com/enterprise/en/doc/EDOC1100306163/d427e938/introduction-to-dhcpv6-messages](https://support.huawei.com/enterprise/en/doc/EDOC1100306163/d427e938/introduction-to-dhcpv6-messages)
4183

84+
- [https://www.rfc-editor.org/rfc/rfc8415](https://www.rfc-editor.org/rfc/rfc8415)
85+
- [https://www.kali.org/tools/thc-ipv6/](https://www.kali.org/tools/thc-ipv6/)
4286
{{#include ../../banners/hacktricks-training.md}}
4387

4488

45-

0 commit comments

Comments
 (0)