From ecf1b9ded49fbe062c57d30b473c2be8519aed36 Mon Sep 17 00:00:00 2001 From: Glen Takahashi Date: Wed, 6 Feb 2019 15:21:58 -0500 Subject: [PATCH] Show how to also get network key without re-pairing device (#1035) * Show how to also get network key without re-pairing device * Update how_to_sniff_zigbee_traffic.md --- docs/how_tos/how_to_sniff_zigbee_traffic.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/how_tos/how_to_sniff_zigbee_traffic.md b/docs/how_tos/how_to_sniff_zigbee_traffic.md index 814a6841..a0af305e 100644 --- a/docs/how_tos/how_to_sniff_zigbee_traffic.md +++ b/docs/how_tos/how_to_sniff_zigbee_traffic.md @@ -42,7 +42,11 @@ Add the Trust Center link key by going to to Edit -> Preferences -> Protocols -> ![Wireshark Trust Center link key](../images/wireshark_tclink_key.png) -Next we need to figure out the network encryption key. The network encryption key is exposed when a device joins the network. Pair a new device to the network (or repair an existing one) and grab the message where the Info is *Device Announcement....*. Open the message and expand *ZigBee Network Layer Data* -> *ZigBee Security Header*. +Next we need to figure out the network encryption key. There are two ways to do this: + +1) By default, if you haven't changed `network_key` in your `configuration.yaml` this will be `01:03:05:07:09:0B:0D:0F:00:02:04:06:08:0A:0C:0D`. If you changed your `network_key`, then convert each number into its 2-digit hexadecimal value, and combine them all with `:` between. E.g. `[1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13]` -> `01:03:05:07:09:0B:0D:0F:00:02:04:06:08:0A:0C:0D` + +2) If you don't want to manually translate the numbers, the network encryption key is also exposed when a device joins the network. Pair a new device to the network (or repair an existing one) and grab the message where the Info is *Device Announcement....*. Open the message and expand *ZigBee Network Layer Data* -> *ZigBee Security Header*. ![Wireshark network key](../images/wireshark_network_key.png)