安全密钥位于Z/IP网关的日志中。
在目标设备上运行下面的命令,检查日志文件.
$ sudo tail -f /tmp/zipgateway.log
然后启动网关服务,因为密钥显示在日志文件的开头:
$ sudo /etc/init.d/zipgateway start
如果网关已在运行,您只需浏览到日志文件并打开现有文件即可:
$ nano /tmp/zipgateway.log
此处显示了日志文件的示例:
The network keys are then listed as:
S0 Network Key
Key class 80: 0D672EB3138CDDF454C8899D1F5703FA
S2-Unauthentucated Network Key
Key class 1: E9372D386CF95E4E044DAE494C07932A
S2-Authenticated Network Key
Key class 2: 79C5EEDFCB3CDD521AC261F129B91540
S2-AccessControl Network Key
Key class 4: 9B05A8F28E3A77DCF8F2E46EB62BCF51
然后可以将这些密钥复制到Zniffer中以解密log.
Finally, it is required that the Zniffer knows the S2 singlecast nonce, which are shared during inclusion. If the trace does not include the frames from the inclusion, it is necessary to force a resynchronization between the nodes.
qq群:80836461
微信号:smartlabs