You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**M (Managed Address Configuration)**| When set to `1` the host MUST use **DHCPv6** to obtain its IPv6 address. | Whole addressing comes from DHCPv6 – perfect for *mitm6* style poisoning. |
249
+
|**O (Other Configuration)**| When set to `1` the host should use **DHCPv6** only to obtain *other* information (DNS, NTP, …). | Address still via SLAAC, but DNS can be hijacked with DHCPv6. |
250
+
|**M=0 / O=0**| Pure SLAAC network. | Only RA / RDNSS tricks are possible – DHCPv6 won’t be sent by clients. |
251
+
|**M=1 / O=1**| Mixed environment. | Both DHCPv6 and SLAAC are used; the surface for spoofing is the largest. |
252
+
253
+
During a pentest you can simply inspect the legitimate RA once and decide which vector is feasible:
Look for the `flags [M,O]` field in the dump – no guessing required.
260
+
261
+
The **Prf** (Router Preference) field inside the RA header controls how attractive your rogue router looks when *multiple* gateways are present:
262
+
263
+
| Prf value | Binary | Meaning |
264
+
|-----------|--------|---------|
265
+
|**High**|`10`| Clients prefer this router over any *Medium*/*Low* one |
266
+
| Medium (default) |`01`| Used by almost every legitimate device |
267
+
| Low |`00`| Chosen only when no better router exists |
268
+
269
+
When generating the packet with Scapy you can set it through the `prf` parameter as shown above (`prf=0x1` → High). Combining **High Prf**, a **short interval**, and a **non-zero lifetime** makes your rogue gateway remarkably stable.
270
+
271
+
---
272
+
244
273
### RDNSS (DNS) Spoofing via RA
245
274
246
275
[RFC 8106](https://datatracker.ietf.org/doc/html/rfc8106) allows adding a **Recursive DNS Server (RDNSS)** option inside a RA. Modern OSes (Win 10 ≥1709, Win 11, macOS Big Sur, Linux systemd-resolved, …) automatically trust it:
0 commit comments